Picovoice / flutter-voice-processor

Flutter audio recording plugin designed for real-time speech audio processing
Apache License 2.0
29 stars 6 forks source link

Voice processor seems to mix up the audio player channels after recording #4

Closed ashlog closed 3 years ago

ashlog commented 3 years ago

Related issue: https://github.com/Picovoice/flutter-voice-processor/issues/2

I am using a flutter video player plugin and the video player seems to be playing through the earpiece speaker instead of the regular phone speaker even after stopping the recorder and disposing it entirely. I've also tried a different plugin for playing audio instead of video_player and the issue still persists.

  1. Start any type of media.
  2. Media plays on regular speaker.
  3. Call voice processor start();
  4. Call voice processor stop();
  5. Try to start the same media again
  6. Media plays on earpiece speaker instead of regular speaker.

Repository to isolate this issue: https://github.com/muhatashim/flutter-voice-processor-video-player-demo

laves commented 3 years ago

Thanks for reporting. Is this issue present on Android and iOS?

ashlog commented 3 years ago

Thanks for reporting. Is this issue present on Android and iOS?

Seems to be iOS only from what I remember.

laves commented 3 years ago

Okay, thanks. I think I know what may be causing this. We changed some iOS audio session settings to deal with issue#2, but I think we added one in there that is causing the issue you are experiencing. We'll have a fix for this shortly.

ashlog commented 3 years ago

Okay, thanks. I think I know what may be causing this. We changed some iOS audio session settings to deal with issue#2, but I think we added one in there that is causing the issue you are experiencing. We'll have a fix for this shortly.

Hey, just wondering if there's been any updates into this issue.

laves commented 3 years ago

This issue has been scheduled to be taken care of first thing next week - apologies for the delay.

laves commented 3 years ago

@ashlog, update to latest and the issue should be fixed.

ashlog commented 3 years ago

@ashlog, update to latest and the issue should be fixed.

Fantastic, thanks for the quick fix! I just verified it as working now.