Skip to content

Access raw audio data in cpp from browser microphone #750

Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@GrigorySamokhin
Comment options

Answer selected by GrigorySamokhin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants