Hi,
I installed Mycroft on a Raspberry Pi 4 (8GB) with Raspberry Pi OS installed (with Desktop). I used the normal “linux install” via GitHub. The problem is, that there is no output from Mycroft and I get no Mic Input level in the mycroft-cli-client. All other tests like
- arecord -d 10 test.wav
- aplay test.wav
- mycroft-start audiotest -l
were succeeding. I can record some stuff and playback is working. I am using a USB conference mic which is working fine and I use HDMI/Jack for audio output. Everything seems to work - except for Mycroft…
I tried to troubleshoot the issue but I don’t know where to start. From the audio.log I have this:
2020-09-06 13:00:45.048 | INFO | 573 | main:main:50 | Starting Audio Services
2020-09-06 13:00:45.072 | INFO | 573 | mycroft.messagebus.client.client:on_open:114 | Connected 2020-09-06 13:00:45.098 | INFO | 573 | mycroft.audio.audioservice:get_services:61 | Loading services from /home/pi/mycroft-core/mycroft/audio/services/
2020-09-06 13:00:45.106 | INFO | 573 | mycroft.audio.audioservice:load_services:105 | Loading chromecast 2020-09-06 13:00:46.709 | INFO | 573 | mycroft.audio.speech:mute_and_speak:127 | Speak: This unit is not connected to the Internet.
2020-09-06 13:00:48.010 | INFO | 573 | mycroft.audio.speech:mute_and_speak:127 | Speak: Either plug in a network cable or setup your wifi connection. Verbindungsfehler: Verbindung verweigert
pa_context_new() fehlgeschlagen: Verbindung verweigert
Verbindungsfehler: Verbindung verweigert
pa_context_new() fehlgeschlagen: Verbindung verweigert
It seems like there is a connection error with PulseAudio but additional info is missing… One strange thing is the “not connected to the internet” log - my device IS connected to the internet (via LAN) and this is working fine?..
The voice.log is showing some smiliar output:
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused
ALSA lib pcm_a52.c:823:(_snd_pcm_a52_open) a52 is only for playback
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition ‘cards.bcm2835_hdmi.pcm.iec958.0:CARD=0,AES0=6,AES1=130,AES2=0,AES3=2’
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM iec958:{AES0 0x6 AES1 0x82 AES2 0x0 AES3 0x2 CARD 0}
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
Expression ‘alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 924
2020-09-06 13:00:42.977 | INFO | 581 | mycroft.client.speech.listener:create_wake_word_recognizer:328 | Creating wake word engine
2020-09-06 13:00:42.982 | INFO | 581 | mycroft.client.speech.listener:create_wake_word_recognizer:351 | Using hotword entry for hey mycroft
2020-09-06 13:00:42.991 | INFO | 581 | mycroft.client.speech.hotword_factory:load_module:403 | Loading “hey mycroft” wake word via precise
2020-09-06 13:00:43.016 | ERROR | 581 | mycroft.client.speech.hotword_factory:update_precise:205 | Precise could not be downloaded(ConnectionError(MaxRetryError("HTTPSConnectionPool(host=‘github.com’, port=443): Max retries exceeded with url: /MycroftAI/precise-data/raw/dist/armv7l/latest (Caused by NewConnection$2020-09-06 13:00:43.038 | INFO | 581 | mycroft.client.speech.hotword_factory:install_model:242 | Couldn’t find remote model. Using local file
2020-09-06 13:00:43.072 | INFO | 581 | mycroft.client.speech.listener:create_wakeup_recognizer:365 | creating stand up word engine
2020-09-06 13:00:43.079 | INFO | 581 | mycroft.client.speech.hotword_factory:load_module:403 | Loading “wake up” wake word via pocketsphinx
2020-09-06 13:00:43.425 | INFO | 581 | main:on_ready:175 | Speech client is ready.
2020-09-06 13:00:43.448 | INFO | 581 | mycroft.messagebus.client.client:on_open:114 | Connected
Expression ‘ret’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 1736
Expression ‘AlsaOpen( &alsaApi->baseHostApiRep, params, streamDir, &self->pcm )’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 1904
Expression ‘PaAlsaStreamComponent_Initialize( &self->capture, alsaApi, inParams, StreamDirection_In, NULL != callback )’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 2171
Expression ‘PaAlsaStream_Initialize( stream, alsaHostApi, inputParameters, outputParameters, sampleRate, framesPerBuffer, callback, streamFlags, userData )’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 2840
Can anyone help me out here?
Thanks