Plugin(s)
Current problem
First of all, thanks a lot for your awesome plugins !
We experience quality issues on the audio recording for android devices. Searching the android docs, we found that there is a setAudioEncodingBitRate for Android devices to improve the quality of the audio. In Android, it appears that the devices sets automatically the bitrate to a CD like quality, it would be better to have 192kbps by default. (128kbps is decent, 192kbps is good, 256kbps is very good).
In iOS, the quality is very nice, you use the AVEncoderAudioQualityKey: AVAudioQuality.high.rawValue but we could also use the AVEncoderBitRateKey to have the same parameters as Android does. Adding other options like preferedOutputFormat and audioSource would also be nice, but not as critical as the bitRate
Thanks,
Alex
Preferred solution
It would be nice to have something like this
export interface StartRecordingOptions {
/**
* The audio sample rate in Hz.
*
* This option is only available on Android and iOS.
*
* @since 7.1.0
* @default 44100
* @example 16000
*/
sampleRate?: number;
/**
* The audio bitrate in bytes per second.
*
* This option is only available on Android and iOS.
*
* @since 7.X.X
* @default 192000
* @example 256000
*/
bitRate?: number;
}
Alternative options
No response
Additional context
No response
Before submitting
Plugin(s)
Current problem
First of all, thanks a lot for your awesome plugins !
We experience quality issues on the audio recording for android devices. Searching the android docs, we found that there is a
setAudioEncodingBitRatefor Android devices to improve the quality of the audio. In Android, it appears that the devices sets automatically the bitrate to a CD like quality, it would be better to have 192kbps by default. (128kbps is decent, 192kbps is good, 256kbps is very good).In iOS, the quality is very nice, you use the
AVEncoderAudioQualityKey: AVAudioQuality.high.rawValuebut we could also use theAVEncoderBitRateKeyto have the same parameters as Android does. Adding other options likepreferedOutputFormatandaudioSourcewould also be nice, but not as critical as thebitRateThanks,
Alex
Preferred solution
It would be nice to have something like this
Alternative options
No response
Additional context
No response
Before submitting