Questions tagged [sfspeechrecognizer]

Use this tag for iOS 10+ Speech framework's main class SFSpeechRecognizer.

119 questions
4
votes
0 answers

Speech API - confidence always 0

I tried using the official Apple example: SpeekToMe I edited the example in the following way to get the confidence levels: if let result = result { for t in result.transcriptions { for s in…
deloki
  • 1,729
  • 2
  • 18
  • 26
4
votes
1 answer

Where can I find error codes for kAFAssistantErrorDomain errors on iOS?

These errors are returned in iOS Speech Recognition. But there does not seem to be a list of error codes anywhere on the web. Anyone know where they are?
mike nelson
  • 21,218
  • 14
  • 66
  • 75
4
votes
2 answers

Single spoken letters with SFSpeechRecognizer?

I am writing a spelling bee app. I have been using SFSpeechRecognizer, but it doesn't do very well with single letter cause I'm guessing it's looking for spoken phrases. I've been googling SFSpeechRecognizer for a while and haven't found much in…
Will
  • 105
  • 10
4
votes
0 answers

Is there any framework like SFSpeechRecognizer in tvOS?

I want to build an app for tvOS which will recognise voice and convert it into text and based on that text it will perform some actions. I have already done that in iOS 10 using SFSpeechRecognizer class of Speech Framework. I could not found any…
4
votes
0 answers

Speech framework iOS 10: Recognition of letters, not words

The new Speech framework is great. However, I'm looking for a way to recognize spoken letters, not just words. The Apple TV does this to enter usernames and passwords. iOS Dictation recognizes individual letters if you preface your speech with the…
3
votes
0 answers

What languages are currently supported by iOS SFSpeechRecognizer?

Would be great to know which languages are supported offline versus online. Thanks!
Marc Bolh
  • 383
  • 3
  • 16
3
votes
2 answers

SFSpeechRecognizer on MacOS not available despite successful authorization

I am trying to get a clumsy Objective-C proof-of-concept example to run with SFSpeechRecognizer on Catalina transcribing a local audio file. After some googling I have managed to get the authorization to work by adding an Info.plist with…
user1573546
  • 523
  • 5
  • 13
3
votes
1 answer

SFSpeechRecognizer fails with error kAFAssistantErrorDomain Code=1107

I'm trying to transcribe local audio files in my app. Short files recognised fine, but if audio is more than about 15 min it is not. Console immediately shows this error: 2020-01-17 12:57:07.528986+0300 App[2816:791131] [Utility] +[AFAggregator…
Stanislav K.
  • 374
  • 4
  • 13
3
votes
0 answers

Where are `kAFAssistantErrorDomain` codes documented?

I'm trying to work with SFSpeechRecognizer on macOS. I'm getting error messages such as: ERROR in Dictation.swift: Error Domain=kAFAssistantErrorDomain Code=209 "(null)" ERROR in Dictation.swift: Error Domain=kAFAssistantErrorDomain Code=1…
P i
  • 29,020
  • 36
  • 159
  • 267
3
votes
2 answers

SFSpeechRecognizer isn't working properly in IOS 13.2

In IOS 13.1, everything worked just fine. Since 13.2, the SFSpeechRecognizer is giving me a hard time. The speech recognition takes way longer than before and the result.IsFinal bool is never true. I am not just struggling with these errors in my…
Jonas
  • 41
  • 7
3
votes
0 answers

Speech recognition session crash

I know that similar questions already were asked but proposed solutions didn't help me. In my app I have to recognize user's speech and to synth text-to-speech as well. The problem is, I have random crashes when the app trying to recognize…
lithium
  • 1,272
  • 1
  • 14
  • 28
3
votes
0 answers

Error while running multiple SFSpeechRecognitionTask in background

As per requirement of the App I am developing, I have to pass multiple audio files to SFSpeechRecognizer and get the transcription in return. I did it in two ways First Method - Using Recursion (Running correctly, you can skip it if you want) I have…
Talha Ahmad Khan
  • 3,416
  • 5
  • 23
  • 38
3
votes
0 answers

Speech Recognition: Alternate substrings always empty, confidence 0 most of the time

I'm trying to work with speech recognition in iOS, but I guess we're not getting friends... I've set up an SFSpeechRegonizer and set its delegate accordingly. Now I implement the delegate method as follows: func speechRecognitionTask(_ task:…
3
votes
0 answers

SFSpeechRecognizer 216 Error with Multiple Requests

I have an implementation of AVAudio and SFSpeechRecognizer that generally works fine the first few times. However, after one or more requests, I am getting a 216 Error. Despite numerous questions about what these errors, 216, 203 and others,…
user6631314
  • 1,751
  • 1
  • 13
  • 44
3
votes
0 answers

Error with Apple's SFSpeechRecognition when app in Background Mode (phone locked)

I am attempting to use Apple's SFSpeechRecognition (xcode 9, ios11, swift 4). The following code uses a timer to start a new request for speech recognition. I have background capability on, microphone usage granted and speech recognition granted. If…