[英]Android, add noise cancelling to SpeechRecognizer
I'm creating an Android app which based on vocal commands.我正在创建一个基于语音命令的 Android 应用程序。 The idea here is to apply a noise reduction filter to the mic before starting speech recognizer.
这里的想法是在启动语音识别器之前对麦克风应用降噪滤波器。
Is that possible?那可能吗?
Thanks.谢谢。
You can look out this blog你可以看看这个博客
https://twigstechtips.blogspot.com/2013/07/android-enable-noise-cancellation-in.html . https://twigstechtips.blogspot.com/2013/07/android-enable-noise-cancellation-in.html 。
Use MediaRecorder.AudioSource.VOICE_RECOGNITION instead of AudioSource.MIC, which will give you really good results and noise in the background will reduce very much.使用 MediaRecorder.AudioSource.VOICE_RECOGNITION 而不是 AudioSource.MIC,这会给你带来非常好的效果,并且背景噪音会大大减少。
The great thing about this solution is, it can be used with both AudioRecord and MediaRecorder class.这个解决方案的伟大之处在于,它可以与 AudioRecord 和 MediaRecorder 类一起使用。
Hope it helps.希望能帮助到你。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.