If you want to change your playback / recording device (also because the default setting doesn't work for you), you can do that in the configuration file. If you installed into /opt
as recommended, it is /etc/opt/AlexaPi/config.yaml
. If you installed elsewhere, the file config.yaml
is in your AlexaPi/src
directory.
You may need to adjust the volume and/or input gain for the microphone, you can do this with alsamixer
.
Once the adjustments have been made, you can save the settings using alsactl store
.
- To test playback, run
aplay /usr/share/sounds/alsa/Front_Center.wav
- To rest recording, run
arecord -f S16_LE -r 16000 -D plughw:CARD=CameraB409241,DEV=0 test.wav
- exit with CTRL+C andaplay -f S16_LE -r 16000 test.wav
to play
If you get null responses, you might wanna check the sound AlexaPi records. First, run in the Debug mode and then check the directory /tmp/AlexaPi-runtime-xxx
(where xxx is some random string) for the file recording.wav
. This has to be played with special aplay
settings:
aplay -r 16000 -f S16_LE recording.wav