Use this tag for iOS 10+ Speech framework's main class SFSpeechRecognizer.
Questions tagged [sfspeechrecognizer]
119 questions
33
votes
5 answers
SFSpeechRecognizer - detect end of utterance
I am hacking a little project using iOS 10 built-in speech recognition. I have working results using device's microphone, my speech is recognized very accurately.
My problem is that recognition task callback is called for every available partial…

Tomek Cejner
- 1,152
- 1
- 11
- 17
32
votes
3 answers
Terminating app due to uncaught App crashes while using Speech kit ios
I got this error while implementing speech to text:
Terminating app due to uncaught exception
'com.apple.coreaudio.avfaudio', reason: 'required condition is false:
_recordingTap == nil'
and:
ERROR: [0x1b2df5c40] >avae> AVAudioNode.mm:565:…

Waris Shams
- 1,606
- 1
- 15
- 27
21
votes
7 answers
AVAudioEngine inputNode installTap crash when restarting recording
I am implementing Speech Recognition in my app. When I first present the view controller with the speech recognition logic, everything works fine. However, when I try present the view controller again, I get the following crash:
ERROR: …

Appache99
- 211
- 1
- 2
- 5
14
votes
5 answers
AVSpeechSynthesizer does not speak after using SFSpeechRecognizer
So I built a simple app that does speech recognition using SFSpeechRecognizer and displays the converted speech to text in a UITextView on the screen. Now I'm trying to make the phone speak that displayed text. It doesn't work for some reason.…

Youssef Hammoud
- 471
- 4
- 13
13
votes
1 answer
Error Domain=kAFAssistantErrorDomain Code=209 "(null)"
I am facing an issue with the SFSpeechRecognizer. After few seconds of starting the application I start getting the error
Error Domain=kAFAssistantErrorDomain Code=209 "(null)"" and "Error
Domain=kAFAssistantErrorDomain Code=203 "Timeout"
…

Veeral Arora
- 139
- 1
- 7
12
votes
1 answer
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…

Vivek Jha
- 121
- 5
10
votes
3 answers
Speech Recognition got an error on iOS
I'm studying the Speech Recognition on the iOS, but Every time I call the method [_recognitionRequest endAudio] , it always got an error in recognitionTaskWithRequest: the message is in the bottom.
-(void) stopRecording {
if (_disableSpeechSW ==…
user1028886
9
votes
2 answers
Swift: iPhone's volume is low when trying to change speech to iPhone's voice in swift
I am trying Speech recognition sample. If I started to recognise my speech via microphone, then I tried to get iPhone's voice of that recognised text. It is working. But, voice is too low. Can u guide me on this?
Rather than, if I am trying in…

McDonal_11
- 3,935
- 6
- 24
- 55
9
votes
0 answers
Make `contextualStrings` more likely when using SFSpeechRecognitionRequest
I'm using iOS 10 new Speech API, and I'm setting the SFSpeechRecognitionRequest's contextualStrings. However the words have a very low probability - I guess - so they don't get recognized. Is there a way I could make them more likely to be…

Emannuel Carvalho
- 623
- 4
- 16
9
votes
1 answer
SFSpeechRecognizer that recognizes few command words instead of a whole phrase?
I have a SFSpeechRecognizer set up from Apple's sample app
https://developer.apple.com/library/content/samplecode/SpeakToMe/Introduction/Intro.html
I was wondering if it was possible to have the recognizer recognize individual words that are not…

user3796209
- 449
- 6
- 18
7
votes
1 answer
Does SFSpeechRecognizer have a limit if supportsOnDeviceRecognition is true and offline mode is available?
According to the Apple documents, there is a limit to the number of requests that SFSpeechRecognizer can send.
Be prepared to handle failures caused by speech recognition limits. Because speech recognition is a network-based service, limits are…

amone
- 3,712
- 10
- 36
- 53
7
votes
0 answers
AVAudioEngine crashing on sample rate in Swift
I have started getting a crash that did not previously happen with initialization of recording with the error:
[avae] AVAEInternal.h:70:_AVAE_Check: required condition is false: [AVAudioIONodeImpl.mm:911:SetOutputFormat: (format.sampleRate ==…

user6631314
- 1,751
- 1
- 13
- 44
7
votes
1 answer
SFSpeechRecognizer kAFAssistantErrorDomain Code=203 "Retry"
I use SFSpeechRecognizer, basically to work.
1.But sometimes the following error occurs.
And mostly before I did not execute avStop().
[Utility] +[AFAggregator logDictationFailedWithError:] Error
Domain=kAFAssistantErrorDomain Code=203 "Retry"
…

user9186082
- 71
- 1
- 4
7
votes
1 answer
How to improve speech recognition in ios for numeric input?
I am using ios speech recognition and it does very well whenever there is enough context. I am using speech recognition only for numeric input and am seeing issues. For example, with single digit numbers (like 2 - to, too, or 8 - ate); there is…

Eric
- 1,945
- 3
- 23
- 33
7
votes
1 answer
iOS 10.0 Speech Recognition Error kAFAssistantErrorDomain
I try using speech recognition as below
let urlpath = Bundle.main().pathForResource("myvoice2", ofType: "m4a")
let url:URL = URL.init(fileURLWithPath: urlpath!)
let recognizer = SFSpeechRecognizer()
let request =…

Dong Duong
- 73
- 1
- 1
- 4