Problems with sound under Debian

Hello everyone,

I installed mycroft like this
cd ~/
git clone https://github.com/MycroftAI/mycroft-core.git
cd mycroft-core
bash dev_setup.sh

After this I run it with

./start-mycroft.sh debug

But there is no sound output and no sound input. I’ve already checked the hardware with

arecord -d 10 -o test.wav
aplay test.wav

and it worked. It recorded and played. So can anybody please help.

I am interested in this as well. I installed using docker under debian and have a similar issue. So I will be watching to see what your outcome is. Have you checked your log file to see if there is anything in there?

Yes I did check the log files and there was nothing.

This might be of some help: https://mycroft.ai/documentation/troubleshooting/audio-troubleshooting/

1 Like

Thanks, but I’ve searched this page, it didn’t help.

If you use alsamixer does it allow you to set your sources and levels?

Yes it is possible to do that.

Hey all,
I’m having similar problems after todays update of Mycroft on my Debian : Mycroft does not pick up any voice command anymore.

Audio (with pulseaudio) generally works OK on my system.
“mycroft-core$ ./start-mycroft.sh debug” shows me the mic level going up when I speak.
start-mycroft.sh audiotest records and plays the recorded audio.

When I “move” the mycroft-core from my old version (18 .2 .9) back in place Mycroft responds without flaws.

Any idea where I could look further?
TIA
Johan

Hi there @JenK, if you type alsamixer into the command line does this allow you to adjust inputs and outputs at all?

Hey Kathy,
yes, I can adjust inputs/outputs with alsamixer - sound is working OK on my system.

As mentioned before: ‘mycroft-core$ ./start-mycroft.sh debug’ shows me the mic level going up when I speak : see below terminal-copy (text may be somewhat garbled): Mycroft picks up my voice (hey mycroft) : mic level to 443, but no ping, no reaction to a question.
I have the Mycroft-plasma applet installed : When i type in a question in this applet, Mycroft responds with sound : see in same example below ‘what’s the weather’ response.

Just no response via mic. When I move back my old Mycroft-installation (18.2.9), everything works fine : mic/voice/sound/response.

TIA
Johan

Blockquote

History ============================== Log Output Legend ====== Mic Level ===
what’s the weather DEBUG output 443 *

It’s currently clear sky and 15 skills.log, other *
degrees. Today’s forecast is for a voice.log *
high of 26 and a low of 10. *

                                                                   *       
                                                                  -*- 19.53
                                                                   *       

Input (‘:’ for command, Ctrl+C to quit) ========================== *

Blockquote

OK, if it’s not a source selection issue, can you check your Voice Log - /var/log/mycroft/voice.log for any errors? If there is an issue with Mycroft using the selecting microphone source then it should show up in that log.

Hey Kathy,
thanks for your help : found this, related to audio, in the /var/log/mycroft/voice.log
My soundcard is a SB live with EMU10K1 driver.
Any idea?

20:05:35.806 - mycroft.configuration.config:load_local:124 - DEBUG - Configuration /home/dewaele/.mycroft/mycrof
t.conf loaded
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_asym.c:106:(_snd_pcm_asym_open) capture slave is not defined
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.EMU10K1.pcm.surround71.0:CARD=0'
ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround71
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.EMU10K1.pcm.hdmi.0:CARD=0,AES0=4,AES1
=130,AES2=0,AES3=2'
ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM hdmi
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.EMU10K1.pcm.hdmi.0:CARD=0,AES0=4,AES1
=130,AES2=0,AES3=2'
ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM hdmi
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.EMU10K1.pcm.modem.0:CARD=0'
ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline:CARD=0,DEV=0
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.EMU10K1.pcm.modem.0:CARD=0'
ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline:CARD=0,DEV=0
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.EMU10K1.pcm.modem.0:CARD=0'
ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM phoneline
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.EMU10K1.pcm.modem.0:CARD=0'
ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM phoneline
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
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock

Johan

Hi Johan, thanks for providing this information - I made a minor edit to your post so that the code displayed in a mono font for easier reading.

I see two specific issues here;

  • One is with the ALSA configuration - ALSA cannot find the specified source
  • The second is with the JACK audio server - the very last log entries.

Reading this documentation on the JACK audio website, it appears that Pulse and Jack cannot access the same sound card.

Are you able to run out a conflict with Pulse and Jack by removing or disabling Jack?

Kind regards,
Kathy

Hi Kathy,
tried several things:

  • jack was not running, deleted the package to be sure : same error
  • pacmd list-sources | grep -e 'index:' -e device.string -e 'name:

lists me the correct default input device:

'    index: 0
        name: <alsa_output.pci-0000_00_1b.0.analog-stereo.monitor>
                device.string = "1"
    index: 1
        name: <alsa_input.pci-0000_00_1b.0.analog-stereo>
                device.string = "front:1"
    index: 2
        name: <alsa_output.pci-0000_05_05.0.analog-stereo.monitor>
                device.string = "0"
  * index: 3
        name: <alsa_input.pci-0000_05_05.0.analog-mono>
                device.string = "hw:0" 
  • tapping on the mic gives me sound though the speakers,
  • arecord test.wav records me a soundfile
  • still the same errors in the voice.log and Mycroft is NOT listening :frowning:

Changed back to my old Mycroft installation (18.2.9) and yep : Mycroft listens again :slight_smile:. But yes, it is again the old version.

Looked at the logs, which are for this version still in my ~/mycroft-core/scripts/logs directory : same errors but Mycroft listens… So I’m puzzled - I don’t think Jack or the errors in the log are relevant to my specific problem.

 21:03:47.426 - mycroft.configuration.config:load_local:124 - DEBUG - Configuration /home/dewaele/.mycroft
    /mycroft.conf loaded
    ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
    ALSA lib pcm_asym.c:106:(_snd_pcm_asym_open) capture slave is not defined
    ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.EMU10K1.pcm.surround71.0:CARD=
    0'
    ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or direc
    tory
    ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
    ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround71
    ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.EMU10K1.pcm.hdmi.0:CARD=0,AES0
    =4,AES1=130,AES2=0,AES3=2'
    ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or direc
    tory
    ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
    ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM hdmi
    ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.EMU10K1.pcm.hdmi.0:CARD=0,AES0
    =4,AES1=130,AES2=0,AES3=2'
    ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or direc
    tory
    ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
    ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM hdmi
    ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.EMU10K1.pcm.modem.0:CARD=0'
    ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or direc
    tory
    ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
    ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline:CARD=0,DEV=0
    ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.EMU10K1.pcm.modem.0:CARD=0'
    ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or direc
    tory
    ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
    ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline:CARD=0,DEV=0
    ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.EMU10K1.pcm.modem.0:CARD=0'
    ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or direc
    tory
    ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
    ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM phoneline
    ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.EMU10K1.pcm.modem.0:CARD=0'
    ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or direc
    tory
    ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
    ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM phoneline

    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
    JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
    JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
    21:03:47.498 - mycroft.client.speech.listener:create_wake_word_recognizer:243 - INFO - creating wake word
     engine
    21:03:47.499 - mycroft.client.speech.hotword_factory:create_hotword:264 - INFO - creating hey mycroft
    21:03:47.506 - mycroft.client.speech.hotword_factory:__init__:125 - INFO - Found precise executable: /hom
    e/dewaele/.mycroft/precise/precise-stream/precise-stream
    21:03:47.512 - mycroft.client.speech.listener:create_wakeup_recognizer:261 - INFO - creating stand up wor
    d engine
    21:03:47.513 - mycroft.client.speech.hotword_factory:create_hotword:264 - INFO - creating wake up
    21:03:47.555 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): api.
    mycroft.ai
    21:03:48.017 - requests.packages.urllib3.connectionpool - DEBUG - https://api.mycroft.ai:443 "GET /v1/dev
    ice/c5c1a25e-71b6-4211-842d-ff8fc9f97363 HTTP/1.1" 304 0
    21:03:48.021 - mycroft.api:send:111 - DEBUG - Etag matched. Nothing changed for: device/c5c1a25e-71b6-421
    1-842d-ff8fc9f97363
    21:03:48.028 - mycroft.messagebus.client.ws:on_open:61 - INFO - Connected
    21:03:49.958 - mycroft.client.speech.mic:listen:487 - DEBUG - Waiting for wake word...
    21:04:08.597 - mycroft.client.speech.mic:listen:492 - DEBUG - Recording...
    21:04:08.598 - __main__:handle_record_begin:35 - INFO - Begin Recording...
    21:04:11.598 - __main__:handle_record_end:40 - INFO - End Recording...
    21:04:11.611 - mycroft.session:get:76 - INFO - New Session Start: a8de892f-e70a-492d-bc0d-8e405968b3f2
    21:04:11.611 - __main__:handle_wakeword:56 - INFO - Wakeword Detected: hey mycroft
    21:04:11.653 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): api.
    mycroft.ai
    21:04:12.554 - mycroft.client.speech.mic:listen:487 - DEBUG - Waiting for wake word...
    21:04:12.652 - requests.packages.urllib3.connectionpool - DEBUG - https://api.mycroft.ai:443 "POST /v1/st
    t?lang=en-US&limit=1 HTTP/1.1" 200 None
    21:04:12.791 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): api.
    mycroft.ai
    21:04:13.729 - requests.packages.urllib3.connectionpool - DEBUG - https://api.mycroft.ai:443 "POST /v1/st
    t?lang=en-US&limit=1 HTTP/1.1" 200 None
    21:04:13.829 - mycroft.client.speech.listener:transcribe:182 - INFO - no words were transcribed
    21:04:13.829 - mycroft.client.speech.listener:transcribe:185 - ERROR - Speech Recognition could not under
    stand audio
    21:18:28.204 - mycroft.client.speech.mic:listen:492 - DEBUG - Recording...
    21:18:28.205 - __main__:handle_record_begin:35 - INFO - Begin Recording...
    21:18:30.763 - __main__:handle_record_end:40 - INFO - End Recording...
    21:18:30.765 - mycroft.session:get:76 - INFO - New Session Start: 81b9bdba-5aef-4e04-8f90-9e047009f520
    21:18:30.766 - __main__:handle_wakeword:56 - INFO - Wakeword Detected: hey mycroft
    21:18:30.782 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): api.
    mycroft.ai
    21:18:31.717 - mycroft.client.speech.mic:listen:487 - DEBUG - Waiting for wake word...
    21:18:31.857 - requests.packages.urllib3.connectionpool - DEBUG - https://api.mycroft.ai:443 "POST /v1/st
    t?lang=en-US&limit=1 HTTP/1.1" 200 None
    21:18:32.568 - mycroft.client.speech.listener:transcribe:163 - DEBUG - STT: what's the date
    21:18:32.569 - __main__:handle_utterance:61 - INFO - Utterance: ["what's the date"]

OK, so I’m not sure what the ALSA issue is here, but can see from the log that;

  • the Wake Word is being detected correctly
  • the Speech to Text is being picked up correctly

Is Mycroft responding accurately?