flutter_sound icon indicating copy to clipboard operation
flutter_sound copied to clipboard

[HELP]:

Open gbaranedavid opened this issue 11 months ago • 2 comments

I have been researching Flutter library for recording audio from mic in Uint8list format as live stream for example record sound per second and store it's byte equivalent. and my goal is to broadcast it to some other web or mobile app via websocket and replay the live stream like some sort of voice call.

Note: I didn't bother going the webrtc route as I need access and control over the raw bytes(uint8list) as I need to transmit it over websocket and save them if I wish. I also do not want the involvement of a signaling server as webrtc requires.

I have so far tried sound stream library which readily records from mic as a stream and provides me this stream as uint8list but sound stream library only support android and iOS. We would like to know if flutter-sound library can enable us accomplish our requirement any push in the right direction and a boilerplate code would help and be much appreciated.

Thank you in advance.

gbaranedavid avatar Feb 19 '25 19:02 gbaranedavid

I am not sure to understand clearly your question. I am actually busy implementing completely streams (uint8, int16 and float32) completely on the 3 platforms: -iOS -Android -web I consider that achieving a complete functional feature is a priority. My plan is to work on that as soon as I will have finished my current work on cleaning the doc (which is also another priority). I think that I will be able to work on this project in the next few weeks:

  • first web
  • second finish everything on ios
  • third Android

I don’t know very well Web RTC, but I would like to support it in Flutter Sound. The problem is to be compatible with iOS and Android. Another work that I began is to use Web Audio API both on web and on mobile. Unfortunately this is too much work, and I stopped because the priorities are the doc and the streams.

Sorry if I haven’t understood correctly your question. Good luck with your project.

Larpoux avatar Feb 19 '25 19:02 Larpoux

Actually, web support for int16 interleaved is already working, both for record to stream and play from stream. The audio data are handled by the app as uint8list of the interleaved streams. It works on the 3 platforms.

The support for float32 and plan mode will be done during next month.

Larpoux avatar Feb 19 '25 20:02 Larpoux