Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SFSpeechRecognizer not handling contextual strings properly

SFSpeechRecognizer is very inaccurate for my use case. I have tried setting contextual strings as I have an array of words against which to match with. But it is still not able to do so. Do I need any other configuration?

I am using sample project provided by Apple with only this change:

recognitionRequest.contextualStrings = @[@"iron man", @"metal", @"stark", @"superhero", @"boyfriend", @"pepper", @"arrogant", @"stylish"];
like image 229
Vivek Jha Avatar asked Oct 21 '16 06:10

Vivek Jha


1 Answers

My understanding is that contextualStrings are only for adding words, that presumably aren't already there, to the dictionary.

For example : rare/strange words like "Expecto Patronum" or "Fuddle duddle"

See more in Apple Documentation

like image 191
totsubo Avatar answered Nov 11 '22 14:11

totsubo