Looks like you are going to use this RPI4 only for this purpose so this is what I should do;
First, make sure that you use PulseAudio for audio playback. Edit your “/etc/mycroft/mycroft.conf” or “~/.mycroft/mycroft.conf” to add/change to these two lines;
"play_wav_cmdline": "paplay %1"
"play_mp3_cmdline": "mpg123 %1"
Pay good attention on the proper json format, using the comma’s where you should etc.
Then we can also force ALSA userspace to use PulseAudio as well by editting the “/etc/asound.conf” with the following content;
# Use PulseAudio by default
pcm.!default {
type pulse
fallback "sysdefault"
hint {
show on
description "Default ALSA Output (currently PulseAudio Sound Server)"
}
}
ctl.!default {
type pulse
fallback "sysdefault"
}
Now all sound setting are pushed towards PulseAudio. Now it is matter to setup PusleAudio properly similar as the Mark-2 enclosure;
Edit “/etc/pulse/daemon.conf” and at the bottom add the following content;
resample-method = ffmpeg
default-sample-format = s24le
default-sample-rate = 48000
alternate-sample-rate = 44100
Edit “/etc/pulse/default.pa” and at the bottom add the following content;
unload-module module-suspend-on-idle
unload-module module-role-cork
load-module module-role-ducking
That last file is most likely not needed for your issues, but if all works after this, we can easily enable ducking of audio later on.
Give it a go and let us know.