Skip to content

Unable to capture mono (single channel) audio #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
pnbv opened this issue May 13, 2020 · 0 comments
Open

Unable to capture mono (single channel) audio #3

pnbv opened this issue May 13, 2020 · 0 comments

Comments

@pnbv
Copy link

pnbv commented May 13, 2020

After adding sofvol in .asoundrc I can't change channel count from 2 to 1. I get this message from arecord:

$ arecord -D dmic_sv -c1 -r 44100 -f S32_LE -t wav mono audio/test.wav 
Recording WAVE 'mono' : Signed 32 bit Little Endian, Rate 44100 Hz, Mono
arecord: set_params:1270: Broken configuration for this PCM: no configurations available

This is the working .asoundrc file, if change is made here to "channels 1" the above error happens:

#This section makes a reference to your I2S hardware, adjust the card name
# to what is shown in arecord -l after card x: before the name in []
#You may have to adjust channel count also but stick with default first
pcm.dmic_hw {
	type hw
	card sndrpii2scard
	channels 2
	format S32_LE
}

#This is the software volume control, it links to the hardware above and after
# saving the .asoundrc file you can type alsamixer, press F6 to select
# your I2S mic then F4 to set the recording volume and arrow up and down
# to adjust the volume
# After adjusting the volume - go for 50 percent at first, you can do
# something like 
# arecord -D dmic_sv -c2 -r 48000 -f S32_LE -t wav -V mono -v myfile.wav
pcm.dmic_sv {
	type softvol
	slave.pcm dmic_hw
	control {
		name "Boost Capture Volume"
		card sndrpii2scard
	}
	min_dB -3.0
	max_dB 30.0
}

I'm able to record stereo audio with dead right channel, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant