44100 Hz Sampling Rate Recording?

Is recording at 44100 Hz not supported with PiSound? I’ve tried the following command:

nohup arecord -f S16_LE -c 2 -r 44100 -D hw:1.0 filename.wav > /dev/null 2>&1 &

I always get a wave file at 48000 Hz, not 44100 Hz.

Hi, Pisound natively supports 48000, 96000 and 192000 sampling rates. To get 44100, you can use some software utility to resample the files after recording. If absolutely necessary, there’s software plugins for ALSA that should be able to resample during recording, but I would not recommended it for performance reasons.

Hi!

Any idea how can I add this line to start recording when I press the button on PiSound?
I’ve tried with JACK_CAPTURE but I it doesn’t work, as it automatically quits “terminal” and it won’t run in the background, tried nohup, &, screen etc.

Please help! :smiley:

Thanks!

Use an ALSA software capture device - something like this should work

arecord -f S16_LE -c 2 -r 44100 -D plughw:1,0 > filename.wav

CPU will be higher.