Speaker Sample

2026-08-06Loading 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.

  • Normal text mode and voice mode process

  • Real-time broadcast mode process

Sample Acquisition

Speaker Sampleopen in new window

Last Updated: