stream wasm example with streaming mp3? #527
-
I am trying to get the wasm streaming example working with a mp3 url instead of the microphone. I use a AudioWorkletProcessor to get the streaming bytes, these bytes are channel data represented as a Float32Array -- it seems like I should just be able to concat these bytes and run Module.set_audio(instance, float32array); I tried this and the transcription is totally wrong so I know I have the wrong approach, but at least there are no errors. I am using a 2-second mp3 audio file which I can get working through a fetch, but I am trying to get streaming audio transcription working. Any ideas/pointers/etc. very welcome. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
My channel data was coming in with a sampleRate of 48000, I needed to down-sample it with offlineContext.startRendering to 16000. |
Beta Was this translation helpful? Give feedback.
My channel data was coming in with a sampleRate of 48000, I needed to down-sample it with offlineContext.startRendering to 16000.