12

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"];
Bhavin Ramani
  • 3,221
  • 5
  • 30
  • 41
Vivek Jha
  • 121
  • 5

1 Answers1

2

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

BenKoshy
  • 33,477
  • 14
  • 111
  • 80
totsubo
  • 323
  • 4
  • 17