Apr 19 2009

Skype on Eee PC Ubuntu Netbook Remix

Donnie had asked on my previous post if I had a chance to test Skype. I just tested, and everything works very well. I didn't experience any of the choppiness that he experienced. I know that there have been several bug fixes for both PulseAudio and Alsa recently to address issues with the Intel Audio chips. For reference, my installed versions are alsa 1.0.18.dfsg-1ubuntu8 and pulseaudio 0.9.14-0ubuntu20.

I did have to make a special entry in ~/.asoundrc for my stereo headset to output to both speakers. Skype provides 8-bit unsigned mono output audio, so it needs converted to stereo if you want sound in both headphone speakers. I copied these settings from http://help.ubuntu.com here. I didn't create the launcher script they mention. Just add the following to your ~/.asoundrc and choose "skype" as your Sound In, Sound Out and Ringer device in Options->Sound Devices.

Code:

pcm.skype {
   type asym
   playback.pcm "skypeout"
   capture.pcm "skypein"
}
 
pcm.skypein {
   # Convert from 8-bit unsigned mono (default format set by aoss when
   # /dev/dsp is opened) to 16-bit signed stereo (expected by dsnoop)
   #
   # We can't just use a "plug" plugin because although the open will
   # succeed, the buffer sizes will be wrong and we'll hear no sound at
   # all.
   type route
   slave {
      pcm "skypedsnoop"
      format S16_LE
   }
   ttable {
      0 {0 0.5}
      1 {0 0.5}
   }
}
 
pcm.skypeout {
   # Just pass this on to the system dmix
   type plug
   slave {
      pcm "dmix"
   }
}
 
pcm.skypedsnoop {
   type dsnoop
   ipc_key 1133
   slave {
      # "Magic" buffer values to get skype audio to work
      # If these are not set, opening /dev/dsp succeeds but no sound
      # will be heard. According to the alsa developers this is due
      # to skype abusing the OSS API.
      pcm "hw:0,0"
      period_size 256
      periods 16
      buffer_size 16384
   }
   bindings {
      0 0
   }
}
free b2evolution skin

4 comments

Comment from: Jonathan Lumb [Visitor] · http://sprayfly.com
Thanks for your tip, just what I was looking for as I was only getting output in one ear!
08/19/09 @ 15:32
Comment from: Mago [Visitor] · http://www.ferostashbox.com
I really like this!
08/19/09 @ 15:49
Comment from: Alex [Visitor]
Works very nicely. Thanks!
09/16/09 @ 19:41
Comment from: Flash Papers [Visitor]
Thanks, yes it is nice to get nice output in my ears and i like the sound out put.
10/27/09 @ 22:05

This post has 54652 feedbacks awaiting moderation...

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)

You can just use your OpenID to provide your name, e-mail and url.

Too Cool for Internet Explorer