RecorderManager
Description
Get the globally unique recorder manager
Demo
Scan with the Smart Life app to try it out
Demo download URL
→
FAQ
Q: How should I configure encodeBitRate?
A: The supported encodeBitRate ranges for different sample rates are:
Notes:
- Invalid combinations of sample rate and encode bit rate will cause recording to fail. Configure values strictly according to the table above
- Higher sample rates and encode bit rates are recommended for better audio quality
- Higher encode bit rates produce larger file sizes. Choose appropriate parameters according to your actual needs
Q: How should I configure the input source specified by audioSource?
A: audioSource is used to specify the input source for recording and supports the following values:
iOS platform:
- auto: Automatically select the input source (default)
- buildInMic: Built-in phone microphone
- headsetMic: Wired headset microphone
Android platform:
- auto: Automatically select the input source (default)
- mic: Microphone (phone microphone or headset microphone)
- camcorder: Suitable for audio/video recording
- voice_communication: Suitable for real-time calls
- voice_recognition: Suitable for speech recognition
Recommendations:
- It is recommended to use the default value auto, which adapts automatically to various scenarios
- Support for input sources may vary across devices and OS versions
- Thoroughly verify compatibility on target devices during development and testing