Unable to record at 2 kHz

Moderator: flatmax

Post Reply
whalechaser
Posts: 6
Joined: Fri May 05, 2017 11:42 pm

Unable to record at 2 kHz

Post by whalechaser » Sun May 07, 2017 12:52 pm

I am attempting to record 1 channel at 2 kHz using arecord and get this error:

pi@raspberrypi:~/Recordings $ Recording WAVE 'stdin' : Unsigned 16 bit Little Endian, Rate 2000 Hz, Mono
arecord: set_params:1233: Sample format non available
Available formats:
- S16_LE
- S24_LE
- S32_LE

Does the board not support lower thank 8 kHz?

flatmax
Posts: 609
Joined: Sat Jul 23, 2016 11:39 pm

Re: Unable to record at 2 kHz

Post by flatmax » Mon May 08, 2017 4:39 pm

Hi there,

You can software resample to get a rate lower then 8 kHZ. Use the dsnoop plugin to reduce the rate below this.

I have tried to use dsnoop at a 2 kHz sample rate. This is what I got :

Code: Select all

pi@raspberrypi:~ $ arecord -Dplug:dsnoop -fS16_LE -r 2000 -c2 /tmp/test.wav
Recording WAVE '/tmp/test.wav' : Signed 16 bit Little Endian, Rate 2000 Hz, Stereo
Warning: rate is not accurate (requested = 2000Hz, got = 4000Hz)
         please, try the plug plugin 
It seems that the software resampler is limited to 4 kHz as the lowest rate.

Hope this helps.
Matt
Check out our audiophile quality crossovers : https://bit.ly/2kb1nzZ
Please review the Zero sound card on Amazon USA : https://www.amazon.com/dp/B075V1VNDD
---
Check out our new forum on github : https://github.com/Audio-Injector

whalechaser
Posts: 6
Joined: Fri May 05, 2017 11:42 pm

Re: Unable to record at 2 kHz

Post by whalechaser » Thu May 11, 2017 3:10 am

Great - this solution did work for recording @ 4 kHz on my Pi, which will be sufficient for my project.

Thank you,

Chris

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests