Home > Blockchain >  How do I grab audio track with Go with webrtc (pion/webrtc)?
How do I grab audio track with Go with webrtc (pion/webrtc)?

Time:09-22

I'm working on a webrtc client that works on the terminal. I need to connect with my Janus server and send audio-only. I give a look in a pion/webrtc and I'm having trouble with grabbing audio with GO on the terminal. How do I do that? Thanks!

I'll tell you my problem: I have a server on Raspberry Pi that won't have a GUI(starts on the terminal). In this same raspberry, I have to run a webrtc client. This is why I have to build this CLI client.

I've tried the webrtc-cli, but I'm still struggling with the audio. The webrtc-cli works fine with text-message.

CodePudding user response:

Yes that is possible!

Check out save-to-disk it shows how to have Pion save incoming audio.

We also have janus-gateway a collection of examples of showing Pion being used with Janus.

  • Related