We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm using Whisper.rn together with my own Text-to-Speech library (Swift + Expo).
Flow:
transcribeRealtime()
stop()
It works on the first run of the flow, but running it a second time, updateAudioSession() throws the error:
updateAudioSession()
Error: Failed to set mode. Domain=NSOSStatusErrorDomain Code=-50 "(null)"
I suspect something happens when whisper.rn tries to restore the audio session a second time (after my TTS library sets its own session).
This is how whisper.rn is configured:
audioSessionOnStartIos: { category: AudioSessionIos.Category.Record, options: [ AudioSessionIos.CategoryOption.InterruptSpokenAudioAndMixWithOthers, AudioSessionIos.CategoryOption.AllowBluetooth, AudioSessionIos.CategoryOption.AllowBluetoothA2DP, ], mode: AudioSessionIos.Mode.VoiceChat, }, audioSessionOnStopIos: 'restore',
This is how my TTS lib sets its session:
self.audioSession = AVAudioSession.sharedInstance() try self.audioSession.setCategory(.playback, mode: .voicePrompt, options: [.duckOthers, .allowBluetooth, .allowBluetoothA2DP, .allowAirPlay]) try self.audioSession.setActive(true, options: .notifyOthersOnDeactivation)
Do you have any clues? Thanks
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm using Whisper.rn together with my own Text-to-Speech library (Swift + Expo).
Flow:
transcribeRealtime()
stop()
It works on the first run of the flow, but running it a second time,
updateAudioSession()
throws the error:I suspect something happens when whisper.rn tries to restore the audio session a second time (after my TTS library sets its own session).
This is how whisper.rn is configured:
This is how my TTS lib sets its session:
Do you have any clues? Thanks
The text was updated successfully, but these errors were encountered: