Replies: 1 comment
-
did you ever solve this? |
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
-
I have an app that generates stories for children. It uses a text-to-speech (TTS) API which returns the text in a readablestream for consumption for the client and then uses Howler to play the audio. One issue with this is that it won't stream the audio data -- it waits to read all the chunks into the blob before playing them, which results in additional delay. Since Howler.js doesn't support true audio streaming out of the box, I need to use the HTML5 Audio API. I was going to use the MediaSource (MSE) API with an audio element for this, but then I learned that MSE does not work in mobile devices (or, am I misunderstood?).
Does anyone have any advice on how I can stream the audio as soon as possible?
Here is my current code setup:
Beta Was this translation helpful? Give feedback.
All reactions