arecord -d 10 sample.wav
Here, this command will record sample.wav as a 10 second wave file.
From,
Here, in arecord, for duration (parameter -d) only second can be used.
But for my project, I need to record for 600 milliseconds or 2700 milliseconds. Here, is there any way to use millisecond or microsecond?
Do I need to modify ALSA code to achieve this?
You need to change arecord's source code (aplay.c
in the alsa-utils package) to change the type and the parsing of the timelimit
variable.