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"];
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.