hyochan / react-native-audio-recorder-player

react-native native module for audio recorder and player.
MIT License
706 stars 212 forks source link

Issues w/ audio-capture when external bluetooth peripherals are connected #415

Open jzaleski opened 2 years ago

jzaleski commented 2 years ago

Version of react-native-audio-recorder-player

3.3.3

Version of React Native

0.66.3

Platforms you faced the error (IOS or Android or both?)

Both

Expected behavior

Audio will be captured regardless of whether the audio source is coming from the on-device microphone or an externally bluetooth peripherals (e.g. Air Pods, Bose headsets, etc.)

Actual behavior

Occasionally, but not always, we end up with a zero-length audio file as the output from react-native-audio-recorder-player despite how long the actual recording may have been. Whenever this issue occurs our current work-around is to disconnect the external peripheral and record [again] using the on-device microphone.

Steps to reproduce the behavior

Record audio w/ external bluetooth peripherals connected, occasionally no audio will be captured in the resulting file

showtan001 commented 1 year ago

+1 wired headphone too @hyochan

sharma-sanjeev156 commented 11 months ago

I am facing this issue on Android devices