[AudioI] Fwd: help with arecord on raspberry pi 4 model B

people at lists.audioinjector.net people at lists.audioinjector.net
Tue Mar 17 10:58:08 AEDT 2020


---------- Forwarded message ---------
De: Marcelo Pedro <marcelo.pedro at rute.ai>
Date: seg., 16 de mar. de 2020 às 20:43
Subject: help with arecord on raspberry pi 4 model B
To: <People-request at lists.audioinjector.net>


When I try to record using Audio Injector Zero card with rate of 8000 hz
using "arecord -r 8000" , I get this message on terminal:

Recording WAVE 'stdin' : Unsigned 8 bit, Rate 8000 Hz, Mono
arecord: set_params:1403: Unable to install hw params:
ACCESS:  RW_INTERLEAVED
FORMAT:  U8
SUBFORMAT:  STD
SAMPLE_BITS: 8
FRAME_BITS: 8
CHANNELS: 1
RATE: 8000
PERIOD_TIME: 125000
PERIOD_SIZE: 1000
PERIOD_BYTES: 1000
PERIODS: 4
BUFFER_TIME: 500000
BUFFER_SIZE: 4000
BUFFER_BYTES: 4000
TICK_TIME: 0

Even knowing that I can record on this rate, because of this command
"arecord -D hw:0,0 --dump-hw-params", getting this message:
Recording WAVE 'stdin' : Unsigned 8 bit, Rate 8000 Hz, Mono
HW Params of device "hw:0,0":
--------------------
ACCESS:  MMAP_INTERLEAVED RW_INTERLEAVED
FORMAT:  S16_LE S24_LE S32_LE
SUBFORMAT:  STD
SAMPLE_BITS: [16 32]
FRAME_BITS: [32 64]
CHANNELS: 2
RATE: [8000 96000]
PERIOD_TIME: (333 8192000]
PERIOD_SIZE: [32 65536]
PERIOD_BYTES: [256 524288]
PERIODS: [2 4096]
BUFFER_TIME: (666 16384000]
BUFFER_SIZE: [64 131072]
BUFFER_BYTES: [256 524288]
TICK_TIME: ALL
--------------------
arecord: set_params:1339: Sample format non available
Available formats:
- S16_LE
- S24_LE
- S32_LE

I'm using raspberry pi 4 model B and Raspbian buster with kernel
version 4.19.108-v7l+. Could someone help me please
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.audioinjector.net/pipermail/people/attachments/20200316/bc0044bb/attachment.htm>


More information about the People mailing list