Description
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
- Create new AudioContext
- While the context is running, concurrently create a new AVAudioEngine instance and change the sharedInstance's category to .record
- The currentTime is then frozen in AudioContext
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