Menu

Turn microphone off and on?

Help
2012-01-20
2012-09-22
  • Alvin Alexander

    Alvin Alexander - 2012-01-20

    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

     
  • Nickolay V. Shmyrev

    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?

     

Log in to post a comment.