Questions tagged [sfspeechrecognizer]

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

119 questions
2
votes
1 answer

Volume has dropped significantly in text to speech since adding speech to text (speech recognition)

The volume in the view controller with the label has become extremely quiet even when just transferring text from the UITextView to the UILabel. Almost evrything is working perfectly apart from the volume issue. Speech Class File: import…
Superlative
  • 514
  • 1
  • 4
  • 14
2
votes
1 answer

While in a phone call or Facetime session, attempting to use SpeechRecognizer crashes app

The scenario described in the title will produce the following error: Terminating app due to uncaught exception 'com.apple.coreaudio.avfaudio', reason: 'required condition is false: IsFormatSampleRateAndChannelCountValid(format) After that, I…
CodeBender
  • 35,668
  • 12
  • 125
  • 132
2
votes
0 answers

Multiple instances of SFSpeechRecognizer?

I am trying to run multiple instances of SFSpeechRecognizer. Unfortunately I always get this error: [Utility] +[AFAggregator logDictationFailedWithError:] Error Domain=kAFAssistantErrorDomain Code=209 "(null)" What does this error mean?
MJQZ1347
  • 2,607
  • 7
  • 27
  • 49
2
votes
0 answers

iOS Speech Reset With Different Language

I have a current speech recognition capture that works nicely - you say what you would like, and it get's it. Fairly accurate too for what it's worth... The issue I'm having is such: If I attempt to change languages after stopping and starting, it…
Will Von Ullrich
  • 2,129
  • 2
  • 15
  • 42
2
votes
0 answers

Swift SFSpeechRecognitionTask is not canceled

I am working with Speech Recognition in Swift and have a problem with canceling SFSpeechRecognitionTask. I have implemented the following logic: I have a mic button Speech is being recognized while button is pressed When the mic button is released…
Danny
  • 3,975
  • 4
  • 22
  • 35
2
votes
1 answer

iOS: AVSpeechSynthesizer doesn't work after recording with SFSpeechRecognizer

I am making an application that does Text-to-speech and speech-to-text. The problem i am having right now is that text-to-speech works fine using AVSpeechSynthesizer. But after i record and do speech-to-text using SFSpeechRecognizer, the…
2
votes
1 answer

Stop recognition in Swift3 without stop word

I'm attempting to simplify usage of the Speech framework in a textview. I can easily start the speech recognition process with code based on entering the textview, startup code or other actions. However, I also want to END the speech recognition…
JohnSF
  • 3,736
  • 3
  • 36
  • 72
2
votes
1 answer

SFSpeechRecognizer authorization key in Info.plist

What is key name, that I need to add in Info.plist to display speech recognition authorization request?
Juri Noga
  • 4,363
  • 7
  • 38
  • 51
1
vote
2 answers

How to Implement SFSpeechRecognizationTaskDelegates

I am trying to implement a speech to text application,i am able to record the audio from Microphone by using SFSpeechRecognizer .The use case is as soon as the user stop speaking ,a method should invoke and stop the recording automatically .Would…
1
vote
1 answer

pause SFSpeechRecognizer on button click

Hello i am creating Call Recording App and i am playing recording through app using AVAduioPlayer and also transcribe audio to text Using SFSpeechRecognizer below is my code for playing audio and transcribe using below code func…
gipeje
  • 61
  • 7
1
vote
0 answers

SFSpeechRecognizer for custom domains?

I was playing around with TLSphinx (Swift wrapper for Pocketsphinx) and gave up after a while. It seemed ideal for my limited grammar use case. Instead I'd like to use the off-grid version of SFSpeechRecognizer, but I'm concerned about recognizing…
saigafreak
  • 405
  • 6
  • 14
1
vote
0 answers

SFSpeechRecognizer not allowing non-system on device locales

I'm trying to recognise English speech spoken in multiple locales on the users device (macOS). The official WWDC video shows that this is supported. However if I try to create an on-device speech recogniser in any language other than my system…
user1542125
  • 593
  • 6
  • 16
1
vote
1 answer

speech recognizer not working in ios 13 background

I am trying to implement speech recognizer in iOS application using Cordova. I am using iOS 13.1. It is working when application is front. But not working when application moved to background. I got the following error: 2020-01-21…
1
vote
1 answer

Unwanted callback from `SFSpeechRecognizer` `recognitionTask` at ~30s mark

If I inspected the stamps for callbacks from the SFSpeechRecognizer recognitionTask callback (on macOS): recognitionTask = speechRecognizer.recognitionTask( with: recognitionRequest ) { result, error in // if more than…
P i
  • 29,020
  • 36
  • 159
  • 267
1
vote
1 answer

Swift SFSpeechRecognizer appending existing UITextView content

I'm using SFSpeechRecognizer in my app which is working fine to ease the end user entering a comment in a UITextView thanks to a dedicated button (Start Speech Recognition). But if the user is typing some text manually first and then starts its…
tiamat
  • 879
  • 2
  • 12
  • 35