Speaker Sample

2024-05-17
No Rating

Sample Introduction

This Sample introduces a megaphone as an example. The megaphone is used to appease trapped people, deter criminals, publicize, and so on in scenarios such as security search and rescue, arrest, and publicity, which provides great convenience for search and rescue, security, and other industries. The PSDK megaphone Sample of the Mobile SDK can realize real-time utterance, voice file recording, loop/single playback of recorded voice files, and voice playback control. This sample shows the complete interface and an example of the interface calling process.

Note: Audio file only supports the format of .opus, the .mp3 format file is currently not supported.

Interface Calling Process

The following figure shows a complete interface display and an example of the interface calling process. For detailed usage, please check the API documentationopen in new window of Mobile SDK.

Sample Acquisition

Speaker Sampleopen in new window

If you have any comments or confusion about our documentation, you can click here to give feedback and we will get back to you as soon as possible.