Access raw audio data in cpp from browser microphone #750
Answered
by
paullouisageneau
GrigorySamokhin
asked this question in
Q&A
-
Hello! I would like to find out if it is possible to access raw audio data on the cpp side? I have a stt model that takes decoded sound in chunks and process it. |
Beta Was this translation helpful? Give feedback.
Answered by
paullouisageneau
Nov 23, 2022
Replies: 1 comment 1 reply
-
Yes you can do so with libdatachannel. You could do something similar to the media-receiver example, but using an audio track with OPUS codec. The |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
GrigorySamokhin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes you can do so with libdatachannel. You could do something similar to the media-receiver example, but using an audio track with OPUS codec.
The
onMessage
callback will receive RTP packets that you could either decode with ffmpeg or gstreamer, or depacketize yourself and decode with libopus.