flutter_sound icon indicating copy to clipboard operation
flutter_sound copied to clipboard

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

Open MrTavus opened this issue 1 year ago • 4 comments

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 avatar Oct 15 '24 17:10 MrTavus

hi. is there anybody help me?

MrTavus avatar Oct 18 '24 13:10 MrTavus

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.

Larpoux avatar Oct 18 '24 18:10 Larpoux

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

MrTavus avatar Oct 18 '24 18:10 MrTavus

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.

Larpoux avatar Oct 18 '24 18:10 Larpoux