Use this tag for iOS 10+ Speech framework's main class SFSpeechRecognizer.
Questions tagged [sfspeechrecognizer]
109 questions
28
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:…
![](../../users/profiles/2451487.webp)
Waris Shams
- 1,566
- 1
- 14
- 26
25
votes
4 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…
![](../../users/profiles/515241.webp)
Tomek Cejner
- 968
- 8
- 16
18
votes
6 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: …
![](../../users/profiles/7457328.webp)
Appache99
- 181
- 1
- 1
- 5
12
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"
…
![](../../users/profiles/6193545.webp)
Veeral Arora
- 129
- 1
- 6
12
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.…
![](../../users/profiles/6362969.webp)
Youssef Hammoud
- 311
- 2
- 9
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…
![](../../users/profiles/7051664.webp)
Vivek Jha
- 121
- 4
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…
![](../../users/profiles/4384775.webp)
McDonal_11
- 3,607
- 5
- 22
- 50
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…
![](../../users/profiles/2557380.webp)
Emannuel Carvalho
- 613
- 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…
![](../../users/profiles/3796209.webp)
user3796209
- 439
- 5
- 15
9
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
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 =…
![](../../users/profiles/3490153.webp)
Dong Duong
- 73
- 1
- 1
- 4
6
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…
![](../../users/profiles/726411.webp)
Eric
- 1,799
- 3
- 20
- 32
5
votes
0 answers
Make microphone ignore audio from AVSpeechSynthesizer
Inspired by this question (which didn't receive an answer).
Context: I have a (swiftUI) view that has 2 buttons and a textfield. One button turns on the mic and uses SFSpeechrecognizer to turn speech into text (and fills the textfield). This is then…
![](../../users/profiles/5527786.webp)
nodel
- 349
- 2
- 16
5
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 ==…
![](../../users/profiles/6631314.webp)
user6631314
- 1,475
- 7
- 21
5
votes
0 answers
Error Domain=kAFAssistantErrorDomain Code=209 "(null)" -- Reset Button Kills Dictation
I am repeatedly getting this error message when I tap the reset button for my app with speech recognition. It only happens if I tap the button while the app is actively listening for speech recognition. The app looks like it is still recording,…
![](../../users/profiles/7437078.webp)
aequinox
- 113
- 1
- 14