Audio capture to M4A (AAC) file
Products: Video Capture SDK .Net
M4A is an audio file format known for its high-quality sound and efficiency in file size. Standing for MPEG-4 Audio, it was developed as part of the MPEG-4 standard. M4A files are similar to MP4, but they contain only audio data. Renowned for their superior compression capabilities, M4A files produce smaller sizes compared to MP3 files at the same or better quality.
Sample code
Set sample M4A settings and apply them as output format.
var m4aOutput = new M4AOutput();
m4aOutput.Bitrate = 192;
m4aOutput.Version = AACVersion.MPEG4;
m4aOutput.Object = AACObject.Low;
m4aOutput.Output = AACOutput.RAW;
VideoCapture1.Output_Format = m4aOutput;
Set audio capture mode.
VideoCapture1.Mode = VideoCaptureMode.AudioCapture;
Set the file name.
VideoCapture1.Output_Filename = "output.m4a";
Start capture (sync or async).
await VideoCapture1.StartAsync();
Required redists
Visit our GitHub page to get more code samples.