mapbox / mapbox-speech-swift

Natural-sounding text-to-speech in Swift or Objective-C on iOS, macOS, tvOS, and watchOS
ISC License
42 stars 17 forks source link

Conflict Between WebRTC Audio and Mapbox Navigation Audio Playback #62

Open ProgrammerFaraz opened 18 hours ago

ProgrammerFaraz commented 18 hours ago

I'm facing an issue while integrating WebRTC audio streaming and Mapbox Navigation audio in the same iOS application. When the Mapbox Navigation SDK plays audio (e.g., turn-by-turn instructions), it interrupts and stops the volume and mic of the ongoing WebRTC audio stream that uses AVAudioSession. This behavior negatively impacts the user experience, especially in scenarios where continuous communication via WebRTC is crucial alongside navigation.

Steps to Reproduce

Expected Behavior

Mapbox Navigation audio should coexist with WebRTC audio:

Actual Behavior

Technical Details

1ec5 commented 9 hours ago

This package only uses AVFoundation on the command line; the iOS version only vends at most the audio data for the client to play. You’ll probably want to report this issue in the mapbox-navigation-ios repository instead.