在 Windows Phone 7 中用户一开始说话就开始录音?
我只是想知道是否有一种方法可以在用户开始讲话时立即开始从麦克风录音。
我知道如何使用正常步骤从麦克风录制音频,但它总是需要用户通过按下按钮或其他东西来自己开始录制。
我想知道当用户开始说话时是否有一个事件可以触发录音。或者我是否能让程序理解用户说话的内容。
I just wanted to know if there is a way to start recording from the microphone as soon as the user starts speaking.
I know how to record audio from the microphone using the normal steps, but it always requires the user to start the recording himself by pressing a button or something.
I wanted to know if there is an event that can trigger recording when the user starts to speak. Or if I can make the program understand when the user is speaking.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
目前,这在 WP7 中无法在系统级别完成。至于您自己的应用程序 - 理论上是可能的。您可以启动麦克风,并在每次引发缓冲区就绪事件时执行麦克风缓冲区分析。您将分析声音模式,应用一些将语音与噪声分开的算法(如果纯 .net 实现中存在这种算法),并且如果检测到语音,则开始将数据发送到录音流。但这对于设备来说是很大的开销。
Windows 7 已经具有语音激活命令。我建议等待 WP7 的更多更新版本,微软很可能很快就会推出这样的功能。尽管它仍然会消耗电力,因为系统需要一直运行麦克风并进行波序分析。
Currently this can't be done in WP7 at a system level. As for your own app - in theory it is possible. You could start the mic, and perform a mic buffer analysis each time the buffer ready event is raised. You would analyze the sound pattern, apply some separate-voice-from-noise algorith (if one exists in pure .net implementation) and, if voice is detected, start sending the data to a recording stream. It is a great overhead for a device though.
Windows 7 has voice activated commands already. I would recommend waiting for a few more update releases for WP7, most likely Microsoft is to roll our a feature like this soon. Although it would still drain power, since the system would need to have a mic running all the time, and do a wave-sequence analysis.