sfspeechrecognizer

AVAudioEngine inputNode installTap crash when restarting recording

一个人想着一个人 提交于 2019-11-30 17:56:30
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: [0x190bf000] >avae> AVAudioNode.mm:568: CreateRecordingTap: required condition is false: IsFormatSampleRateAndChannelCountValid(format) *** Terminating app due to uncaught exception 'com.apple.coreaudio.avfaudio', reason: 'required condition is false: IsFormatSampleRateAndChannelCountValid(format)' Here is the code used for starting and stopping recording:

Terminating app due to uncaught App crashes while using Speech kit ios

邮差的信 提交于 2019-11-30 01:24:42
问题 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: CreateRecordingTap: required condition is false: _recordingTap == nil Here is the code of my viewController: public class ViewController: UIViewController, SFSpeechRecognizerDelegate { // MARK: Properties private let speechRecognizer = SFSpeechRecognizer

SFSpeechRecognizer - detect end of utterance

别说谁变了你拦得住时间么 提交于 2019-11-28 09:04:32
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 transcription, and I want it to detect person stopped talking and call the callback with isFinal property set to true. It is not happening - app is listening indefinitely. Is SFSpeechRecognizer ever capable of detecting end of sentence? Here's my code - it is based on example found on the Internets, it is mostly a boilerplate needed to recognize from

SFSpeechRecognizer - detect end of utterance

那年仲夏 提交于 2019-11-26 20:53:26
问题 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 transcription, and I want it to detect person stopped talking and call the callback with isFinal property set to true. It is not happening - app is listening indefinitely. Is SFSpeechRecognizer ever capable of detecting end of sentence? Here's my code