-
-
Notifications
You must be signed in to change notification settings - Fork 18
AudioContext currentTime after using iOS SFSpeechRecognizer #465
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
Comments
Hey, thank you for your kind words! :) Regarding your issue, there might be a couple of problems which prevents the internal AVAudioEngine to not start:
|
Thanks! I'll try out these fixes :) |
Has something worked for you? :) |
Hey! I dug around a bit but didn't have too much time to diagnose it properly. I ended up just recreating the whole context every time I need it - performance wise it's acceptable for my use, and it's working well so far. I may revisit later, but for now I'm leaving it alone. |
Uh oh!
There was an error while loading. Please reload this page.
Description
Hello, thanks for the great work on this library!
I have one problem and I'm not sure if it's an issue on my end or not. I am attempting to playback an audio file through this API, perform some speech recognition, and then play more audio.
I have some native code using iOS's SFSpeechRecognizer that creates an AVAudioSession sharedInstance. When I turn off the microphone for this speech recognition, I set the audioSession category back to .playback and reset the AVAudioEngine.
However, I notice that when I come back to the AudioContext created through react-native-audio-api, the currentTime is frozen. AudioContext.resume() does not seem to help, and the state shows that it is running.
Anybody have any ideas? Let me know if I should provide more info.
Steps to reproduce
Snack or a link to a repository
n/a
React Native Audio API version
0.6.0
React Native version
0.76.7
Platforms
iOS
JavaScript runtime
None
Workflow
None
Architecture
None
Build type
None
Device
None
Device model
No response
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: