How to capture audio from output device (speakers) in Video Capture SDK .Net

Related products
Video Capture SDK .Net

1. Set audio capture source to “VisioForge What You Hear Source” to use audio loopback and capture sound from speakers.

VideoCapture1.Audio_CaptureDevice = "VisioForge What You Hear Source";
VideoCapture1.Audio_CaptureDevice_Format_UseBest = true;

2. Set audio capture mode

VideoCapture1.Audio_RecordAudio = true;
VideoCapture1.Audio_PlayAudio = true;

VideoCapture1.Mode = VFVideoCaptureMode.AudioCapture;

3. Set audio output to MP3 (with default parameters)

VideoCapture1.Output_Format = new VFMP3Output();
VideoCapture1.Output_Filename = "output.mp3";

4. Start capture (sync or async)

await VideoCapture1.StartAsync();
Please contact support to get help with this tutorial. Visit our GitHub page to get more code samples.
VisioForge © 2006 - 2021