Conflict: Mycroft Libjack-jackd2-0

What do you mean with disconnect AGH? Usually these are 2 independent apps

As soon as I launched Mycroft CLI, I lost my internet connection. I assume that Mycroft was the culprit since nothing else had changed.

Did you checked the status of AGH service?

I think I tried to get to the AGH web interface through my PC, and it couldn’t reach it.

First thing would be to check service status and LISTEN ports

Can you be more specific as to what commands are needed?

systemctl status adguardhome
journalctl -u adguardhome
ss -tulpn | grep LISTEN

do this once Mycroft has been started

Thanks, I finally ran the commands after starting Mycroft. There are some IP addresses in there so I didn’t post it. But unlike before, I now have a connection to the internet, so I’m not sure why there wasn’t last time.

Next issue: although I hear the Mycroft “chime” when I speak a command, there’s no voice even though the CLI displays the answer. i.e. asking “Who’s Abraham Lincoln?” shows the text answer on screen but no sound. I’m using the 3.5mm speaker output. I did a search and Mycroft may default to HDMI output, but I haven’t found a solution specifically for DietPi.

Is there a fix for this?

Edit: I can get sound from the speakers outside of Mycroft using:
aplay /mnt/dietpi-backup/data/usr/shaare/sounds/alsa/Rear_Center.wav


Simon

MichaIng
pls can you have a look. You are more familiar with sound issues.

Can you show:

aplay -l
cat /etc/asound.conf /etc/mycroft/mycroft.conf

Here’s the output:

dietpi@DietPi:~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7


dietpi@DietPi:~ $ cat /etc/asound.conf /etc/mycroft/mycroft.conf
pcm.!default {
	type plug
	slave.pcm {
		type hw
		card 0
		device 0
	}
}

ctl.!default {
	type hw
	card 0
}
// DietPi Mycroft AI default configuration
// Location: /etc/mycroft/mycroft.conf
// NB: Do not edit this file, but create your custom override at: /mnt/dietpi_userdata/mycroft-data/.mycroft/mycroft.conf
// Docs: https://github.com/MycroftAI/mycroft-core/blob/master/mycroft/configuration/mycroft.conf
{
  "data_dir": "/mnt/dietpi_userdata/mycroft-data",
  // As DietPi uses plain ALSA, default "paplay" is not available.
  "play_wav_cmdline": "aplay %1"
}

Hmm, looks all correct. Have you checked whether Mycroft AI audio volume is sufficiently high?

The speakers are at full volume both through the lxde interface and the physical dial.
Oddly, I can hear the Mycroft “chime” after saying “Hey Mycroft” but nothing else can be heard related to the request. i.e. nothing can be heard in response to the question, “Who’s Abraham Lincoln?” or any other request. But the text output is shown on the CLI interface.

Edit: I’m using a speaker that uses both usb for power (from the Pi) and 3.5 for sound. Not sure if that has any bearing on this.

@MichaIng Any other suggestions Micha?

Can you try to play an mp3 manually via mpg123 /path/to/my.mp3? Also check out the logs in /var/log/mycroft.

EDIT: I had the volume down! I got a ringing sound.
Output is below. I looked in each log file, audio.log, bus.log, enclosure.log , skills.log, voice.log, but the files are empty.

dietpi@DietPi:~ $ mpg123 /mnt/dietpi_userdata/mycroft-data/skills/mycroft-alarm.mycroftai/sounds/bell.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
	version 1.25.10; written and copyright by Michael Hipp and others
	free software (LGPL) without any warranty but with best wishes

Directory: /mnt/dietpi_userdata/mycroft-data/skills/mycroft-alarm.mycroftai/sounds/

Terminal control enabled, press 'h' for listing of keys and functions.

Playing MPEG stream 1 of 1: bell.mp3 ...

MPEG 1.0 L III cbr128 48000 stereo

Title:   Clock.Windup.Bell.Antique.wav   Artist: jessepash                      
Album:   https://freesound.org/people/jessepash/sounds/139958/

[0:05] Decoding of bell.mp3 finished.

So mpg123 does not play any sound either? Then it makes sense that Mycroft AI doesn’t, as it uses exactly this command internally to play its mp3 files :wink:. The question only is why when wav files and speaker-test work fine, and it doesn’t throw any error. We need to find out how to debug mpg123.

With RAMlog enabled, logs are cleared hourly, so I guess they would need to be triggered again by using Mycroft. But as long as mpg123 doesn’t play sound, no need to go that path but instead we need to debug mpg123 itself.

Sorry, I had the volume down! I get a nice ringing sound!

Okay, so far so good, does it work as well with Mycroft now? If not, check the logs again right after testing it.

Asking Mycroft “Who’s Abraham Lincoln?” plays the acknowledgement chime but no voice response. Here’s the Logs below (bus and enclosure showed nothing.)

AUDIO:

022-02-05 11:39:26.300 | ERROR    |   746 | mycroft.audio.speech:handle_speak:$
Traceback (most recent call last):
  File "/mnt/dietpi_userdata/mycroft-core/mycroft/audio/speech.py", line 95, in$
    mute_and_speak(chunk, ident, listen)
  File "/mnt/dietpi_userdata/mycroft-core/mycroft/audio/speech.py", line 120, i$
    tts.playback.stop()
AttributeError: 'NoneType' object has no attribute 'playback'
2022-02-05 11:39:26.774 | ERROR    |   746 | mycroft.audio.speech:handle_speak:$
Traceback (most recent call last):
  File "/mnt/dietpi_userdata/mycroft-core/mycroft/audio/speech.py", line 95, in$
    mute_and_speak(chunk, ident, listen)
  File "/mnt/dietpi_userdata/mycroft-core/mycroft/audio/speech.py", line 120, i$
    tts.playback.stop()
AttributeError: 'NoneType' object has no attribute 'playback'
2022-02-05 11:39:38.279 | ERROR    |   746 | mycroft.audio.speech:handle_speak:$
Traceback (most recent call last):
  File "/mnt/dietpi_userdata/mycroft-core/mycroft/audio/speech.py", line 95, in$
    mute_and_speak(chunk, ident, listen)

VOICE:

2022-02-05 11:39:22.592 | INFO     |   749 | mycroft.session:get:74 | New Sessi$
2022-02-05 11:39:22.596 | INFO     |   749 | __main__:handle_wakeword:71 | Wake$
Playing WAVE '/mnt/dietpi_userdata/mycroft-core/mycroft/res/snd/start_listening$
2022-02-05 11:39:23.205 | INFO     |   749 | __main__:handle_record_begin:41 | $
2022-02-05 11:39:25.451 | INFO     |   749 | __main__:handle_record_end:49 | En$
2022-02-05 11:39:26.233 | INFO     |   749 | __main__:handle_utterance:76 | Utt$
2022-02-05 11:39:32.872 | INFO     |   749 | __main__:handle_wakeword:71 | Wake$
Playing WAVE '/mnt/dietpi_userdata/mycroft-core/mycroft/res/snd/start_listening$
2022-02-05 11:39:33.275 | INFO     |   749 | __main__:handle_record_begin:41 | $
2022-02-05 11:39:35.585 | INFO     |   749 | __main__:handle_record_end:49 | En$
2022-02-05 11:39:36.228 | INFO     |   749 | __main__:handle_utterance:76 | Utt$

SKILLS:

2022-02-05 11:39:22.603 | INFO     |   743 | TimerSkill | stopping repeating ev$
2022-02-05 11:39:26.285 | INFO     |   743 | Playback Control Skill | Resolving$
2022-02-05 11:39:26.751 | INFO     |   743 | Playback Control Skill |    No mat$
2022-02-05 11:39:32.878 | INFO     |   743 | TimerSkill | stopping repeating ev$
2022-02-05 11:39:36.366 | INFO     |   743 | QuestionsAnswersSkill | Searching $
2022-02-05 11:39:36.386 | INFO     |   743 | WolframAlphaSkill | WolframAlpha q$
2022-02-05 11:39:37.043 | INFO     |   743 | WolframAlphaSkill | Answer: Abraha$
2022-02-05 11:39:37.066 | INFO     |   743 | QuestionsAnswersSkill | Answer fro$
2022-02-05 11:39:38.259 | INFO     |   743 | QuestionsAnswersSkill | Timeout oc$
2022-02-05 11:39:38.264 | INFO     |   743 | QuestionsAnswersSkill | Handling w$
2022-02-05 11:39:40.204 | ERROR    |   743 | fallback-wolfram-alpha_mycroftai.s$
2022-02-05 11:39:40.207 | ERROR    |   743 | mycroft.skills.event_scheduler:on_$
Traceback (most recent call last):
  File "/mnt/dietpi_userdata/mycroft-core/mycroft/skills/mycroft_skill/event_co$
    handler()
  File "/mnt/dietpi_userdata/mycroft-data/skills/fallback-wolfram-alpha.mycroft$
    self.config_core["system_unit"],
  File "/mnt/dietpi_userdata/mycroft-data/skills/fallback-wolfram-alpha.mycroft$