Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3847

Raspberry Pi OS • Resample usb microphone to 3072 from 44100

$
0
0
Hello, im quite new but I'm currently trying to change the sample rate of my USB microphone from 44100 to 3072.
I've tried going through forums to find out but it just wont change my sample rate.
This is my microphone:

Code:

Recording WAVE 'stdin' : Unsigned 8 bit, Rate 8000 Hz, MonoHW Params of device "hw:1,0":--------------------ACCESS:  MMAP_INTERLEAVED RW_INTERLEAVEDFORMAT:  S16_LESUBFORMAT:  STDSAMPLE_BITS: 16FRAME_BITS: 16CHANNELS: 1RATE: [44100 48000]PERIOD_TIME: [1000 1000000]PERIOD_SIZE: [45 48000]PERIOD_BYTES: [90 96000]PERIODS: [2 1024]BUFFER_TIME: [1875 2000000]BUFFER_SIZE: [90 96000]BUFFER_BYTES: [180 192000]TICK_TIME: ALL--------------------arecord: set_params:1343: Sample format non availableAvailable formats:- S16_LE
I need the sample rate to be 3072 for a project I'm working on, and on windows it runs fie at 3072 but resampling through my code currently is not an option. Does anyone know any os configs I should change?

Statistics: Posted by user_25514 — Sat Apr 06, 2024 9:21 pm



Viewing all articles
Browse latest Browse all 3847

Trending Articles