Karaoke Mixer SDK ActiveX

Karaoke Mixer SDK ActiveX

Platform : Windows 10, Windows 8, Vista, Windows 7, XP

For Windows Developers who need to Voice-Over record a voice over for your audio files and display audio waveforms for VB.NET, C#, VB6, Delphi, vfp, MS Access, VC .

Popular Solution Go   Back

C# - How to record voice over an audio file

Step 1: To install the Karaoke Mixer SDK ActiveX, begin by launching the setup file (http://www.viscomsoft.com/demo/karaokemixersetup.exe). Select the desired installation folder for the Karaoke Mixer SDK ActiveX and continue with the installation on your development computer.

Step 2: Launch Visual Studio 2010 or another version of Visual Studio. Select Visual C#, Select Windows Forms Application.

Step 3: The next step is to install Karaoke Mixer SDK ActiveX in ToolBox. Select Toolbox, select Components item, right click mouse button, select Choose Items...

Step 4: Select COM Components tab, select Karaoke Mixer ActiveX , click OK.

Step 5: Now you will see the Karaoke Mixer SDK ActiveX's icon on toolbox, drag it to form. 

Step 6: Create the UI like the following screen

Step 7: In form load event add the following code

for (int i = 0; i < axKaraokeMixer1.AudioDevices.Count; i )




            if (cboaudiodevice.Items.Count > 0)

                cboaudiodevice.SelectedIndex = 0;

            for (int i = 0; i < axKaraokeMixer1.AudioInputPins.Count; i )





            if (cboinputpin.Items.Count > 0)


                cboinputpin.SelectedIndex = 0;

Step 8: Add Open FileDialog1 control on form and add the following code in 'Select background audio file' button.

this.openFileDialog1.Filter = "WAV File (*.wav)|*.wav|MP3 File (*.mp3)|*.mp3";


            if (this.openFileDialog1.ShowDialog(this) == DialogResult.OK)


                this.txtBgAudio.Text = openFileDialog1.FileName;



Step 9: Set default value 5 to Audio Volume Track bar and Add the following code to  Audio Volume Track bar 's Scroll event.

 this.axKaraokeMixer1.MixerSetVolume(0, trackBar1.Value * 0.1);

Step 10: Set default value 5 to Mic Volume Track bar Add the following code to  Mic Volume Track bar 's Scroll event.

this.axKaraokeMixer1.MixerSetVolume(1, trackBar2.Value * 0.1);

Step 11: Add the following code in Start button click event.

 if (txtBgAudio.Text.Length == 0)
                MessageBox.Show("Please select background audio file");
            axKaraokeMixer1.ContinueRecording = chkcontinuerecording.Checked;
            axKaraokeMixer1.AudioDevice = (short)cboaudiodevice.SelectedIndex;
            axKaraokeMixer1.AudioInputPin = (short)cboinputpin.SelectedIndex;
            axKaraokeMixer1.MP3SampleRate = 44100;
            axKaraokeMixer1.MP3AudioBitrate = 224;
            axKaraokeMixer1.MP3Channels = 2;
            axKaraokeMixer1.OutputType = (KARAOKEMIXERLib.AudioEnum)2;
            this.saveFileDialog1.Filter = "MP3 File (*.mp3)|*.mp3";
            axKaraokeMixer1.ShowWaveForm = true;
            axKaraokeMixer1.ShowBgAudioWaveForm = true;
            axKaraokeMixer1.SetBgAudioWaveWndPos(30, 350, 800, 120);
            if (this.saveFileDialog1.ShowDialog(this) == DialogResult.OK)
                axKaraokeMixer1.AudioFileName = this.saveFileDialog1.FileName;
Step 12: Add the following code in Stop button click event

Step 13: Now run the project and click 'Select background audio file' button, select your audio file. Then click Start button, select output MP3 file name.  It will  record your voice over an audio file and save to new MP3 file.