-
-
Notifications
You must be signed in to change notification settings - Fork 210
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
Is there a way i can stream the audio? #13
Comments
@himanshu31shr Hi~ The component current version use |
@lijinke666 Sounds great! For now i managed to build api for streaming audio using node fs. Is there any other way around you know? |
if you are use if it is currently I'm still trying. const reader = new FileReader()
reader.onload = (e) => {
const result = e.target.result
const audio = new AudioContext()
audio.decodeAudioData(result, (buffer) => {
const node = audio.createBufferSource()
node.buffer = buffer
node.connect(audio.destination)
node.start(0)
}, (err) => {
})
}
reader.readAsArrayBuffer(YOUR_DATA) or use
in the |
It doesn't seem to stream the audio, rather it does download the whole file first making it quite slow.
The text was updated successfully, but these errors were encountered: