Please help with audio on desktop install (ubuntu 16.04)

The install seemed to go okay, but there’s no listening, no sound… Voice service log is below.

I am running: guy@guy-Kudu-Pro:~/mycroft-core-dev$ sudo ./mycroft.sh start

I’ve been trying things for a couple of days. I hope there’s some help here! Thanks! -guy

Starting voice
2017-08-01 14:04:20,085 - mycroft.configuration - INFO - Loading configuration: /home/guy/mycroft-core-dev/mycroft/configuration/mycroft.conf
2017-08-01 14:04:20,086 - mycroft.configuration - DEBUG - Configuration ‘/home/guy/mycroft-core-dev/mycroft/configuration/mycroft.conf’ loaded
2017-08-01 14:04:20,086 - mycroft.configuration - DEBUG - Configuration ‘/home/guy/.mycroft/mycroft.conf’ not found
2017-08-01 14:04:20,086 - mycroft.configuration - INFO - Loading configuration: mycroft.ai
2017-08-01 14:04:20,086 - mycroft.configuration - DEBUG - Remote configuration not activated.
2017-08-01 14:04:20,086 - mycroft.configuration - INFO - Loading configuration: /etc/mycroft/mycroft.conf
2017-08-01 14:04:20,086 - mycroft.configuration - DEBUG - Configuration ‘/etc/mycroft/mycroft.conf’ not found
2017-08-01 14:04:20,086 - mycroft.configuration - DEBUG - Configuration ‘/home/guy/.mycroft/mycroft.conf’ not found
2017-08-01 14:04:20,086 - mycroft.configuration - INFO - Loading configuration: /home/guy/.mycroft/mycroft.conf
2017-08-01 14:04:20,086 - mycroft.configuration - DEBUG - Configuration ‘/home/guy/.mycroft/mycroft.conf’ not found
2017-08-01 14:04:20,086 - mycroft.configuration - DEBUG - Configuration ‘/home/guy/.mycroft/mycroft.conf’ not found
2017-08-01 14:04:20,190 - mycroft.messagebus.client.ws - INFO - Connected
Carnegie Mellon University, Copyright © 1999-2011, all rights reserved
mimic developers, Copyright © 2016, all rights reserved
version: mimic-1.2.0.2 ()
Home directory not accessible: Permission denied
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1029:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
Home directory not accessible: Permission denied
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

Home directory not accessible: Permission denied
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1029:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1029:(snd_pcm_dmix_open) unable to open slave
Exception in thread Thread-30:
Traceback (most recent call last):
File “/usr/lib/python2.7/threading.py”, line 801, in __bootstrap_inner
self.run()
File “/home/guy/mycroft-core-dev/mycroft/client/speech/listener.py”, line 60, in run
with self.mic as source:
File “/home/guy/mycroft-core-dev/mycroft/client/speech/mic.py”, line 110, in enter
input=True, # stream is an input stream
File “/home/guy/.virtualenvs/mycroft/local/lib/python2.7/site-packages/pyaudio.py”, line 747, in open
stream = Stream(self, *args, **kwargs)
File “/home/guy/.virtualenvs/mycroft/local/lib/python2.7/site-packages/pyaudio.py”, line 442, in init
self._stream = pa.open(**arguments)
IOError: [Errno Invalid input device (no default output device)] -9996

2017-08-01 14:04:20,268 - mycroft.messagebus.client.ws - INFO - Connected
2017-08-01 14:05:09,787 - mycroft.messagebus.client.ws - ERROR - Exception(“Uncaught ‘error’ event.”,)
2017-08-01 14:05:09,787 - mycroft.messagebus.client.ws - ERROR - Exception(“Uncaught ‘error’ event.”,)
2017-08-01 14:05:09,787 - mycroft.messagebus.client.ws - WARNING - WS Client will reconnect in 5 seconds.
2017-08-01 14:05:09,787 - mycroft.messagebus.client.ws - WARNING - WS Client will reconnect in 5 seconds.

1 Like

I got rid of the permissions problem (home directory not accessible) with these commands…

sudo chown -R guy /home/guy
chmod 755 /home/guy
chmod 644 /home/guy/.dmrc

So there’s just the ‘unable to open slave’ problem:

ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1029:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_dmix.c:1029:(snd_pcm_dmix_open) unable to open slave

Still no screens…

-guy

1 Like

ok. Now I got rid of the unable to open slave problem by adding this line:

options snd_hda_intel index=1

to: /etc/modprobe.d/alsa-base.conf

Then I ran this python code:

import pyaudio
p = pyaudio.PyAudio()
info = p.get_host_api_info_by_index(0)
numdevices = info.get(‘deviceCount’)
for i in range(0, numdevices):
if (p.get_device_info_by_host_api_device_index(0,i).get(‘maxInputChannels’)) > 0:
print "Input Device id ", i, " - ", p.get_device_info_by_host_api_device_index(0, i).get(‘name’)

Run with:

source $HOME/.virtualenvs/mycroft/bin/activate
python .py

And based on the output of that code I add the following lines to the ‘listener’ section of mycroft.conf (having to also turn ‘update’ to false in the ‘server’ section)

“device_index”: 11

So, Now my voice log looks like this with ‘no matching channel map’ and still no screens! Ideas?

Starting voice
2017-08-01 16:34:23,299 - mycroft.configuration - INFO - Loading configuration: /home/guy/mycroft-core-dev/mycroft/configuration/mycroft.conf
2017-08-01 16:34:23,300 - mycroft.configuration - DEBUG - Configuration ‘/home/guy/mycroft-core-dev/mycroft/configuration/mycroft.conf’ loaded
2017-08-01 16:34:23,300 - mycroft.configuration - DEBUG - Configuration ‘/home/guy/.mycroft/mycroft.conf’ not found
2017-08-01 16:34:23,300 - mycroft.configuration - INFO - Loading configuration: mycroft.ai
2017-08-01 16:34:23,300 - mycroft.configuration - DEBUG - Remote configuration not activated.
2017-08-01 16:34:23,300 - mycroft.configuration - INFO - Loading configuration: /etc/mycroft/mycroft.conf
2017-08-01 16:34:23,300 - mycroft.configuration - DEBUG - Configuration ‘/etc/mycroft/mycroft.conf’ not found
2017-08-01 16:34:23,300 - mycroft.configuration - DEBUG - Configuration ‘/home/guy/.mycroft/mycroft.conf’ not found
2017-08-01 16:34:23,300 - mycroft.configuration - INFO - Loading configuration: /home/guy/.mycroft/mycroft.conf
2017-08-01 16:34:23,300 - mycroft.configuration - DEBUG - Configuration ‘/home/guy/.mycroft/mycroft.conf’ not found
2017-08-01 16:34:23,300 - mycroft.configuration - DEBUG - Configuration ‘/home/guy/.mycroft/mycroft.conf’ not found
2017-08-01 16:34:23,379 - mycroft.messagebus.client.ws - INFO - Connected
Carnegie Mellon University, Copyright © 1999-2011, all rights reserved
mimic developers, Copyright © 2016, all rights reserved
version: mimic-1.2.0.2 ()
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
2017-08-01 16:34:23,536 - mycroft.messagebus.client.ws - INFO - Connected
2017-08-01 16:34:25,494 - mycroft.client.speech.mic - DEBUG - Waiting for wake word…

1 Like

Well, mysteries abound! I got it working!! Only there’s no screens, but my laptop responds to ‘hey mycroft’ and if I tail mycroft-voice.log I can see what’s going on. Good enough for now!
I hope my struggles here help someone. Long live Mycroft!
-guy

1 Like

Hey, sorry for kinda necroing this old thread, but I have the same problem and everything matches up with

after following the same steps as you. Do you remember what you did from that to getting it to work?

The steps in this (page down) post helped me. I hope it helps you! https://raspberrypi.stackexchange.com/questions/59852/pyaudio-does-not-detect-my-microphone-connected-via-usb-audio-adapter

1 Like