Streaming audio data from a browser to a node server and further to Azure speech-to-text
Is there a cross-browser way to record audio data in a browser, stream it to a Node server and from there forward it to Azure STT?
I am aware of the SDK for JavaScript and I checked the examples for sending data from the browser directly to Azure or from Node directly to Azure. However, what I would like to do is to record an audio stream in the browser, stream it to the Node server (in best case while the recording is still running; using MediaRecorder's ondataavailable
method?) and then send a request from the Node server to Azure STT.
The building blocks must be in the SDK code, but can such a setup be achieved with native SDK functions?
The whole setup should work cross-browser as does the Azure JavaScript SDK.
Thanks in advance for any help!
Best regards,
Steffen