使用Android语音识别时保存音频文件
有没有办法保存使用Android语音/语音识别软件时录制的文件?我尝试了同时录音和使用语音识别的替代方案,但这似乎不起作用;可能是因为 Android 本身不会让两个 Activity 同时使用麦克风。当然,找到文件保存的位置(以及是否保存)会更好。
谢谢!
Is there a way to save the file that is recorded when using Android's voice/speech recognition software? I tried the alternative of both recording and using the speech recognition at the same time, but this doesn't seem to work; probably because Android itself won't let two activities use the microphone at the same time. Of course, finding where (and if) the file is saved would be much better.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 RecognitionListener 时,函数 onBufferReceived 将语音读取到缓冲区中,您可以收集该缓冲区。
When using RecognitionListener, the function onBufferReceived reads the speech into a buffer, which you can collect.