-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is recording property #19
Comments
Hello, probably the wrong place to ask but i've read the docs and as i understand this is how you start and stop the recording:
Can you please hint me in the right direction as to why the spoken text is not printed out?
|
The TL;DR: have a look at the example project to see how the delegate functions are implemented. That's what you're missing. You're defining an utterance but not setting it on the Speech sessions: speech.utterance = utterance Looks like you're also calling speech to speak and record in the view appearing at the same time which might be an issue. Then you call it to end recording on disappear which might be another issue, but you're not calling '.speak()' so you might be recording your voice but you're not calling to speak when the recording finishes. The error message implies that you had it record for a long time and it timed out. There's a time limit on microphone access for speech recognition that Apple have defined which I think was between 30 and 60 seconds. If you're using a real device and have given access to both the microphone and the ability to use speech recognition, I'd recommend making a button with an action that calls to perform the functions. Finally, I don't see where you're setting the delegates that handle informing the class of events, so you're not receiving the speech to text content anywhere. |
Given we set the state of the recording active or inactive providing an
isRecording
property would be great.The text was updated successfully, but these errors were encountered: