Vivek Jha
Vivek Jha

Reputation: 121

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"];

Upvotes: 12

Views: 1276

Answers (1)

totsubo
totsubo

Reputation: 373

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

Upvotes: 2

Related Questions