Use speech recognition/synthesis in your applications!

As we all know, OS X has fairly good speech synthesis/recognition capabilities; however, the real good news is that these resources are actually there, open for any developer to use them. If you have the developer kit installed, there are a number of great manuals and examples of the kind of things you can do —> /Developer/ADC Reference Library/documentation/Cocoa/Conceptual/Speech/index.html

You can, for example, specify the words that your application will interpret as commands: (void)setCommands:(NSArray *)commands

Other basic routines to get you started are:

(void)startListening

(void)stopListening

(void)speechRecognizer:(NSSpeechRecognizer *)sender didRecognizeCommand:(id)command

As you see, it’s not that hard and most of them are self-explanatory.

The cool thing about being able to specify the commands you’ll be expecting, is that you can go a lot further than just accessibility -which tends to be the main practical application that OS X uses this for.

Technorati Tags: , ,


 
 

Post a comment to "Use speech recognition/synthesis in your applications!"



Support MacTips

MacTips Newsletter


Random Popular Tips

Recent Comments

Recent Discussions

MacTips Poll

What level of tips would you like to see?

View Results

Loading ... Loading ...

Friends of MacTips

Subscribe to MacTips

Site Links