开发者

Have NSSpeechRecognizer recognize any command

开发者 https://www.devze.com 2022-12-20 23:29 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消