mdavis1982
2004.07.09, 10:14 PM
Hi guys...
First, excuse me if this is in the wrong thread. I'm still pretty new here, and this may affect me entering the 'blind' competition on www.createmacgames.org, so I put it in the game development thread!
Anyway...
I have successfully implemented NSSpeechRecognizer into my application. It works with the predefined commands I've set up in the code. This all works fine. My question is this:
In the Apple docs it mentions responding to commands such as "Schedule a meeting with John and Adam tomorrow at 10 o'clock". Now, I don't think you would specifiy a command of that nature in the code. Suppose you had a contact list of 1000 people from which to schedule meetings!
So, how do I get my command to take a parameter? For example, say I had a command called "Say the word", the user may say "Say the word cat". Obviously if they said this the application wouldn't respond because it isn't a defined command!
So, I'm stuck!
Any ideas or clues would be greatly appreciated!
Cheers,
Matt
First, excuse me if this is in the wrong thread. I'm still pretty new here, and this may affect me entering the 'blind' competition on www.createmacgames.org, so I put it in the game development thread!
Anyway...
I have successfully implemented NSSpeechRecognizer into my application. It works with the predefined commands I've set up in the code. This all works fine. My question is this:
In the Apple docs it mentions responding to commands such as "Schedule a meeting with John and Adam tomorrow at 10 o'clock". Now, I don't think you would specifiy a command of that nature in the code. Suppose you had a contact list of 1000 people from which to schedule meetings!
So, how do I get my command to take a parameter? For example, say I had a command called "Say the word", the user may say "Say the word cat". Obviously if they said this the application wouldn't respond because it isn't a defined command!
So, I'm stuck!
Any ideas or clues would be greatly appreciated!
Cheers,
Matt