Questions tagged [sfspeechrecognizer]

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

119 questions
0
votes
0 answers

Is there a more detailed way to debug SFSpeechRecognizer?

Updated info below, and new code I am trying to incorporate SFSpeechRecognizer into my app, and the errors/results I am getting from three pre-recorded audiofiles aren't enough for me to figure out what's going on. From the results I am getting I…
Bartender1382
  • 195
  • 1
  • 10
0
votes
0 answers

SFSpeechURLRecognitionRequest result, not contains all audio file (Non local US)

Using SFSpeechURLRecognitionRequest, Trying to transcribe a 3 min Audio file (Polish language), BUT Result.isFinal called before 3 min complete. transcribe only the first 60 seconds. any other ways to transcribe the whole 3 minutes? just a simple…
Ofir Malachi
  • 1,145
  • 14
  • 20
0
votes
1 answer

Recognize speech from microphone while audio plays in the background

I want my app to recognize speech from the microphone and allow audio in the background to keep playing. My app recognizes speech coming in through the microphone and converts it to text. When my app launches it shuts down any audio playing in the…
0
votes
2 answers

In Swift, how do you loop through a list and hand one item at a time to a function with completion closure?

I'm trying to process a folder with audio files through speech to text recognition on MacOS. If I just process one file, it works, but if I feed multiple files, only one file works and throws an error for rest. I thought I could use DispatchGroup,…
jl303
  • 1,461
  • 15
  • 27
0
votes
0 answers

Why SFSpeechRecognizer.supportsOnDeviceRecognition is writable?

Why supportsOnDeviceRecognition option of SFSpeechRecognizer object is writable? Does it make any sense to set it to true? What will happen?
Henry
  • 9
  • 1
0
votes
1 answer

Programmatically scroll uiscrollview to bottom as uilabel grows in height

I am using SFSpeechRecognizer to transcribe audio to text. As the audio is transcribed, I am printing it out as results come out to a uilabel, which is a subview of a uiscrollview. The uilabel is pinned to the top and bottom of the uiscrollview. My…
Chris
  • 431
  • 8
  • 33
0
votes
1 answer

Teach iOS SFSpeechRecognizer custom words (medication names, chemistry terms, etc)

I have a question regarding the integration of the speech to text iOS library called SFSpeechRecognizer. I need SFSpeechRecognizer to recognize terms that are not present in the iOS dictionary like medication names, chemistry terms, etc. I would…
0
votes
0 answers

SFSpeechRecognizer - detect voice language automatically from two languages

I'm developing a translator app for ios. it requires a language locale to be present. It can't detect automatically which one is used. So how to detect the language and how to change locale of SFSeechRecognizer accordingly? I had referred the below…
0
votes
1 answer

SFSpeechRecognitionRequest on Xamarin.iOS requiresOnDeviceRecognition. Is it available?

I am using this article which also has a sample for Speech recognition in Xamarin.iOS using Apple's SFSpeechRecognition https://learn.microsoft.com/en-us/xamarin/ios/platform/speech?tabs=macos The sample works fine but it doesn't work without…
Ali123
  • 740
  • 13
  • 38
0
votes
1 answer

How can I check if I said one of the words contained in a list using speech_recognizer

I'm trying to create a little program which should print something if in what I say (not only one word but a phrase) (using speech_recognizer) there is a word which is contained in a list of words (word_list). Also the output should change if I…
0
votes
1 answer

SFSpeechRecognizer not working on real device if playing audio from Apple Music

have implemented speech to text functionality which is working fine if I am speaking to the microphone. But I want it to work if am selecting the audio from Apple Music. I have am playing the audio using MPMediaPickerController and the audio is…
0
votes
2 answers

Using AudioToolbox instead of AVFoundation in SFSpeechRecognizer

I have to use AudioToolbox instead AVAudioSession for providing stream to SFSpeechRecognizer. I know that I should use AudioQueue, so I made an audio recording export to CMSampleBuffer to read it with recognizer. And while debugging I see that the…
0
votes
1 answer

SFSpeechRecognizer segment timestamps start at zero each minute

I just noticed that the timestamps of SFTranscriptionSegments start at zero each minute, which makes it impossible to really know where the text is located if there are long pauses. Is this something that can be configured or worked around? I am…
user1573546
  • 523
  • 5
  • 13
0
votes
0 answers

Bypass/disable macOS security measures for efficient development cycle of SFSpeechRecognizer project

I am building a macOS project that makes use of SFSpeechRecognizer, which in turn makes use of the microphone. Each time I modify the code and rebuild, I have to: Preferences -> Security & Privacy -> Accessibility Then I have to: - click the…
P i
  • 29,020
  • 36
  • 159
  • 267
0
votes
1 answer

SFSpeechRecognizer online: at which url is sent the request?

I'm developing an iOS application in Swift that uses SFSpeechRecognizer (package: Speech). This application is developed for an organization that uses VPN and blocks every request from/to the external network. This is partial code: let…
Samuel Adorni
  • 208
  • 2
  • 14