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 much work and it'll take up a lot of memory.
+1
A:
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.
Joshua Nozzi
2010-02-18 02:53:56
well I wanted to make a speech to text application, so it doesn't matter if commands interfere
Matt S.
2010-02-18 02:57:34
Same answer: It's not designed to do this. To match against, say, a list of every word in the English language, would be extremely slow and very inaccurate. NSSpeechRecognizer is *not* the solution to your problem.
Joshua Nozzi
2010-02-18 02:59:59
darn. Do you know of anything that can be the solution
Matt S.
2010-02-18 19:56:52
There are open-source speech recognition libraries out there. They all trade some accuracy for being able to recognize any voice or vice-versa (ie, require "training" to a voice for better accuracy). Google "open source speech recognition".
Joshua Nozzi
2010-02-18 20:04:13
thanks! I was able to find some
Matt S.
2010-02-19 19:55:34