|
From: <pf...@fa...> - 2015-12-11 18:12:35
|
Hello List I have a high sample rate (250 khz) USB microphone. I've tried to record from it using matlab, audacity and the command tool arecord. However, to no avail. All these tools return the same error: the sample rate is wrong. However, using sox, I can record without problems. Generating a spectrogram from sound with a known frequency confirms that the sample rate is indeed 250khz - also the files contain (give or take some samples) the correct number of samples. So, my question is, why can i record using sox but not any of the other tools. In case it helps, I have attached the sox output below. Best Peter ---------------- rec: SoX v14.4.1 Input File : 'hw:2,0' (alsa) Channels : 1 Sample Rate : 250000 Precision : 16-bit Sample Encoding: 16-bit Signed Integer PCM Endian Type : little Reverse Nibbles: no Reverse Bits : no rec INFO sox: Overwriting `test.wav' Output File : 'test.wav' Channels : 1 Sample Rate : 250000 Precision : 16-bit Sample Encoding: 16-bit Signed Integer PCM Endian Type : little Reverse Nibbles: no Reverse Bits : no Comment : 'Processed by SoX' rec INFO channels: has no effect in this configuration rec INFO sox: effects chain: input 250000Hz 1 channels rec INFO sox: effects chain: highpass 250000Hz 1 channels rec INFO sox: effects chain: vol 250000Hz 1 channels rec INFO sox: effects chain: spectrogram 250000Hz 1 channels rec INFO sox: effects chain: dither 250000Hz 1 channels rec INFO sox: effects chain: output 250000Hz 1 channels In:0.00% 00:00:04.33 [00:00:00.00] Out:1.07M [ | ] Clip:0 ^C Aborted. |