audioTrackConfigMap top-level property
Implementation
Map<AudioTrackConfig, Map<String, dynamic>> audioTrackConfigMap = {
AudioTrackConfig.speech_low_quality: {
"sampleRate": 16000,
"bitRate": 24,
"sampleSize": 16,
"stereo": false,
"dtx": true,
"fec": true,
"maxPlaybackRate": 16000,
"packetTime": 20,
"autoGainControl": true,
"echoCancellation": true,
"noiseSuppression": true,
"channelCount": 1,
},
AudioTrackConfig.speech_standard: {
"sampleRate": 32000,
"bitRate": 24,
"sampleSize": 24,
"stereo": false,
"dtx": true,
"fec": true,
"maxPlaybackRate": 32000,
"packetTime": 30,
"autoGainControl": true,
"echoCancellation": true,
"noiseSuppression": true,
"channelCount": 1,
},
AudioTrackConfig.music_standard: {
"sampleRate": 48000,
"bitRate": 40,
"sampleSize": 32,
"stereo": false,
"dtx": false,
"fec": true,
"maxPlaybackRate": 48000,
"packetTime": 40,
"autoGainControl": false,
"echoCancellation": false,
"noiseSuppression": false,
"channelCount": 1,
},
AudioTrackConfig.standard_stereo: {
"sampleRate": 48000,
"sampleSize": 32,
"bitRate": 64,
"stereo": true,
"dtx": false,
"fec": true,
"maxPlaybackRate": 48000,
"packetTime": 40,
"autoGainControl": false,
"echoCancellation": false,
"noiseSuppression": false,
"channelCount": 2,
},
AudioTrackConfig.high_quality: {
"sampleRate": 48000,
"sampleSize": 32,
"bitRate": 128,
"stereo": false,
"dtx": false,
"fec": true,
"maxPlaybackRate": 48000,
"packetTime": 60,
"autoGainControl": false,
"echoCancellation": false,
"noiseSuppression": false,
"channelCount": 1,
},
AudioTrackConfig.high_quality_stereo: {
"sampleRate": 48000,
"sampleSize": 32,
"bitRate": 192,
"stereo": true,
"dtx": false,
"fec": true,
"maxPlaybackRate": 48000,
"packetTime": 60,
"autoGainControl": false,
"echoCancellation": false,
"noiseSuppression": false,
"channelCount": 2,
},
};