create Audio Track
Creates a custom audio track with the specified encoder configuration.
Use this to create an audio track before joining a meeting or to replace the active audio track during a meeting using unmuteMic.
Return
A CustomStreamTrack for the microphone, or null if creation fails (e.g., microphone permission denied).
Code Example:
val audioTrack = VideoSDK.createAudioTrack("speech_standard", context)
Content copied to clipboard
Parameters
encoder Config
Audio encoder preset (e.g., "speech_standard", "high_quality"). If null or empty, defaults to "speech_standard". Available presets: "speech_low_quality", "speech_standard", "music_standard", "standard_stereo", "high_quality", "high_quality_stereo".
context
Application context.