I'm working on an application that lets users interact with their computers
using voice commands and responses
(https://github.com/alvinj/Sarah). The
software uses Sphinx-4 to interpret what the user is saying, and currently on
the Mac platform, it uses the AppleScript "say" command to speak back
responses, read emails and web pages, etc.
One problem I have is that I'd like to be able to turn the microphone off
whenever the computer is speaking, and I haven't been able to find a way to do
this. I tried microphone.stopRecording and startRecording, but (a) the javadoc
implies that's not what I want, and (b) it's throwing exceptions.
Is there any way to turn the microphone off and on like this in Sphinx-4?
Thanks,
Al
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm working on an application that lets users interact with their computers
using voice commands and responses
(https://github.com/alvinj/Sarah). The
software uses Sphinx-4 to interpret what the user is saying, and currently on
the Mac platform, it uses the AppleScript "say" command to speak back
responses, read emails and web pages, etc.
One problem I have is that I'd like to be able to turn the microphone off
whenever the computer is speaking, and I haven't been able to find a way to do
this. I tried microphone.stopRecording and startRecording, but (a) the javadoc
implies that's not what I want, and (b) it's throwing exceptions.
Is there any way to turn the microphone off and on like this in Sphinx-4?
Thanks,
Al
start/stopRecording is the methods you want.
Please be more specific:
a) What exactly is the problem with javadoc?
b) What is the exception you get?