Audio capture to WAV (PCM/ACM) in Video Capture SDK .Net

Related products
Video Capture SDK .Net

1. Get list of available audio codecs

foreach (string codec in VideoCapture1.Audio_Codecs)
{
  cbAudioCodecs.Items.Add(codec);
}

2. Set audio settings, apply output format

var acmOutput = new VFACMOutput();

acmOutput.Channels = 2;
acmOutput.BPS = 16;
acmOutput.SampleRate = 44100;
acmOutput.Name = cbAudioCodecs.Text;

VideoCapture1.Output_Format = acmOutput;

3. Set audio capture mode

VideoCapture1.Mode = VFVideoCaptureMode.AudioCapture;

4. Set file name

VideoCapture1.Output_Filename = "123.wav";

5. Start capture

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