Changing speaker/microphone output/input volume from the command line in linux.
Posted: Mon Feb 04, 2019 7:14 pm
Hello Everyone,
Has anyone able to change the microphone and speaker volume from the command line or a C/C++ program in Linux using the XK-VF3100-C43 development board preferable with ALSA (amixer)?
OS: Ubuntu 16.04 x64
Advanced Linux Sound Architecture Driver Version k4.4.0-137-generic
amixer version 1.1.0
I have been able to get it working though the GUI, but I need to be able to control it within my program and I can not seem to figure out the correct ALSA commands to make it work.
Here is what the sound menu looks like in Ubuntu and I am able to control the volume up and down through the slider bar here just fine for both the speaker and microphone: Here is what alsa displays as my sound cards and XMOS is in the list: I am able to play audio out of the development kit just fine using this command:
aplay -D plughw:2,0 /usr/share/sounds/alsa/Front_Center.wav
Alsamixer does not seem to list any controls for the XMOS chip: What I can't seem to do is recreate what they are doing in the GUI to adjust the volume on the command line. I want to be able to do something like "amixer set Master %50" but this command does not seem to have an effect on the speaker output.
Anyone been able to control volume from the command line or through there own software in Linux?
Thank you
Has anyone able to change the microphone and speaker volume from the command line or a C/C++ program in Linux using the XK-VF3100-C43 development board preferable with ALSA (amixer)?
OS: Ubuntu 16.04 x64
Advanced Linux Sound Architecture Driver Version k4.4.0-137-generic
amixer version 1.1.0
I have been able to get it working though the GUI, but I need to be able to control it within my program and I can not seem to figure out the correct ALSA commands to make it work.
Here is what the sound menu looks like in Ubuntu and I am able to control the volume up and down through the slider bar here just fine for both the speaker and microphone: Here is what alsa displays as my sound cards and XMOS is in the list: I am able to play audio out of the development kit just fine using this command:
aplay -D plughw:2,0 /usr/share/sounds/alsa/Front_Center.wav
Alsamixer does not seem to list any controls for the XMOS chip: What I can't seem to do is recreate what they are doing in the GUI to adjust the volume on the command line. I want to be able to do something like "amixer set Master %50" but this command does not seem to have an effect on the speaker output.
Anyone been able to control volume from the command line or through there own software in Linux?
Thank you