Canardoux / flutter_sound

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

[HELP]: How can i play stream audio from Speaker? #1102

Open MrTavus opened 5 days ago

MrTavus commented 5 days ago

I need Help for :

Play a sound coming from Stream with Speaker


Hi. I develop a voice chat application. I use socket.io both flutter and nodejs. I used startPlayerFromStream() function to play audio. But this audio is played on handset. I want to play audio with speaker. How can i do?

MrTavus commented 2 days ago

hi. is there anybody help me?

Larpoux commented 2 days ago

Hi, @MrTavus

I am not sure that it’s possible to do that on Flutter Sound 9.x. Some times ago there was a parameter allowing to specify the output device. I don’t remember well, but I guess that it didn’t work correctly. And there was no possibility to get a list of the output devices available.

note: I am currently working on a v10.0 release. With this new version it will be possible to select the mic and the speaker to use. But be patient: v10.0 is not expected before the end of the year.

MrTavus commented 2 days ago

I dont need new version because i developed a feature to change source of voice between headset and speaker. If you want, i can share how i do in this flood

Larpoux commented 2 days ago

Oh yes! Sure. If you suggest to improve flutter sound, it would be great. Of course, a pull request would be the best for me, because I don’t want to spend much time on v9.x : v10.0 is much work for me and I really want to release something at the end of the year. At least for flutter web at the beginning.