Streaming audio data from a browser to a node server and further to Azure speech-to-text

Steffen Schreiber 25 Reputation points
2023-03-22T09:41:58.8166667+00:00

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

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
2,061 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.