[英]Which AudioEncoder codec is best for highest quality audio recording on android
I am recording both audio and video on my Xamarin.Forms project.我正在 Xamarin.Forms 项目中录制音频和视频。 Some people tell me that when they use it the audio quality is low when recording.
有人告诉我,当他们使用它时,录音时的音频质量很低。 After some research I think it has something to do with the encoder.
经过一番研究,我认为这与编码器有关。
This is my line for setting the codec这是我设置编解码器的线路
this.mediaRecorder.SetAudioEncoder(AudioEncoder.Aac);
And here are the available encoder options 这是可用的编码器选项
In some threads I see people recommend using AmrNb or Aac (which I already use).在某些线程中,我看到人们推荐使用 AmrNb 或 Aac(我已经使用过)。 I tried all options and can't see any noticeable difference.
我尝试了所有选项,但看不到任何明显差异。
Which one is best for recording audio on smartphones?哪一种最适合在智能手机上录制音频?
Should I manually set audio bitrate, and if yes how do I determine it?我应该手动设置音频比特率,如果是,我该如何确定?
this.mediaRecorder.SetAudioSource(AudioSource.VoiceRecognition);
this.mediaRecorder.SetAudioEncodingBitRate(128000);
this.mediaRecorder.SetAudioSamplingRate(16000);
I added these lines ( basically I increased the bitrate and changed audio source) and I think it's better now.我添加了这些行(基本上我增加了比特率并更改了音频源),我认为现在更好了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.