Have NSSpeechRecognizer recognize any command
Is there any way I can have NSSpeechRecognizer recognize any command I throw at it. I know I could just have a massive array, but that's too m开发者_高级运维uch work and it'll take up a lot of memory.
Simply put: No.
NSSpeechRecognizer isn't designed to work this way. It's designed only to listen for a specific list of commands.
"Any command" is a massive list even if each is one word; imagine various combinations of different words that could be a "command". Impractical and unlikely to work.
精彩评论