PDA

View Full Version : custom applescripts for speech recognition




Macco
Mar 26, 2004, 10:52 AM
Does anyone know how to create an applescript and then use it with the speech recognition technology, i.e. say its name and the script executes? I created the following applescript:

tell application "iChat"
activate
set status to available
beep
end tell

and named it "Start chatting." I want it to open iChat if it is not already open, and set my status to available. The script works fine when I double-click it. I placed it in the directory ~/Library/Speech/Speakable Items. I know that speech recognition is turned on, and "Start chatting" even shows up in the speech commands window. However, whenever I say "Start chatting," nothing happens. I know that it recognizes what I say, because the little yellow rectangle appears above the speech window. If anyone could help me, that would be great. Thanks!



OutThere
Mar 26, 2004, 10:56 AM
Speech recognition can be a bit dodgy at best...

Try changing the names on the scripts to stuff that might be easier for it to understand. I have found that speech recognition only works for me about once every ten tries.

Macco
Mar 26, 2004, 10:59 AM
Speech recognition can be a bit dodgy at best...

Try changing the names on the scripts to stuff that might be easier for it to understand. I have found that speech recognition only works for me about once every ten tries.

Thanks, but it definitely recognizes what I say. I tried changing the name, and even though the name of the command appears above that circular window after I say it, nothing happens.

HexMonkey
Mar 26, 2004, 01:49 PM
What format did you save the script as? I tried two formats, script and application, and although it recognised both commands, only the application would be run, the script would just be ignored.

Macco
Mar 26, 2004, 03:30 PM
What format did you save the script as? I tried two formats, script and application, and although it recognised both commands, only the application would be run, the script would just be ignored.

Thanks! It works now. Speech recognition... so much fun...