You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is currently no way to provide your own ReadableStream, vs. having the library make the HTTP request for you. I'm not sure it would be possible to add this functionality since it would break some of the reconnect logic that relies on being able to create new ReadableStreams (i.e. connections) based on a stream URL. Also, a POST request to get the streaming audio is not Icecast compatible, and I don't plan on adding that functionality. The request to get the streaming data should always be a GET request.
You can get this to work as-is by changing your backend / design to provide an Icecast compatible stream URL that works with a GET request, then use that to instantiate the player.
I am curious if there is a way to use the player by providing a ReadableStream instead of an endpoint like it's shown in the demo.
My goal is to make a POST call with a payload to a backend that does TTS then provides a chunked response.
The text was updated successfully, but these errors were encountered: