Replies: 1 comment
-
did you find a way? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to play the audio received as bytes over sockets in a flutter app?
I am building a flutter application that acts as a server. I have a python program in a computer which acts as a client. The client sends audio to the server in the form of bytes using sockets. The server(Flutter app) then should play the received audio bytes.
This is the client program in computer - Client.py
This is the server part of code in my flutter app:
When I run the server and client, the client sends the audio bytes to server and the server is able to receive it. The problem lies in playing those bytes. I used audioplayers plugin for playing from bytedata. But it does not play and throws an error.
Can anyone tell what I did wrong, and what I need to do to play the audio byte data received from sockets in my flutter app?
I dont want to write the byte data into any files. I need to play the audio byte data as it is being received.
Any kind of help will be appreciated. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions