开发者

Detecting Voice Recognition Activation

Alright, I have this app that runs as a service and takes audio samples every so often, and keeps track of the amplitude. It works beautifully. I have try/catch blocks so that my app doesn't interfere with other apps using the microphone, and all of that. The only problem I have is with the Voice Recognition app. Any other app that uses the microphone, recording memos, the phone, anything, doesn't bother my app because of the catch blocks. However, if the voice rec开发者_如何学运维ognition app is running when my app tries to take its sample, my app crashes. To my knowledge, my app fails when it reaches the stop() function, for whatever reason...but that's not what I'm here for.

The thing I would like to know is if there is a way to detect if the Voice Recognition app is running/is started. Like I said, I have the catch blocks in place which work beautifully for every OTHER situation when the microphone wouldn't be accessible, but they, for some reason, don't work for the voice recognition.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜