Problem with jack

Hi,
I'm trying to run my simple python script with using SpeechRecognition library, but i get a error when i try to listen on microphone:
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:947:(find_matching_chmap) Found no matching channel map
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused
connect(2) call to /dev/shm/jack-0/default/jack_0 failed (err=No such file or directory)
ls /dev/shm/
pulse-shm-1786803448* pulse-shm-2918752564* pulse-shm-528682629*
pulse-shm-2134045932* pulse-shm-3577176364* pulse-shm-589288251*
pulse-shm-2735481799* pulse-shm-40907746* pulse-shm-899524684*
pulse-shm-2827064006* pulse-shm-4260734428* sem.lastpassffsemaphore*
arecord -L
null
Discard all samples (playback) or generate zero samples (capture)
pulse
PulseAudio Sound Server
default
Default ALSA Output (currently PulseAudio Sound Server)
sysdefault:CARD=PCH
HDA Intel PCH, ALC663 Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, ALC663 Analog
Front speakers
surround21:CARD=PCH,DEV=0
HDA Intel PCH, ALC663 Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
HDA Intel PCH, ALC663 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
HDA Intel PCH, ALC663 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
HDA Intel PCH, ALC663 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
HDA Intel PCH, ALC663 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
HDA Intel PCH, ALC663 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
I read other threads about it, and that don't resolve my problems, maybe someone have the same problem...
I will be very gratefull for any help.
Last edited by neptyd (2014-09-11 09:56:00)

neptyd wrote:I read other threads about it, and that don't resolve my problems, maybe someone have the same problem...
I will be very gratefull for any help.
 Which threads have you read? Link them here for reference. You apparently use pulseaudio, which you do not mention. What simple python script is that? Does is take any arguments? Do you have pulseaudio-alsa installed?
arecord -lL;
lspci -vvnn | grep -A1 '040[1-3]'; cat /proc/asound/modules; amixer;
lsusb #if there is a usb sound card;
# or use the alsa-info script

Similar Messages

  • Problems with Jack and my USB mic

    My current settings on Jack are relatively standard, except for one thing - I have specified different input and output devices than default. Using such a setup stops Jack from starting up at all, and is very annoying - I would love to be able to use Jack for what it is supposed to be used for. Everything is the latest stable build out of the repositories via pacman, any help would be appreciated. Also, I have tried numerous different frames/periods, sample rates, and periods/buffers. I know this problem is common, but I cannot find a fix for it on google or 'round here. The microphone works fine when used without Jack (i.e. through Audacity or any other recording program). Any help is greatly appreciated.
    Relevant Log file:
    21:37:08.534 JACK is starting...
    21:37:08.536 /usr/bin/jackd -v -r -dalsa -r48000 -p512 -n3 -s -D -Chw:0 -Phw:Microphone,0 -zs
    jackd 0.120.1
    Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben Hohn and others.
    jackd comes with ABSOLUTELY NO WARRANTY
    This is free software, and you are welcome to redistribute it
    under certain conditions; see the file COPYING for details
    getting driver descriptor from /usr/lib/jack/jack_dummy.so
    getting driver descriptor from /usr/lib/jack/jack_alsa.so
    getting driver descriptor from /usr/lib/jack/jack_firewire.so
    getting driver descriptor from /usr/lib/jack/jack_net.so
    getting driver descriptor from /usr/lib/jack/jack_oss.so
    JACK compiled with System V SHM support.
    server `default' registered
    loading driver ..
    apparent rate = 48000
    creating alsa driver ... hw:Microphone,0|hw:0|512|3|48000|0|0|nomon|swmeter|soft-mode|32bit
    ALSA lib conf.c:4514:(parse_args) Unknown parameter 1
    ALSA lib conf.c:4647:(snd_config_expand) Parse arguments error: No such file or directory
    ALSA lib control.c:882:(snd_ctl_open_noupdate) Invalid CTL hw:Microphone,0
    21:37:08.611 JACK was started with PID=13932.
    control open "hw:Microphone,0" (No such file or directory)
    ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode
    configuring for 48000Hz, period = 512 frames (10.7 ms), buffer = 3 periods
    ALSA: final selected sample format for capture: 32bit integer little-endian
    ALSA: use 3 periods for capture
    impossible sample width (1) discovered!
    no message buffer overruns
    21:37:08.751 JACK was stopped with exit status=1.
    21:37:10.631 Could not connect to JACK server as client. - Overall operation failed. - Unable to connect to server. Please check the messages window for more info.
    Relevant aplay/arecord -l output:
    **** List of PLAYBACK Hardware Devices ****
    card 0: Intel [HDA Intel], device 0: AD198x Analog [AD198x Analog]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 0: Intel [HDA Intel], device 1: AD198x Digital [AD198x Digital]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    **** List of CAPTURE Hardware Devices ****
    card 0: Intel [HDA Intel], device 0: AD198x Analog [AD198x Analog]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: Microphone [Logitech USB Microphone], device 0: USB Audio [USB Audio]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    Last edited by AVW (2011-04-24 01:55:29)

    Ah, I forgot to mention I was using qjackctl. And I have tried that - with exact same result.
    Last edited by AVW (2011-04-25 03:00:13)

  • Problems with Jack audio and realtime

    Hi,
    I'm trying to configure jack-audio-connection-kit to work in realtime as a normal user. I have followed the "Realtime for Users" entry in the wiki and edited /etc/security/limits.conf as:
    @audio - rtprio 70
    @audio - nice -10
    @audio - memlock 250000
    but the jack server doesn't work very well. I get a lot ot xruns (about 5 per minute) even when I'm not using any audio. This is the output of qjackctl:
    02:13:25.922 Patchbay deactivated.
    02:13:26.176 Statistics reset.
    02:13:26.395 MIDI connection graph change.
    02:13:29.184 Startup script...
    02:13:29.184 artsshell -q terminate
    can't create mcop directory
    Creating link /home/johannes/.kde/socket-archer.
    02:13:29.556 Startup script terminated with exit status=256.
    02:13:29.556 JACK is starting...
    02:13:29.557 /usr/bin/jackd -R -dalsa -dhw:0 -r48000 -p1024 -n2
    02:13:29.562 JACK was started with PID=3886 (0xf2e).
    jackd 0.100.7
    Copyright 2001-2005 Paul Davis and others.
    jackd comes with ABSOLUTELY NO WARRANTY
    This is free software, and you are welcome to redistribute it
    under certain conditions; see the file COPYING for details
    JACK compiled with System V SHM support.
    loading driver ..
    apparent rate = 48000
    creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
    control device hw:0
    configuring for 48000Hz, period = 1024 frames, buffer = 2 periods
    Note: audio device hw:0 doesn't support a 32bit sample format so JACK will try a 24bit format instead
    Note: audio device hw:0 doesn't support a 24bit sample format so JACK will try a 16bit format instead
    nperiods = 2 for capture
    nperiods = 2 for playback
    02:13:31.605 Server configuration saved to "/home/johannes/.jackdrc".
    02:13:31.607 Statistics reset.
    02:13:31.634 Client activated.
    02:13:31.638 Audio connection change.
    02:13:31.653 Audio connection graph change.
    02:14:47.445 XRUN callback (1).
    **** alsa_pcm: xrun of at least 395.915 msecs
    02:14:58.447 XRUN callback (2).
    **** alsa_pcm: xrun of at least 399.379 msecs
    02:15:32.443 XRUN callback (3).
    **** alsa_pcm: xrun of at least 395.860 msecs
    Those things make the sound choppy.
    I also have very bad latency, 42,7 msec...
    I'm using the standard arch kernel:
    Linux archer 2.6.15-ARCH #1 SMP PREEMPT Sun Feb 12 18:36:42 CET 2006 i686 Intel(R) Pentium(R) M processor 2.00GHz GenuineIntel GNU/Linux
    I used Ubuntu before I switched to Arch, and there jack in realtime worked fine, so it's not because of the hardware. Back then I had to add a kernel module named "realtime-lsm", but according to the wiki that is not needed in Arch. Is there a solution for this problem?

    lspci gives me:
    00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 03)
    I don't seem to have a "Surround Jack Mode" setting in alsamixer.
    I have tried playing around with alsa, but I can't seem to get it right... And I have no idea if that is the problem. I will try using the alsactl from ubuntu.
    It seems that if I change the Frames/Preiod and Sample Rate settings in qjackctl I can get more or less xruns, but they never go away fully. If I uncheck the realtime option in qjackctl I get lots of xruns.
    I read somewhere that you need to have realtime-preemption in your kernel. The option name is CONFIG_PREEMPT_RT. I checked /boot/kconfig26 and it seems that option is not present in this kernel. Normal CONFIG_PREEMPT is set to "y" though. Might this be a problem?

  • There is a problem with the left headphone or stereo  headphone jack connection in the ipod touch 2nd generation

    I have had my ipod touch 2nd generation for 3 yrs. Now its been a year with this problem but i never seem to get it fixed because i lost my warranty and repair certificate a year ago. So  the problem is whenever I put in a headphone jack for some reason only the right head phone or right speaker works not the left, but when i place the ipod on the docking port both speakers on my stereo work.
    Now I have taken great care of this thing. Never lost it. I assume that a connection inside the jack port is pushed in from debrie (forgot how to spell that word)  because, I always place my ipod into my pocket. The only way to get the left speaker or headphone to work is to push on the headphone jack so it tilts, then the left speaker works; but when i release it the left speaker or headphone turns off or stop making sound. So i know its not wiring problems its the connection for the headphone jack to the ipods jack's connection for the left speaker. Though microphones work.
    My question is can this be a DIY or do i have to take it in to a local apple store. Problem i lost the warranty and protection repair form or license 2 years ago. I have had no problems with my ipod at all these years until this problem has consisted to happen since last year.
    Anything?
    Thanks,
    Sigma119

    - If you want to replace the headphone jack yourself see:
    iPod Touch Repair - iFixit
    - Apple will only exchange your iPod for a refurbished one for this price, You get a new battery.  However, it may not be worth it for a 2G iPod.
    Apple - Support - iPod - Repair pricing- A third-party place like this one is less expensive. Google from more places.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens

  • Headphone jack problem with the zen mi

    Not even 2 months after sending it in to be fixed, and I can't move my head without the sound getting distorted. Why don't they fix the problem not just make it work for a month in a half. Is there anyway to fix this withut sending it in?

    I gathered that a lot of people have experienced headphone jack problems with their players, but I thought that was with the Micros only. I guess I'm glad I'm not the only one. Or maybe I'm not. I dunno.
    Anyway, I sent an e-mail to customer support. My wife bought the unit for me for a Christmas present last year, so it's only a couple of months out of warranty. If nothing else, hopefully Creative will tell me how to ship it back for repairs at my own expense (it's gotta be cheaper than buying a new one).

  • Problem With Headphone Jack

    The headphone jack on my ipod is faulty. I think there is a connection problem in the jack of the ipod.
    I know it isn't the headphones because i have tried various pairs of headphones.
    I got in touch with the place i brought it from and they said to go to Apple directly.
    Does anyone know what i have to do to get my ipod repaired? Contact email? Address to send it to?
    Any help would be appreciated.
    Thanks.

    I to had a problem with my headphone jack. Here is the problem with the iPod headphone jack (or with anyheadphone jack for that matter) Say you like to take your iPod out side, or you leave it in a humid area with the headphones out of it. Very very very small amounts of water will build up in the jack, and this slowly, after about a year coorodes the copper inside. This has happened to two iPods that I have had. Now the only real problem is that, if what i explained above is your problem, it is not covered under the apple warrenty or the apple care program. If you do have to get a new iPod, I would highly suggest getting an Otterbox Water Proof case. It is bulky, but it will save you a lot of money.

  • Headphone jack problem with Creative Zen Nomad XTra 3

    My warranty expired a couple of months ago, so, naturally, all problems are showing up now.
    Last night I noticed that my player is no longer deli'vering sound out of the right headphone. I've tried with several different headphones and a pair of external speakers so I've confirmed it's with the device and not the headphones. Since the device is not under warranty anymore, I can't find any information on getting repairs or support.
    Any help out there?

    I gathered that a lot of people have experienced headphone jack problems with their players, but I thought that was with the Micros only. I guess I'm glad I'm not the only one. Or maybe I'm not. I dunno.
    Anyway, I sent an e-mail to customer support. My wife bought the unit for me for a Christmas present last year, so it's only a couple of months out of warranty. If nothing else, hopefully Creative will tell me how to ship it back for repairs at my own expense (it's gotta be cheaper than buying a new one).

  • Problems with the audio jacks

    I just received my factory refurb Thinkstation C30. I'm having problems with the integrated audio. I'm using Windows 8.1 Pro, installed myself over the factory Windows 7. It seems to be detecting the headphones incorrectly. The internal speaker never does anything, in any case. When the headphones are plugged into the front headphone jack, the Realtek control panel thinks its the pink jack, and the microphone tab appears. Plugged into the microphone jack, it thinks its the green and pink jack, and flickers rapidly between plugged in and not plugged in on the pink jack, microphone tab appears on and off.
    Now for the back jack:
    Blue identifies as blue, line in tab appears.
    Green indentifies as both pink and blue (somehow), line in and microphone tab appear.
    Pink idenfies as pink, with rapid on/off disconnecting. Microphone tab appears and disappears repeatedly.
    The behavior seems to be the same with the generic Microsoft high definition audio driver, I installed the specific one off of the driver page to after I observed this behavior.
    No sound ever happens from the headphones or internal speaker. In the sound control panel, my options are speakers on Realtek High Definition Audio, and AMD HDMI output (which I use for my speaker system). On my previous computer, plugging in headphones to the front panel would switch the output from HDMI to headphones automatically. 
    I do have 99 days left on the warranty if I need any parts for this, I'm wondering if the wiring in the USB/headphone jack assembly is whacky.

    Silly question, but have you checked the orange connector that runs from the front panel to the motherboard to ensure it's plugged in correctly?  
    The fact that you're seeing ports flip back and forth between two different kind if inputs (or outputs) is odd.  These ports do support jack sensing, but I would expect the flickering symptom you're describing.  The fact that you're also not getting any output from the internal speaker in any condition is also concerning.  
    I'd inspect the cabling carefully to ensure everything is connected correctly and there is not apparent damage to the cables themselves.  If everything looks good there, I'd probably go the warranty route.  The problem certainly seems HW related from what you're describing.

  • Problem with my ipod touch jack

    I have a problem with my ipod touch jack. When I listen to music (using non aple headphones and the headphones it came with)it doesn't sound as good as my mp4 player so I purchased  an adapter and it still doesn't work what can I do?

    The phono input is for a phonograph.  The iPod does headphne output is not that same as a phongraph output.  Does th stero have an AUX input?  That should be compatible.

  • My ipod touch is having problems with the headphone jack when I rotate a little song stops

    my ipod touch is having problems with the headphone jack when I rotate a little song stops

    Hey Silverdemon, sounds like a short, most likely in the headphones. Try a different set of headphones with this iPod or try the headphones with a different device. If the problem stops with your iPod or it moves to another device, then replace the headphones. If within 1 year of date of purchase Apple will replace the headphones for  free if problem is a defect, not abuse. If the problem continues with a different set of headphones, check the port for damage and foreign debris. If you note debris, attempt to remove it, if damage noted contact Apple and set up an appointment to have it evaluated. if nothing appears wrong, try plugging / unplugging to jack about 12 times maybe corrosion on the contacts if so that should clean it. Next thing to try reset your iPod. After that try restore from backup. Last resort, restore to new. Just make sure you make a full backup to your computer before you restore so no data is lost. If nothing works, contact Apple and set up an appointment to have your iPod evaluated. Good luck, Cheers.

  • I have a problem with my headphone jack and i just bought my macbook pro 10 days ago., I have a problem with my headphone jack and i just bought my macbook pro 10 days ago.

    I am having a problem with the jack in for the headphones. I have bought it brand new from a local authorised apple store about 10 days ago. As soon as I plugged in my headphones and tried them, the sound was coming out of one side of the headphone and the plug inside my macbook pro was loose. When i tried moving it the sound was coming out of the device. What can I do?

    Take it back to the store you bought it from. It will definitely be taken care of

  • Problems with headphone jack -- anyone else?

    My wife's 4G Nano has problems with the headphone jack, and we are sending it back for repair. The unit played one channel through both earbuds, and on many songs the difference is not that noticeable, so we didn't even know it had a problem for a day or so. On other songs, the problem was obvious because you could barely hear the vocals. Also, maximum volume was much lower than it should have been. I have seen at least two other posts on this board indicating a similar problem. I suspect there may be others with the same problem who don't even realize it because on some songs the difference is very subtle. Mine would only play true stereo when you inserted the plug halfway into the jack and held it there. If you suspect you might have the same problem, try that. You might have to push "Play" again because removing the plug often stops playback.

    I had the same problem with a 16Gig that I ordered the day they were announced: one channel very weak but if you pull the plug half way out it seemed to function. It didn't really function though. By pulling it out you hit a point where both earphones are playing off the same channel. I looked in the headphone jack with a microscope and could see either contamination or removed gold from the contact in the nano to the channel on the tip of the plug.
    At first they wanted me to return it for repair but I refused since I didn't pay for a refurb or repaired unit and it had come to me defective. They ultimately replaced it for me and now it seems to work fine. It is not a real obvious problem, but looking here on the forum I'd say it is a not uncommon problem which indicates that their quality control needs improvement.

  • Acer Liquid E700 problem with headphone jack, not working properly.

    Here I am again, what a surprise! Reporting another problem with my 2 month old ACER LIQUID E700. Now the problem is, the headphone jack isnt working properly. When I watch movies, or play music with a headphone or earphone, the dialogue or conversations during movies , or the lyrics sang when playing music, can barely be heard. Also , everytime I connect my earphone it the E700, theres a fast ticking sound, which is faint but you can really hear it, and thats when I realized something was wrong. P.S This phone was never dropped or gotten wet. Im really starting to regret buying an acer phone.Any acer representatives out there who know whats going on?

    Well airstrike2014, I do know how it happened to me, it's weird but definitely how it happened, so I was downloading a electrical razor app to scare my friends (I know, it's stupid, but anyway) and the app works by vibrating at full power and playing a electric razor sound, but it would only vibrate (and the app description said that it would make some sounds too) and I tried maxing out my sound but there was really no way to make it play any sounds. I got tired of it 5 mins later and uninstalled thinking the problem was in the app or something, but I go watch a YouTube video right after and no sound was coming out either, even with the volume maxed out and with headphones, so I restart my phone, now sounds play perfectly when there aren't any headphones plugged in but when there are, it now happens what you described there, a tick sound lasting the first few seconds the headphones are plugged in and if I try to play any media it happens that "instrumental effect", other heaphones do the same, so it's obviously the phone.I mean, is it really possible that some kind of problem occurred while trying to vibrate and play sound at the same time? Well it was for me, the phone was fine until then.Sorry for the boringly long post haha

  • Having problems with audio jacks, connections are shorting. i need an alternative solution for mixing in logic

    i am having problems with mac pros audio jacks,any alternative solutions ?

    If you're mixing in Logic, buy a FireWire audio interface. So many people make them, that it isn't funny. Personally, I'm a fan of M-Audio interfaces for a cheap, high quality device.
    Here's some FireWire interfaces, they also make USB products.
    http://m-audio.com/index.php?do=products.family&ID=FWinterfaces

  • Problem with hearphone jack

    When il put the jack of headphone on the ipod, it doesn't stay at her place. It retreat of the hole. I have my iPod since one year and it's the first time I have this problem. Please help me I don't understand what is the problem.

    - Have you troed another pair of earphones?
    - If earphones that work in other devices do not work in yours then your have a hardware problem with yur iPOd.  The headphne jacks do go bad sometimes..
    - Apple will exchange your iPod for a refurbished one for:
    Apple - Support - iPod - Repair pricing
    - A third-party place like this is probably less expensive.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens

Maybe you are looking for