flutter_soloud icon indicating copy to clipboard operation
flutter_soloud copied to clipboard

fix: Streaming with web sockets not working

Open MoeenKhan opened this issue 6 months ago • 1 comments

Description

The official documentation outlines a method to use network streaming to connect to a web socket, receive chunks, and hear them in real time on a flutter app. I am building a live podcast feature and am considering soloud for it. However, if I just receive the chunks on my node js server from an input source and send them to soloud, I only hear static.

I know that the chunks are not buggy/corruputed because I am storing these chunks as a wave file on a google cloud bucket at the end of each stream, and and the produced wav file works as expected. By works, I mean that the conversation that is being recorded can be replayed in the wav file.

Steps To Reproduce

  1. Clone the websocket sample from here: https://github.com/alnitak/flutter_soloud/blob/main/example/lib/buffer_stream/websocket.dart
  2. Launch it in Android Emulator
  3. Connect to a node js socket that is receiving uncorrupted chunks in real time
  4. Connect to web socket and receive audio in the demo

Image

Expected Behavior

Hear the conversation I record after a certain delay.

Actual Behavior

Only hear static.

Additional Context

Using flutter_soloud 3.1.7.

MoeenKhan avatar Apr 30 '25 13:04 MoeenKhan