Ok, so I have picroft up and running with the Google AIY Voice kit. The kit uses a hat with a microphone and external speaker. However, the speaker is rather small and I’d like to play music through it.
So I dug out a powered speaker that can plug into the 3.5mm jack on the pi and plugged it in. No sound, so I went through the wizard again and here are the options I’m presented with:
Welcome to Picroft. This image is designed to make getting started with
Mycroft quick and easy. Would you like help setting up your system?
Y)es, I'd like the guided setup.
N)ope, just get me a command line and get out of my way!
Choice [Y/N]: y
**** Checking for updates to Picroft environment
This might take a few minutes, please be patient...
Checking for mycroft-core updates...
=========================================================================
HARDWARE SETUP
How do you want Mycroft to output audio:
1) Speakers via 3.5mm output (aka 'audio jack' or 'headphone jack')
2) HDMI audio (e.g. a TV or monitor with built-in speakers)
3) USB audio (e.g. a USB soundcard or USB mic/speaker combo)
4) Google AIY Voice HAT and microphone board (Voice Kit v1)
5) ReSpeaker Mic Array v2.0 (speaker plugged in to Mic board)
Choice [1-5]:
I chose option 1 for speakers via 3.5mm, but then later, when it got to the mic setup, I could no longer select the “Google AIY Voice HAT” mic input. I only had these options:
The final step is Microphone configuration:
As a voice assistant, Mycroft needs to access a microphone to operate.
Please ensure your microphone is connected and select from the following
list of microphones:
1) PlayStation Eye (USB)
2) Blue Snoball ICE (USB)
3) Matrix Voice HAT.
4) Other USB microphone (unsupported -- good luck!)
I pored over the mycroft.conf file, but I don’t see any explicit mentions of jack, AIY or HAT that might indicate how the inputs and outputs are setup.
Any ideas on how I can use the mic from the Voice Hat, but the 3.5mm jack for output?
Do what @andlo said.
Also raspi-config and force audio through 3.5mm
that is pretty much what audio-setup.sh does but personally find it confuses things so remark out all the settings and just cli amixer commands with a alsactl store to make perm.
Same with /etc/pulse/default.pa where at the end you can set a default source.
Pulseaudio is source, alsa is sink mainly in Mycroft (source = mic / sink = output)
aplay -l
arecord -l
paplay
payrecord
pacmd list-cards
pacmd list-sinks
pacmd list-sources.
If you just do a check that mycroft.conf doesn’t have hardware indexes in it.