SFSpeechRecognizer not handling contextual strings properly
Asked Answered
J

1

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"];
Jarl answered 21/10, 2016 at 6:56 Comment(3)
Did you find any solution to thisKrueger
No. Went with google speech api.Jarl
Actually I added the same context using swift it began to work normally.Okechuku
S
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

Supererogatory answered 22/10, 2017 at 11:46 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.