Recording via python with Sample Rate over 16Khz

info about ReSpeaker series products

Moderators: lily.li, violet, seth.welday

Post Reply
davidpodless
Pre-kindergarten
Pre-kindergarten
Posts: 4
Joined: Mon Dec 10, 2018 5:48 pm

Recording via python with Sample Rate over 16Khz

Post by davidpodless » Mon Dec 10, 2018 5:52 pm

Hi,
In the specifications of v2, it says that the max sample rate of the ReSpeaker is 48Khz.
I tried to do it in python and it sent me an error.
What parameter should I send in order to record at 44 or 48Khz?
thanks

davidpodless
Pre-kindergarten
Pre-kindergarten
Posts: 4
Joined: Mon Dec 10, 2018 5:48 pm

Re: Recording via python with Sample Rate over 16Khz

Post by davidpodless » Wed Jan 30, 2019 4:16 pm

Hi, I didn't received any answer regrading this issue.
Can I record in higher rate than 16kHz in the ReSpeaker Mic Array v2.0?
In your site you say the max rate is 48kHz but python send an error "OSError: [Errno -9997] Invalid sample rate" for the following rates: 44000, 44100, 48000.
So, what is the max record sample rate that I can record at, and what is the parameter I need to enter in order to record in that max sample rate.
best regards
davidpodless

bill.yu
Junior-6
Junior-6
Posts: 691
Joined: Mon Apr 02, 2018 11:05 am

Re: Recording via python with Sample Rate over 16Khz

Post by bill.yu » Fri Feb 01, 2019 6:08 pm

HI David,

If you want to use 48Khz, please burn the 48k_1_channel_firmware.bin or 48k_6_channel_firmware_6.02dB.bin firmwares first. Here is the detail instructions.

sudo apt-get update
sudo pip install pyusb click
git clone https://github.com/respeaker/usb_4_mic_array.git
cd usb_4_mic_array
sudo python dfu.py --download 48k_1_channel_firmware.bin


For more info, please refer to https://github.com/respeaker/usb_4_mic_array thanks.

Post Reply