Hi, I have a Matrix Voice and I plan to use it to create my own alexa smart speaker. Can you please tell me how to control the volume using the alsa mixer as it does not appear there.
Thanks.
Peter
Hi, I have a Matrix Voice and I plan to use it to create my own alexa smart speaker. Can you please tell me how to control the volume using the alsa mixer as it does not appear there.
Thanks.
Peter
Hi @pjtewkesbury. You should be able to use the following command to raise or lower the audio output.
# Raise Volume To 100%
amixer set PCM 100%
Hi,
I have tried this, but the volume from my speakers remains the same. I am using aplay -D “hw:2,1” ./audio-sample.wav as listed in other posts.
amixer set PCM 1%
Simple mixer control ‘PCM’,0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback -10239 - 400
Mono: Playback -10132 [1%] [-101.32dB] [on]
But the volume from the Matrix Voice headphone jack remains at the same level
Peter
We’re still working on configuring the hardware volume directly into the MATRIX kernel modules. However, you can try following the instructions below for a basic implementation. This configuration is still being tested.
To raise or lower the MATRIX audio jack output, you will have to overwrite
/etc/asound.conf
with
pcm.!default {
type asym
playback.pcm {
type plug
slave.pcm "speaker-softvol"
}
capture.pcm {
type plug
slave.pcm "mics-softvol"
}
}
pcm.speaker-softvol {
type softvol
slave {
pcm "voice-audio-jack"
}
control {
name "Audio Jack Output"
card 2
device 1
}
}
pcm.mics-softvol {
type softvol
slave {
pcm "voice-mics"
}
control {
name "Microphone Array"
card 2
device 0
}
}
pcm.voice-audio-jack {
type plug
slave {
pcm "hw:2,1"
}
}
pcm.pi-audio-jack {
type plug
slave {
pcm "hw:0,0"
}
}
pcm.voice-mics {
type plug
slave {
pcm "hw:2,0"
}
}
arecord -Dmics-softvol -f dat ./rec-test.wav -d 1
aplay -Dspeaker-softvol ./rec-test.wav
rm ./rec-test.wav
amixer -c 2 set 'Audio Jack Output' 100%
Let us know if you experience any issues or have any more questions.
Hi,
Sorry for the delay in this reply. It all seems to work.
Thanks for your help.
Peter