enableCustomAudioCapture abstract method
- bool enable
Enable custom audio capturing mode
After this mode is enabled, the SDK will not run the original audio capturing process (i.e., stopping mic data capturing) and will retain only the audio encoding and sending capabilities.
You need to use sendCustomAudioData to continuously insert the captured audio data into the SDK.
Parameters:
- enable(bool):
- Whether to enable.
- Default value: false.
Note:
- As acoustic echo cancellation (AEC) requires strict control over the audio capturing and playback time, after custom audio capturing is enabled, AEC may fail.
Implementation
void enableCustomAudioCapture(bool enable);