机器人:当用户停止说话对着麦克风如何检测对着、麦克风、机器人、说话

2023-09-06 00:42:25 作者:无所谓的态度,不在乎的心

我有一个Android应用程序,开始从麦克风录制应用程序启动时。在我目前的版本中,用户必须preSS一个STOP按钮停止录音。

我如何检测用户已停止说话,并用它来触发记录停止?

就像我们在Android中的语音识别功能来实现。使用者停止通话,然后将语音翻译。我已经看到,做其他的应用程序,就像会说话的汤姆类型的应用程序。

作为一个方面说明我也很想表现出某种类型的视觉指示麦克风接收声音。东西给声级进来。

任何帮助AP preciated。

解决方案

这是一种方法是使用线程上记录和语音功率分析处理所记录的字节, 有一个样品code,供大家参考:http://musicg.google$c$c.com/files/musicg_android_demo.zip

I have an Android application that begins recording from the microphone when the application starts. In my current version, the user must press a STOP button to stop recording.

晚晴养老 智慧化养老正悄然靠近生活

How do I detect that the user has stopped talking and use that to trigger the recorder to stop?

Similar to what is implemented in the Speech Recognition functionality in Android. The user stops talking and then the speech is translated. I have seen other apps that do it, like Talking Tom type apps.

As a side note I would also love to show some type of visual indicating that the microphone is receiving sound. Something to show the sound level coming in.

Any help appreciated.

解决方案

An approach is to use threads on recording and the speech power analyzing process on the recorded bytes, there's a sample code for your reference: http://musicg.googlecode.com/files/musicg_android_demo.zip

 
精彩推荐
图片推荐