-
Notifications
You must be signed in to change notification settings - Fork 570
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ENH]: Play from an audio stream in Flutter Web #1056
Comments
Flutter Web is poorly supported by flutter sound. |
I have the same issue. I need to stream audio in Flutter WEB (to use with elevenlabs websocket API).
I have the same issue. I need to stream audio in Flutter WEB (to use with elevenlabs websocket API). |
I decide to do something to support audio streams on flutter web. btw: do you need pcm int16 or float32 ? |
funny.... same usecase here 👍 |
Great!!! |
I am currently working on this request. I think it will not be too difficult to implement. |
would be nice to support mp3 and pcm format with multiple bit rates. |
I promised to let you inform of this request development : |
great job! Any beta versions are highly appreciated for testing (if you want to) |
I released today a new beta version 9.8.1. This version support Record to Stream on web.
|
Could you also offer webm/opus support which is a standard codec by chrome/edge. Because pcm creates too much traffic |
Yes, webm/opus is a true important codec on web. I keep this issue open, because it is interesting. |
Actually, the Mic -> Stream encoding works great with the MediaRecorder Browser API
Not quite sure if you use it |
This feature would be very interesting on flutter sound web. I will look to that in a few days. One of the problems would be the compatibility with Android and iOS. Probably flutter sound users would be happy to compress live audio data. For example with a mp3 codec … I will post something on this thread in a few days. |
Just a note: I think that opus-webm is not supported on Safari. But I am not completely sure. |
@Terranic : actually we use Web Audio API and not MediaRecorder. If you look to Mozilla Doc you can see that the App can do RequestData() or can specify a timeslice value. What do you think ? |
I run the code from Flutter Sound Version : 9.8.1 |
I am actually working on recording to stream. btw : what is your platform? iOS, Android or web ? |
Thanks, I am looking forward to the upcoming version |
Some news about the dev :
i Hope to deliver a new flutter sound version on Tuesday. |
Flutter Sound 9.9.0 is released. 9.9.0 beta-3
Of course tell me if any problems. |
Great job ! |
Ok @fvisticot . I am going to see what I can do to support PCM-FLOAT32 and PCM-INT16 as a live streaming for playback on flutter web. BTW, if someone has a good idea for a OPUS-WEBM support, I would be interested: |
For your information: I expect to release Flutter Sound 9.10 at the end of the week. It will support playback from stream on flutter web. At least PCM-INT16 and PCM-FLOAT-32. I will try to look also to an OPUS-WEBM, support if not too hard. |
you could also make it configurable, such as 'audio/mp3' :
|
Thank you @Terranic for your precious advices.
I was afraid by this notice. |
There is another thing which bothers me: between 2 chunks there will be some milliseconds where the browser will have nothing to play. I am afraid that there will have a small blank between two chunks that will be audible. I wonder if it will be useful to set an audio processor node at the head of the audio string. This processor will have three functions:
what do you think? |
Hi - no, in my react implementation, the python server sends chunks (8192 bytes currently set) from a complete mp3 file which are queued in the audiobuffer mentioned above. I do not notice any disruption in playback. (PS: of course could be an undocumented feature -- only tested it with chrome 127) |
No, sorry. I have not work on this requirement on 9.x. I have too much load on my shoulders and I must manage priorities. |
Flutter Sound Version : 9.7.2
Is there no way to stream an audio stream on Flutter Web from mic with flutter_sound?
Because streaming requires PCM16 but there is no PCM16 encoder support in any browser.
(and intermediate storing to a file does not work on Flutter web)
The text was updated successfully, but these errors were encountered: