Is it possible to get raw opus-encoded audio data from peers in Node.js application?
I want to be able to get chunks of audio data in some kind of microservice and pass them into another javascript library (e.g. into Google Cloud Speech-to-Text like in this example)
As far as I can understand the only choice now is to use mediasoup-client-aiortc, connect to the mediasoup server, set up correct properties to get opus-encoded audio from peers, create transport, create consumers and access consumer.track
.
However, I’m stuck here as I can’t find anything in MediaStreamTrack
spec on how to get actual data.
Am I missing something? Thank you in advance!