Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Skype trashes my voice
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
n2liquid
n00b
n00b


Joined: 24 Mar 2011
Posts: 6

PostPosted: Thu Mar 31, 2011 10:24 pm    Post subject: [Solved] Skype trashes my voice Reply with quote

Hey,

I'm needing do use Skype here on my Gentoo installation, but when I test it through the Echo Service I just get noise back. It sort of resembles what I said, but is simply trashed gutural-like noise. What should I do?

I'm using a Realtek AC97 sound card. I've adjusted alsamixer so that audio capture is enabled. Changing input sources make no difference. I have to select HDA Intel, ALC888 Analog (hw:0,2) since none other work (they record nothing instead of noises). If I unmute microphone playback on the mixer my sound card echoes everything I say perfectly through the speakers, so it's probably a Skype problem.

I'm at a complete loss. What should I do?

-- edit

Further info:

Code:
n2liquid@N2DESKTOP-LIN ~ $ emerge --info skype
Portage 2.1.9.42 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.5, glibc-2.11.3-r0, 2.6.36-gentoo-r8 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-2.6.36-gentoo-r8-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-1.12.14
Timestamp of tree: Thu, 31 Mar 2011 03:45:01 +0000
app-shells/bash:     4.1_p9
dev-lang/python:     2.6.6-r2, 3.1.3-r1
dev-util/cmake:      2.8.4
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="rsync://gentoo.c3sl.ufpr.br/gentoo/ rsync://gentoo.lcc.ufmg.br/gentoo-sources"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j12"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.br.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gdu gif gpm iconv ipv6 jpeg kde lcms ldap libnotify mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd python qt3support qt4 readline sdl session spell sse sse2 ssl ssse3 startup-notification svg sysfs tcpd tiff truetype udev unicode usb vorbis x264 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

=================================================================
                        Package Settings
=================================================================

net-im/skype-2.1.0.81 was built with the following:
USE="(multilib) -qt-static"


Last edited by n2liquid on Fri Apr 01, 2011 10:05 pm; edited 1 time in total
Back to top
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2391
Location: Wisconsin (USA)

PostPosted: Thu Mar 31, 2011 11:38 pm    Post subject: Reply with quote

Try testing with arecord (alsa command line record utility) and see if it's garbled there too. If it is, it's probably an ALSA (either kernel driver or userspace library) bug. If it does work there, it may be a format conversion problem for whatever format skype wants to use, but this seems unlikely because skype is pretty widely used and a problem like that would probably be noticed quickly.

If you try older kernel versions and find a version that it does work properly with, then it's considered a regression (ie, worked before but some change broke it). There's a way to trace where a problem like this got introduced, but not worth explaining unless you find an older kernel it worked with.

Of course, you can always try a newer kernel and alsa library if available - it might be a recently fixed bug.
Back to top
View user's profile Send private message
virtguru
Tux's lil' helper
Tux's lil' helper


Joined: 14 Aug 2010
Posts: 148
Location: The Greatest Country in the World

PostPosted: Fri Apr 01, 2011 5:02 pm    Post subject: Reply with quote

Are you running pulseaudio ? Also off the top of my head do you have auto adjust mixer levels in skype ?

what type of mic are you using ? Webcam mic ? Also you have all the needed intel HD Audio modules and correct webcam set in your kernel .config ?

*edit* what also helped here was adding and recompiling stuff with "v4l2" in my make.conf (depending on webcam might be you need v4l)
Back to top
View user's profile Send private message
n2liquid
n00b
n00b


Joined: 24 Mar 2011
Posts: 6

PostPosted: Fri Apr 01, 2011 6:36 pm    Post subject: Reply with quote

Yeah, cool. So I discovered what was the problem. ALSA is not detecting the sound format of my microphone. If I use arecord with the -f dat option (Signed 16 bit Little Endian, Rate 48000 Hz, Stereo) it saves my file perfectly. But the default option is "Signed 8 bit, Rate 8000 Hz, Mono", which saves gibberish.

How should I configure ALSA so that it defaults to the correct format?

@BradN
Many thanks for the arecord tip. I was looking for something like that but didn't find it.

@tr0ll
Nope, I'm not running PulseAudio, just ALSA (I read somewhere I should avoid PulseAudio, I dunno why). My microphone is a generic microphone, separate from the webcam (in fact, I don't have a webcam). I just have to get ALSA to properly recognize my soundcards' input format, but thanks for the tips, too!

-- edit

Oh, boy, I just noticed my kernel wasn't compiled with Realtek's *ANALOG* HD-audio codec support, only HD-audio codec support (supposedly SP/DIF). I just wonder why sound output was working without this..?

I'll recompile it and see if it works. I'll post back with news.
Back to top
View user's profile Send private message
ferreirafm
Guru
Guru


Joined: 28 Jul 2005
Posts: 487
Location: Sao Paulo, Brazil

PostPosted: Fri Apr 01, 2011 6:57 pm    Post subject: Reply with quote

Hi n2liquid,
If you can record something with arecord, you shoud be all done with skype. The skype defaults settings work fine for me.
Play with the alsamix or kmix channels in order to adjust the "mic" and "digital" channels level.
I hope it helps.
ferreirafm
Back to top
View user's profile Send private message
n2liquid
n00b
n00b


Joined: 24 Mar 2011
Posts: 6

PostPosted: Fri Apr 01, 2011 7:17 pm    Post subject: Reply with quote

Hah, managed to work it out. The problem was this: [menuconfig screenshot] (ps.: doesn't this forum support images? That's.. a pity.)

When I compiled my kernel I quickly found the first option and marked it. I didn't notice the second one since the first one seemed like what I needed. I think the first one is for the digital interfaces, but I don't understand why analog sound output was working even though I didn't mark the second one. I find this quite misleading.. maybe that could be patched on Gentoo?

@ferreirafm
I couldn't record with arecord's default settings too. I had to select the correct format myself. Skype used "the defaults" too, which caused my problem. But as you can see above, all that was missing was my analog codec. Now everything works.

Thanks, everybody!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum