-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems under ubuntu #18
Comments
Curious if pulseaudio works on your pc and if it makes a difference. |
volkan@ubuntu:~/Belgeler/quietnet$ pulseaudio I think yes :/ |
@wakeup did you install pyaudio using apt-get or from the pyaudio site? |
Give these instructions a try, if they work I'll add that as a note in the readme. |
I installed using apt-get and tried your instructions, but unfortunately it is the same issue. |
The underun is likely caused because pulseaudio is already accessing the card - you can pause it using http://linux.die.net/man/1/pasuspender. In general to avoid such deadlock, you need a soundserver like jackd https://help.ubuntu.com/community/What%20is%20JACK, but you already figured this out from the following log entries in your trace ;-) (apt-get install jackd)
You need to change "pcm.front cards.pcm.front" to "pcm.front cards.pcm.default" in /usr/share/alsa/alsa.conf. The rest of the errors are not meaningful, for instance, "bt_audio_service_open: connect() failed: Connection refused (111)" refers to your bluetooth device - you are likely missing some bluethooth packages, but you can simply ignore it. This should get you moving forward and debug further. |
@Katee @alouche , Thanks for your suggestion. 👍 I started jackd(via qjackctl) which when started suspends pulseaudio (pasuspender -- /usr/bin/jackd). But I get the following errors.
whereas If I stop jackd(via qjackctl) it throws this error quietnet (master)$ python send.py Any pointers would be of good help. My System Info quietnet (master)$ uname -a quietnet (master)$ aplay -l **** List of CAPTURE Hardware Devices **** quietnet (master)$ aplay -L quietnet (master)$ arecord -L |
You need to make sure real time and memory lock are enabled for jackd
Then make sure your username is added to the group "audio".
should display
|
I have Ubuntu 12.04.3 and I started jackd by qjackctl. (note, the package to reconfigure on Ubuntu 12.04 is jackd2, not jackd)
listen.py:
send.py:
at this point send.py hangs irresponsible to sigint, and i have to sigkill it. without using jackd:
at this point send.py also becomes irresponsible to sigint. |
... It works now, after I put my laptop to standby and woke it up again. |
Even if I try to change the priority to the real-time for some reason I always see it to be 0 and not 95 quietnet# dpkg-reconfigure -p high jackd2 and so do I get the following error #python listen.py Quietnet listening at 19100HzALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear quietnet# python send.py |
Kubuntu 14.10x64:
|
Is there a way to hide these messages?? |
@xeffect : Did you figure out what was going on as far as the priorities are concerned? I'm having trouble running the example script from PyAudio Website (Wire (Callback)). |
use following tips for solve bt_audio_service_open: connect() failed: Connection refused (111)
after that,it still have follow errors, but it doesn't matter. I can listen and say, but i still want to solve it, hope you help me!
thank you for you tips again. |
code--- r = sr.Recognizer() try: output: |
I am getting error at root@xion:/home/xion/pyaudio# python microphone_recognition.py |
this started when i crashed the program myself... some soc file is locked it looks like dont know were to look |
Did someone find an answer to it. |
Maybe this could help (don't forget to reboot and kill pulse as mentioned): https://github.com/Uberi/speech_recognition#user-content-on-ubuntudebian-i-get-errors-like-jack-server-is-not-running-or-cannot-be-started-or-cannot-lock-down--byte-memory-area-cannot-allocate-memory |
will u please help i also changed "pcm.front cards.pcm.front" to "pcm.front cards.pcm.default" in /usr/share/alsa/alsa.conf. |
I think everything is normal until this:
volkan@ubuntu:~/Belgeler/quietnet$ python send.py
ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave
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
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
ALSA lib pcm_dmix.c:961:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
Welcome to quietnet. Use ctrl-c to exit
But when I send something, i receive the following:
ALSA lib pcm.c:7843:(snd_pcm_recover) underrun occurred
As a result, nothing comes in listening part. What can be the problem?
The text was updated successfully, but these errors were encountered: