Canardoux / flutter_sound

Flutter plugin for sound. Audio recorder and player.
Mozilla Public License 2.0
878 stars 574 forks source link

[HELP]:Cannot record and play at the same time on IOS and Android #1091

Open LarryWangCA opened 2 months ago

LarryWangCA commented 2 months ago

Hi @Larpoux , Thank you for your previous help for enabling stereo audio recording on Android. Right now for another project, I need to record and play simultaneously (1: audio through function: I can hear immediately what I said; 2: play a beep sound based on the processed stream audio). I cannot find an example that can do this in the example part of Android / IOS folder. All the examples I found can record or playback ONLY. I tried using AudioPlayer and other 3rd party libraries and all of them seem to conflict with the recording process.

Any suggestions for how to record and playback simuteneously? Thank you in advance for any help.

Best,

Larry

Larpoux commented 2 months ago

Hi Larry,

Previously, there was an example that played what was recorded from the mic. I removed this example because it seemed silly for me to play from the mic. More, this example didn’t show anything magical: you just open a player and a recorder and feed the player stream with the data received from the recorder stream.

I can reintroduce this example if I find it, but really: there is nothing special in this example. It is just a player and a recorder in the same app.

LarryWangCA commented 2 months ago

Hi Larpous @Larpoux , Thank you for your kind reply. It is my issue. The code is working now.