Skype Microphone problem and complete pulse audio setup in Ubuntu
Warning: It didn’t work for some people. I don’t have instructions to undo this. Use it at your own risk.
After I installed Ubuntu 8.04 Hardy Heron on my new Quad core desktop , I installed Skype . The installation was smooth, but the microphone didn’t work. The output sound was fine. The webcam was detected automatically, but the video loses brightness after 2-3 minutes of use. I wasn’t sure if the microphone problem was due to buggy implementation of Pulse Audio in Ubuntu 8.04 or not. I tried changing the sound preferences and mic preferences, but nothing worked. I finally found a solution to install complete Pulse Audio pack after searching the Ubuntu forums and then for Skype microphone problem.
I followed zman0900’s guide in Ubuntu forums for complete pulse audio setup. Once I set that up, I got the microphone working in Skype. These are the steps I followed to get the Pulse audio setup and microphone to work.
Open a terminal (Application -> Accessories -> terminal)
1. Install additional packages for Pulse Audio by entering the following command in the terminal. Enter your password if prompted.
sudo apt-get install libao-pulse libasound2-plugins
2. Then edit or create your asound.conf file
sudo gedit /etc/asound.conf
and add the following lines. Click save once added.
pcm.pulse {
type pulse
}
ctl.pulse {
type pulse
}
pcm.!default {
type pulse
}
ctl.!default {
type pulse
}
3. Edit libao.conf.
sudo gedit /etc/libao.conf
and add the line below
default_driver=pulse
Now go to System -> Preferences -> Sound. Set under Devices tab the following to PulseAudio Sound Server
Sound Events Sound Playback
Music and Movies Sound Playback
Audio conferencing Sound Playback and Sound Capture
Set the Default Mixer Tracks Device to your sound card. In my case it’s HDA Intel (Alsa Mixer). Check the screenshot below.
After you are done with that, install some additional packages. Enter the following command in the terminal.
sudo apt-get install libflashsupport padevchooser pulseaudio-module-hal pulseaudio-module-x11
sudo apt-get install libsdl1.2debian libsdl1.2debian-alsa
Now add the repositories given below to your sources.list file to install additional packages needed for Pulse Audio.
Open your sources.list by
sudo gedit /etc/apt/sources.list
and add the following lines
## zman0900’s PPA
deb http://ppa.launchpad.net/zman0900/ubuntu hardy main
deb-src http://ppa.launchpad.net/zman0900/ubuntu hardy main
Save and close. Now enter the following commands one by one in the terminal.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libsdl1.2debian-pulseaudio
If the installation goes fine, then you can move ahead to Device Chooser. If libsdl1.2debian-pulseaudio won’t install, then enter
sudo apt-get install libsdl1.2debian-all
sudo gedit ~/.profile
and add the following two lines. Save and close.
# Make SDL audio work properly with Pulse
# export SDL_AUDIODRIVER=pulse
Now go to PulseAudio Device Chooser under Applications -> Sound & Video. It’ll show an icon in the top right menu bar, next to Tracker search tool or Date area. Click that icon and select preferences. Check the box Start applet on session login under Startup. See the screenshot below.
Restart the computer. You should see the PulseAudion Device Chooser icon to appear once you login. I then changed my input sources by selecting Volume Control under System -> Preferences and selecting the Options tab. I selected Front Mic for all 3 input sources as shown below. This will vary from system to system and you may not see this option in some systems. My microphone was connected to the back of my computer, but it worked after I set it to Front Mic.
I then started Skype , clicked the small Skype icon at the bottom and selected options. I then went to Sound Devices and selected HDA Intel (hw:intel,0) as my sound in, sound out and ringing options as shown below. I then made a test call and everything worked fine.
Thanks for posting this information! It’s very helpful and worked great for me with no hitches.
You are welcome.
Thanks, for the tutorial
But I do believe the ~/.profile change isn’t necessary because the # in front of the “#export SDL_AUDIODRIVER=pulse” command comments out the command.
Regards,
I agree, but that part has to be done only if libsdl1.2debian-pulseaudio didn’t install. I didn’t have that issue, so I’m not sure if that’s needed or not.
It works !
Thanks
I have still one problem : gnome-sound-recorder is not working
It works for me, but I’m having issues with the sound overall. It works sometimes and doesn’t other times including login sound etc. Even Skype audio doesn’t work sometimes. I think it’s the buggy pulse audio implementation in Ubuntu.
Hi, thanks I got it working at least I can now make skype calls, but I have to have the microphone ‘live’ so unless I use headphones I get feedback. Any thoughts?
I’m not sure. I myself have trouble sometimes.
Now i have a problem in skype when i do a test call : i get a problem with Audio Playback
okay, followed every instruction carefully
there is no volume control under system – preference
and now i got a problem with Audio Playback
i want to undo everything
would someone tell me what to do now?
i dont want to reinstall my ubuntu
As I wrote in Comment #8, it’s not working perfectly for me too. It works sometimes and doesn’t sometimes. Ubuntu 7.10 was better.
If you can’t find volume control under System preferences, then enable it through system – preferences – menu list or menu editor. I’m not sure about the exact name since I don’t have Ubuntu in front of me now. Once you open menu editor, check the volume control option under system – preferences.
Is there any way to undo this? A new update for Ubuntu came out today. It was actually a good one because for the first time it let me run and hear multiple audio programs at once, which I wasn’t able to do before. It was nice having Skype up, music playing and audio from a video game all working simultaneously. Then I realized I had no mic in Skype. I followed this guide and everything seemed to work. Upon rebooting my system I noticed I didn’t have the usual startup sounds at login. Also PulseAudio seems extremely quiet compared to the audio I had before. In addition to this, everything I play in VLC Media Player is very choppy. I tried removing the code I added to /etc/asound.conf, but that just broke audio all together. There’s no way I’m going back to Windoze, but honestly, I don’t know which audio is worse… Vista or Ubuntu. I had the best results with XP, but because it’s getting outdated, I chose to make the leap to Linux. Overall my experience has been a good one, but this is one of those things I just can’t live with. If anyone has an idea of what I can do to fix this, please let me know.
Thank you.
I’m not sure how to undo it. If Ubuntu did issue a fix to sound problem, then I would like to use that fix. Did you try to undo from the last step to the 1st instead of just changing the asound.conf? I’ll try undoing sometime this week to see if it works. I’m sorry it didn’t work for you.
Yes, I forgot to change ‘libao.conf’. However, that still left me with no sound. I decided to go ahead and stick it out with PulseAudio. I couldn’t sleep and spent the next 3 hrs tinkering around (don’t ask me what I did) and got the mic to work.
I did figure out why the sound was quiet, and temporarily got some loud popping that occurred when starting/stopping audio apps to go away. Turns out, I needed to adjust audio levels in my ALSA mixer. The popping is back unfortunately. It sounds like a speaker blowing and is literally driving me nuts.
I’m also noticing PulseAudio does not like many apps (mostly games) running under Wine/Crossover.
No matter what I do, MP3 files still stutter in VLC. I may just use something different for my music, as everything else (video) seems to be playing just fine.
Today I lost the mic input again. To my knowledge, there has been no changes to the system. This time I decided to use my webcam’s mic for temp input. It works and saved me a headache. I thought there would be a lot of feedback w/o using my headset, but no one has complained.
A couple times I have lost all audio (completely random) and had to reboot to restore. I can also hear a very faint static noise (also random) from time to time.
I hope they do something about this. It’s a MAJOR problem and I suspect there are many people that are experiencing similar issues.
I still refuse to go back to Winblows.
Thank you for your response and all the help you’re providing for us.
I’m sorry you couldn’t get it to work flawlessly. This is what I did yesterday.
I tried to uninstall libsdl1.2debian-pulseaudio, but it’s being used by many applications, so I left it. I then removed zman0900’s repository.
I commented out default_driver=pulse and uncommented default_driver=alsa that I commented earlier, so my /etc/libao.conf contains only ALSA.
I then changed everything back to default audio under System -> Preferences -> Sound.
I then moved /etc/asound.conf to /etc/asound.conf.bck instead of deleting it.
I opened Skype and changed Sound in, Sound out and Ringing to default.
I then played some music using Amorok and it played fine. I then tested skype using skype call testing and both mic and speaker worked. I’ll use it for couple of days and see if I encounter any problem.
I have the some problem with my mic on Skype, but after my whole system crashed yesterday and I had to reinstall Hardy, I decided I won’t go for the lengthy/complex solutions anymore (yesterday’s problem was caused by a command that somebody posted as a fix for one of the many bugs I had with 8.04). I think that Ubuntu/Linux needs tons of work if we really want to get some of the 90% plus share of computer users who are in WindowsLand. IMHO it is not acceptable having to go through dozens lines of arcane instructions just to make a simple operation as Skype installation work flawlessly. I don’t intend to return to MS, but – especially as a beginner – I have to admit that Ubuntu’s path is still very bumpy.
I won’t say it’s Ubuntu’s fault completely. It’s lack of willingness from hardware/sfotware vendors/manufacturers to support Linux. Windows works fine because the hardware/software vendors provide drivers for their products. Without their support, Windows would be a trash. More vendors should come forward and provide support for Linux, if you want Linux to work as good as Windows or Mac.
I tried the procedure, but when I tried to install pulseaudio (with the command “sudo apt-get install libsdl1.2debian-pulseaudio”), but it came up with the error message that it couldn’t find the package libsdll.2debian. I tried the alternate procedure (with the command “sudo apt-get install libsdl1.2debian-all”), but it came up with the same error message. Is there anything I can do? I already used the commands “sudo apt-get update” and “sudo apt-get upgrade” to update my package lists.
I’m not sure why. May be repository problem? Open synaptic package manager from system – administration. Go to settings – repositories and make sure you enabled all the repositories including third party and try.
Could you please specify the audio card that you are using as I am having difficulty finding a working linux compatible card.
TNX
Mine is 82801I (ICH9 Family) HD Audio Controller, HDA Intel Sound Card.
Thanks very much for your response.
Am I correct in assuming that the 82801 is on-board???
Could you possibly recommend a working PCI audio card that I might purchase?
My Sound Blaster Audigy LS is not fullly supported (unable to handle mic input) by the current ALSA driver.
TNX
Yes, it’s on board. I had couple of old systems with PCI sound card and both worked fine with Ubuntu. I think one of them is MadDog? I’m not sure. I’ll see if I can find it.
Did you ask in Ubuntuforums about which sound card is compatible? You might get more inputs there.
I’ve asked at least six different forums for suggestions. Plenty of reads but very few responses. The only one that came back is the “Sound Blaster Live!.” I tried to find a supplier to purchase the SBL! from, but no one seems to carry it anymore as I believe that it is obsolete.
I have a new Sound Blaster Audigy LS that works fine for playing mp3’s but it is not fully supported for mic. input by the current Alsa driver and consequently ng for Skype.
I also checked with Skype and they were not very helpful. The Alsa mixer matrix doesn’t seem to help much either… same for the Ubuntu approved hardware listing. Seems to be one of the best kept secrets in Linux and yet there must be lots of people using Ubuntu/Skype.
Any suggestions regarding a fully compatible Alsa PCI audio card, to be used with Skype, from you and/or your readers would be greatly appreciated.
TNX
Hmm. That’s surprising. My PCI cards are old now, so I’m not sure if they would be there in the market. I’ll inform you if I find a card that’s compatible with Linux.
I tried the same steps but the microphone was not working. Then I undone all and set all those to default.
I made the following :
System –> Preference –> Volume Control
File –> Change device –> your microphone control [mine is AK5370 alsa mixer]
enable it and increase the volume level to max.
Restarted ubuntu and skype –> Options –> Sound Devices
Sound In to AK5370
It worked for me.
It used to be the same problem, I could hear the other party talking, but were never heard.
By following the instructions, I have installed Pulse and got stuck somewhere. So, I have tried my best to go back to the original setting and nothing worked when Default Device (default) was selected in Sound Device. Also, I could not even make a test call, it just told me Problem with Audio Device, so above instruction, I set all three to “HDA Intel (hw:intel,0)” and everything seems working fine now. However, I have not made any real calls yet apart from the call testing service. By the way, mine is ICH9 Family HD Audio Controller, HDA Intel Sound Card.
“I then made a test call and ” and NOTING worked fine
Linux have a great network support but for multimedia … you still need 1 GB Widows
HF
just there is not HDA INTEL ALASA MIXER
Before to to do this “How to” my mic didn’t work now
) it’s cool
i even don’t have sound
ubuntu’s sound is cool
It worked perfect on my Toshiba Satellite A100S2211TD
Hi everyone, I’ve just installed Heron on my pc and set out to tackle the above mentioned problems with Skype mic but , allas ! : it’s working perfectly . This is what I did. Left Skype settings alone and enabled a few options from Alsa mixer preferences.
All of the input source, digital and capture ones and since I’m using a headphone set plugged in the front of the pc i’ve then selected front mic from input sources. . Ticked headphones and IE958 Capture in “switches” and made sure the digital and capture controls were on in “recording”.
As you can probably tell , I,m no tech wizz but I’ve been trying to get this working for a long time and am now really excited.
Hope this helps someone
Cheers
Thanks for the information Jikta.
you rock! this worked for me as well. running hardy on thinkpad x60s. thanks a million for posting
You are welcome!!!
Hi
I have downloaded Skype 2.0.0.72 three days back. Everything is OK but microphone is not working during call. I have Ubuntu downloaded a year back (KDE 3.5.6)and KMix (HDA Intel)with this. I dont know technical terms. I am a new Linux user. Please let me know (supposing me a layman) how can I solve this problem.
Hi Neeraj,
I believe you are using Kubuntu, not Ubuntu. I installed the latest version of Kubuntu (Kubuntu 8.10) and couldn’t get skype to work, so I went back to Ubuntu 8.10 and I got it to work. If you are using Kubuntu, try this:
Click on the volume icon in the taskbar, go to KMix (or whatever button you see at the bottom when you click the volume icon). Make sure nothing is muted. Open Skype, go to Options – sound devices and change the sound in and out from default to the second one in the list. HDA Intel (hw:intel,0).
If you are using Ubuntu, then go to system – preferences – volume control. Go to settings and make sure mic, microphone, capture, capture1 etc checked. If they are, close that window. If they are not, check them and close. Once you are back to the volume control window, make sure they are not muted and increase the slider to the maximum and try. Set Skype as given above.
Hi Arun
You are absolutely correct. This is KUbuntu.
Before I could try to solve my problem of sound in skype (as you suggested), I faced another bigger problem. When I start Kubuntu it boots upto Login and password. When I enter after submitting password, the screen becomes black, some fkickering occurs and it returns back to Login/Password. My Login and password are correct (it is NOT showing `login failed`). I tried to enter several times but the situation remained the same.
Please help me to solve the problem.
I’m not sure why. Check and make sure you got enough space on your Kubuntu partition.
Hey guys!
Thanks for this great tutorial! Almost everything is working fine for me. One little problem left:
Playing music or something else everything does fine, but starting skype and listening to skype sounds only works for my “left” speaker (i am using a laptop, so it is not really a speaker, isn’t it?). The right one does not do anything.
Hope you can help!
thanks
I don’t have an answer for this. I hope someone else reading this blog might be able to help.
I have just solve my problem of playing music while making skype call (mine skype version is 2.0.072) in Ubuntu 8.10.
It appear that skype sound device setting only have few options (using pulse or your raw sound card directly). There is no ALSA choice. Thus, you have to configure your skype to use pulse option for the sound out and ring (make sure all your setting in System>Preferences>Sound is using PulseAudio
Sound Server). The sound in (for the mic) must set to use your raw sound card directly (e.g. HDA NVidia(hw:NVidia,0) — i don’t know why pulse is not working).
I think this problem is only for the sound card that can only support a single sound input in any particular time. That’s why come the solution of using either PulseAudio or ALSA (Not both unless you correctly configure to direct one output to the other one). Unfortunately, Skype can only use Pulse or sound hardware directly and not ALSA. Thus, if you choose to use sound hardware directly like HDA Intel(hw:Intel,0) in Skype and you are making skype call, other application have to wait for you skype to release the sound resource (stop calling) before they can get the sound resource through PulseAudio or ALSA.
I hope this help all the confusion out there.
Thanks for the information hcgoh. How is your setting different from the one here
http://www.blog.arun-prabha.com/wp-content/uploads/2008/05/pulse.png
Hi Arun,
Great job….it help me….
Regards,
Ajay
http://www.raj2u.net
http://www.tamilminnal.net
Thanks.
Hi, like someone else one thing didn’t work under the console, but the rest did.
So I get to the final few steps where you go to Volume Control, but I don’t have an options tab, only playback and switched
thanks in advance
nevermind, I realised you needed to have everything ticked under another option and then managed to sort it all out and it works now!!
thankyou so much
Thanks a lot for this useless tutorial, i’m quite fascinated of the fact it completely screwed the sound, which took me 2 weeks for hard work.
Now after two weeks struggling for my Toshiba’s soundcard drivers to work, which was a bloody pain in the rear, i’m back to where i was. No sound at all.
Kudos to the rubbish you post, mate, seriously.
Hi RavenLord,
I don’t know where your brain is in your body. If you had read my post properly, you would have read the warning. I wrote what worked for me. It doesn’t mean it would work for everyone. The post is not rubbish just because it didn’t work for you. It worked for lots of people. I’m not sure what crap you have as your computer. If you are not willing to take risk, don’t try things that you don’t know.
I am using Kubuntu Hardy 64 bit and kde 3.5.
I followed your instructions and the instructions from the blog but unfortunately skype says “Problem with Audio Playback”.
Also in the KDE system setting I do not have a choice for Pulse Audio so I just use ALSA.
When I run the pulse device chooser and I look at PulseAudio Volume control I get an error saying “Connection failed: Connection refused”
And when I have amarok playing and a flash video from youtube then amarok crashes and I can hear no sound from the flash media. Upon end of crash of amarok I can hear sound again.
Any help to get this fixed would be greatly appreciated.
I don’t think Kubuntu uses pulse audio. Try this for skype.
http://www.blog.arun-prabha.com/2008/12/18/how-to-get-skype-microphone-and-sound-work-in-kubuntu/
I do not know if it uses it or not.
But ever since I tried to install it I cannot get any kde sounds- e.g. notifications from the calender etc.
That link is pretty much useless as I am running on hardy.
If Kubuntu Hardy does not use pulse then how do I remove it?
As far as I know, the only way to uninstall is uninstall whatever you installed for pulse audio setup. Check my comment in that post (comment #15).
http://www.blog.arun-prabha.com/2008/05/23/skype-microphone-problem-and-complete-pulse-audio-setup-in-ubuntu/#comment-21917
This worked for my Intrepid installation on my IBM X60s. Cheers.
Worked for me. But, one important (although sutil) thing: dont forget to enable capture channel. Ie. on gnome, open your volume control (through volume tray icon) > Preferences > Click on the capture one (enable it to appear on volume control). Then, back to volume control, switch to Recording tab, enable + raise its volume.
That’s it, good luck.
xavier
Thanks for the update Rafael.
Hey Arun, thanks for this…I do not know why, but first time I did what was said in your article, skype worked. Then I restarted my pc, and now when i do the test call, i get the play back, but nothing is being recorded through the mic…Help?
Thanks
I’m not sure why. Here are couple of things you can check.
Check Skype’s audio setting to make sure the audio in, audio out etc. are set correctly.
Click on the Volume icon in the tray and select volume control – preferences – make sure capture options are selected. If not, select it. Once selected, make sure the capture control is not muted and move the slider all the way to the top. I don’t have Ubuntu system with me right now, so I couldn’t give you the exact path to reach those options. Check Rafael’s comment above your’s.
Works perfectly in Jaunty, too!