Courtesy of https://github.com/FutureProofHomes/wyoming-enhancements/blob/master/snapcast/docs/2_install_pulseaudio.md with now major modifications
ssh <your_username>@<pi_IP_address>2. If already installed Disable/Stop the entire the Linux Voice Assistant service temporarily. If not installed, proceed to step (3.):
sudo systemctl disable --now linux-voice-assistant.servicesudo apt-get update
sudo apt-get install \
pulseaudio \
pulseaudio-utils \
pamixersudo reboot -h now6. (OPTIONAL) If plugging speakers into the headphone jack of the ReSpeaker, set the correct PulseAudio Sink Port:
Run pactl list sinks and scroll to the bottom and notice your Active Port is probably "analog-output-speaker". Run the command below to output audio through the 3.5mm headphone jack.
pactl set-sink-port 1 "analog-output-headphones"Please note that if you are setting this up on a Raspberry Pi 3B or 4B, you need an additional step at this point to make it route the audio through the 2mic hat (and likely the 4mic one as well). Run the following command to do this.
pactl set-default-sink alsa_output.platform-soc_sound.stereo-fallbackNote that if you have a Raspbery Pi 3B or 4B, this may or may not seem to work, but it will output on the hat as intended.
Test mpv can ouput to PA with current configs:
mpv --ao=pulse --audio-device=default --audio-samplerate=44100 /usr/share/sounds/alsa/Front_Center.wavIf volume is low, set it to 100% for the ReSpeaker 2-Mic HAT v1 and at least 200% for the v2.
ReSpeaker 2-Mic HAT v1:
pactl set-sink-volume alsa_output.platform-soc_sound.stereo-fallback 100%ReSpeaker 2-Mic HAT v2 (apparently low audio output is a known issue):
pactl set-sink-volume alsa_output.platform-soc_sound.stereo-fallback 200%