omrihak / accord

Automatically exported from code.google.com/p/accord
0 stars 0 forks source link

Not able to record audio in loopback #105

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi there,

For recording audio, you can take a look on the Recorder sample application. It 
is available in the Samples folder that comes together with the framework. Its 
source code is also available here: 

  https://github.com/accord-net/framework/tree/development/Samples/Audio/Recorder

There is also an example application that is able to record from the loopback 
device. It is located here:

  https://code.google.com/p/screencast-capture/

In order to capture from the loopback device, you must pass the "Stereo Mix" 
device as the device to be captured. To do so, you can enumerate all audio 
devices as shown here, using:

// Create a new AudioDeviceCollection to list output devices:
var collection = new AudioDeviceCollection(AudioDeviceCategory.Output);

// Print all devices available in the system
foreach (var device in collection)
   Console.WriteLine(device.ToString());

Then, you have to look for a device named "Stereo Mix". Afterwards, pass this 
device to the constructor of the AudioCaptureDevice class. Afterwards, 
recording can be done as shown in the recorder sample application.

Hope it helps!

Best regards,
Cesar

Hey Cesar I am getting this error 
Inline image 1
Inline image 4
Inline image 3
Inline image 2

can you help me i want to record audio in loopback

Original issue reported on code.google.com by ankur456...@gmail.com on 27 Nov 2014 at 1:07

Attachments:

GoogleCodeExporter commented 8 years ago
And able to record using NAudio but i want to record through Accord
need help fast
thankx

Original comment by ankur456...@gmail.com on 27 Nov 2014 at 1:48