Questions tagged [sfspeechrecognizer]

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

119 questions
6
votes
1 answer

speechRecognizer?.supportsOnDeviceRecognition always returns false

I've just updated to macOS 10.15.4 and every time I check if on-device speech recognition is available I get back false. This was working on 10.15.3. speechRecognizer?.supportsOnDeviceRecognition = true print("supportsOnDeviceRecognition:…
user1542125
  • 593
  • 6
  • 16
5
votes
2 answers

SFSpeechRecognizer on Monterrey error 102

I have updated to macOS Monterrey and my code for SFSPeechRecognizer just broke. I get this error if I try to configure an offline speech recognizer for macOS Error Domain=kLSRErrorDomain Code=102 "Failed to access assets"…
Rodrigo
  • 733
  • 1
  • 10
  • 26
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…
nodel
  • 471
  • 6
  • 22
5
votes
1 answer

SFSpeechRecognizer multiple languages

I am building a search that supports voice recognition and transforms speech to text so I am using SFSpeechRecognizer. But the problem is that I need to support multiple languages at the same time such as ("en_US", "fr", vi, ar). The main idea is…
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,…
aequinox
  • 125
  • 1
  • 17
5
votes
1 answer

android.speech.RecognitionService SecurityException with some 3rd-party speech recognizers

We created an Android app which uses Google speech recognizer and we choose first ,in program, Google speech recognizer to use. Most devices work fine, and only few devices(MEIZU_M5, U78-E, Apollo Lite etc.) report below exceptions. It seems some…
5
votes
1 answer

AVSpeechRecognizer: required condition is false: _recordingTap == nil error in Swift3

I have no idea why I have this error. The error I got is Terminating app due to uncaught exception 'com.apple.coreaudio.avfaudio', reason: 'required condition is false: _recordingTap == nil' UPDATE Actually, this works, but after several times,…
Ryohei
  • 713
  • 2
  • 9
  • 20
4
votes
0 answers

Is it possible to run multiple instances of SFSpeechRecognizer?

I've implemented Apple's SpeechRecognizer to convert speech to text. I have multiple audio recordings so I'm creating mulitple SFSpeechRecognizer instance so that all of those are converted parallely and I've also used DispatchGroup so that I can…
Rajat Mishra
  • 995
  • 7
  • 18
4
votes
1 answer

How to make SFSpeechRecognizer available on macOS?

I am trying to use Apple's Speech framework to do speech recognition on macOS 10.15.1. Before macOS 10.15, speech recognition was only available on iOS, but according to the documentation and this talk, should now be available on macOS as…
James Porter
  • 1,853
  • 2
  • 17
  • 30
4
votes
0 answers

How to select audio input device (mic) in AVAudioEngine on macOS / swift?

Is it possible to select the input device in AVAudioEngine using Swift on macOS? Use case: I am using SFSpeechRecognizer on macOS. To feed microphone data into it I am using private let audioEngine = AVAudioEngine() : let inputNode =…
P i
  • 29,020
  • 36
  • 159
  • 267
4
votes
1 answer

Implementing "user stopped speaking" notification for `SFSpeechRecognizer`

I'm attempting to solve this problem: SFSpeechRecognizer - detect end of utterance The problem is that SFSpeechRecognizer callback fires every time the detected speech string changes, but it only fires after 60 seconds of silence (whereupon it sets…
P i
  • 29,020
  • 36
  • 159
  • 267
4
votes
1 answer

SpeechRecognizer fails after minutes

I am working on an iOS project that uses SFSpeechRecognizer, it works fine in the beginning. I speak some word and it responds. But after one or two minutes, it just fails. It does not give any feedbacks of recognized results. I wonder if that's…
4
votes
3 answers

SFSpeechRecognizer (Siri Transcription) Timeout Error on iOS App

In my iOS app, I am trying to transcribe prerecorded audio using iOS 10's latest feature, the Speech API. Multiple sources including the documentation have stated that the audio duration limit for the Speech API (more specifically…
itsSLO
  • 359
  • 1
  • 4
  • 10
4
votes
1 answer

How to force iOS Speech API to read only numbers and recognize "one" as "1"

I want to use iOS Speech API to recognize mathematical expressions. It works okay for things like two plus four times three - reads it as 2+4*3, but when I start expression with 1 it always reads it as "One". When "One" is in the middle of…
4
votes
0 answers

When app goes to background speech recognition not working

I am using SFSpeechRecognition for speech to text, its working properly when application is on foreground but application required continues recording when app goes to background too. I tired all required background setting in .plist file -…