SOLVED: Audacity et Skype

Help for Audacity 2.x on GNU/Linux.

ImageThis forum is for Audacity 2.x on GNU/Linux and Unix-like operating systems.

Please state which version of Linux you are using, the exact three-section version of Audacity from Help > About Audacity and whether you installed your distribution's version of Audacity or compiled from source code.

Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade here. The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.

SOLVED: Audacity et Skype

Permanent link to this post Posted by DDZ » Sat Jun 23, 2012 9:13 am

Question also in French at viewtopic.php?f=7&t=66331

Hello!


I must record and transmit by phone (or computer) a conference, so I use Audacity 2 and Skype 4 on Lubuntu 12.04 with a USB interface connected between the sono and the computer.
I have a problem : I can't use the same device as microphone in Audacity and Skype at the same time. When I use it in one of the two applications, it is hidden in the second.
I think Audacity uses ALSA whereas Skype uses Pulseaudio. I created a .asoundrc file with these lines :

Code: Select all
pcm.pulse {
    type pulse
}
ctl.pulse {
    type pulse
}
pcm.!default {
    type pulse
}
ctl.!default {
    type pulse
}
pcm.skypeout
{
   type plug
   slave.pcm "dmix"
}
ctl.skypeout
{
   type hw
   card 0
}
pcm.skypein
{
   type plug
   slave.pcm "input"
}
ctl.skypein
{
   type hw
   card 0
}


Is there any way (and how) to use the same microphone device with both Audacity and Skype simultaneously (this work on Windows 7)?
Thank you in advance for your answer!
Last edited by DDZ on Sun Jul 08, 2012 3:18 pm, edited 1 time in total.
DDZ
 
Posts: 17
Joined: Sat Jun 23, 2012 8:40 am

Re: Audacity et Skype

Permanent link to this post Posted by Gale Andrews » Wed Jun 27, 2012 2:04 am

This is just a cut-and-paste answer, because no-one else has answered for some reason. I am not a Linux guru.

Can you explain why you want to use the microphone in Skype and Audacity at the same time then we may be able to help you better.

Audacity can use the pulse device under ALSA host (look in Audacity's Device Toolbar). Normally you can use PulseAudio Volume Control (pavucontrol) to set Audacity to record from the monitor of the sound card. However both sides of the conversation are recorded on the same track(s).

You can use Skype Call Recorder (open source, free) to record Skype (http://atdot.ch/scr/download/).

Or using Jackd and PulseAudio (you need pulseaudio-module-jack), set up Skype to use Jack Source and Jack Sink
then record with the audio recording application of your choice (Audacity for example).



Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual
Gale Andrews
Quality Assurance
 
Posts: 14616
Joined: Fri Jul 27, 2007 12:02 am

Re: Audacity et Skype

Permanent link to this post Posted by DDZ » Wed Jun 27, 2012 7:41 am

Gale Andrews wrote:Can you explain why you want to use the microphone in Skype and Audacity at the same time then we may be able to help you better.

With Windows 7 : Audacity uses Microsoft sound mapper and Skype the USB microphone device. So I would like to know how to do a similar thing with GNU/Linux.

Gale Andrews wrote:Normally you can use PulseAudio Volume Control (pavucontrol) to set Audacity to record from the monitor of the sound card. However both sides of the conversation are recorded on the same track(s).

I don't want to record the skype conversation but the audio conference (a speech with a speaker in the room) and simultaneously transmit it through Skype for persons who can't assist to the speech.
Thank you.
DDZ
 
Posts: 17
Joined: Sat Jun 23, 2012 8:40 am

Re: Audacity et Skype

Permanent link to this post Posted by steve » Wed Jun 27, 2012 9:48 am

I don't think that you need the "skype" lines in .asoundrc
If you comment out those lines, can you still get Skype to work with Pulse?

Set Audacity to use "default" or "pulse" as the recording input and playback output.
Use Pulse Audio Volume Control (pavucontrol) to adjust levels and which device(s) are used.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Senior Forum Staff
 
Posts: 34852
Joined: Sat Dec 01, 2007 11:43 am

Re: Audacity et Skype

Permanent link to this post Posted by DDZ » Wed Jun 27, 2012 2:33 pm

steve wrote:I don't think that you need the "skype" lines in .asoundrc
If you comment out those lines, can you still get Skype to work with Pulse?

Set Audacity to use "default" or "pulse" as the recording input and playback output.
Use Pulse Audio Volume Control (pavucontrol) to adjust levels and which device(s) are used.

I will try your suggestions this weekend and I tell you. :)
DDZ
 
Posts: 17
Joined: Sat Jun 23, 2012 8:40 am

Re: Audacity et Skype

Permanent link to this post Posted by DDZ » Mon Jul 02, 2012 1:15 pm

I removed the "skype" lines in .asoundrc
I tried recording with audacity by setting "default" or "pulse" or "USB micro device " : it works... but the input setting in Skype switch to "default" rather than staying in "USB micro device" option. So, transmission doesn't work once I start recording with Audacity.

I tried with
Code: Select all
padsp audacity

command to use OSS but I had a error message : can't find any input device.

Is there any "Microsoft sound mapper" equivalent for GNU/Linux?
I search, I search...
DDZ
 
Posts: 17
Joined: Sat Jun 23, 2012 8:40 am

Re: Audacity et Skype

Permanent link to this post Posted by steve » Mon Jul 02, 2012 1:32 pm

DDZ wrote:Is there any "Microsoft sound mapper" equivalent for GNU/Linux?

You need to use PulseAudio Volume Control (pavucontrol).
Do you have that installed? If not, it is available in the Ubuntu repository.

Open Skype and PulseAudio Volume Control.
Don't use padsp audacity. Just start Skype normally.
Start a Skype Test Call and Skype will appear in the Recording tab of PulseAudio Volume Control.

skype.png
skype.png (26.4 KiB) Viewed 4349 times


From here you can set Skype to take its input from any available device.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Senior Forum Staff
 
Posts: 34852
Joined: Sat Dec 01, 2007 11:43 am

Re: Audacity et Skype

Permanent link to this post Posted by DDZ » Mon Jul 02, 2012 4:02 pm

DDZ wrote:Is there any "Microsoft sound mapper" equivalent for GNU/Linux?
steve wrote:You need to use PulseAudio Volume Control (pavucontrol).
Do you have that installed? If not, it is available in the Ubuntu repository.

Yes, it is already installed.

steve wrote:Open Skype and PulseAudio Volume Control.
Don't use padsp audacity. Just start Skype normally.
Start a Skype Test Call and Skype will appear in the Recording tab of PulseAudio Volume Control.

skype.png


From here you can set Skype to take its input from any available device.

Interesting!
I will try your suggestions and I tell you. ;-)
DDZ
 
Posts: 17
Joined: Sat Jun 23, 2012 8:40 am

Re: Audacity et Skype

Permanent link to this post Posted by DDZ » Mon Jul 02, 2012 6:47 pm

To avoid waiting for this weekend, I just tried your suggestion at home with my USB webcam microphone:

I opened Skype and PulseAudio Volume Control then I started a Skype Test Call and Skype appeared in the Recording tab of PulseAudio Volume Control. I set Skype to take its input from my USB webcam microphone. OK.
But once I launched Audacity and tried to record the Skype Test Call (input: my USB webcam microphone), the record in Audacity didn't work because the device was already used. Same thing with "default" or "pulse" input... :?
In PulseAudio Volume Control, the tab name is "Recording". Does it mean that the Skype Test Call was recorded anywhere I don't know?

Thank you for your patience! ;)
DDZ
 
Posts: 17
Joined: Sat Jun 23, 2012 8:40 am

Re: Audacity et Skype

Permanent link to this post Posted by steve » Mon Jul 02, 2012 11:32 pm

Here Skype and Audacity are both set up to use PulseAudio.
PulseAudio Volume Control is then used to route the USB input to both applications.

Skype2.png
Skype2.png (103.79 KiB) Viewed 4332 times
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Senior Forum Staff
 
Posts: 34852
Joined: Sat Dec 01, 2007 11:43 am

Next

Return to GNU/Linux and Unix-like



Who is online

Users browsing this forum: No registered users and 3 guests