Menu

#197 SetRecordingDurationBySox

open
nobody
None
5
2025-11-24
2014-12-08
mana
No

Hi, I have a question regarding recording with sox in Windows command line, I wonder how I can set the duration of recording sound file in wav format, Is there any flag for that? i.e. I want the record to get done after the duration is over, instead of killing the process by taskkill command.

Thanks in advance for your help

Discussion

  • mana

    mana - 2014-12-08

    There is a problem killing the sox process remotely from windows command line. When I kill the process remotely, it sets the wrong riff header for the wav file, for instance, the actual size is 3Mb but it sets the size in header to 3TB. I tried out :

    Pskill sox
    taskkill /IM sox.exe

    but none of them works.

    That is the reason I resorted to set the duration for sox recording in order to make the recording stop when the time is over instead of killing the process.
    It does not make any difference for me, either of them works, I apply that approach.
    Please inform me if you have any suggestion for any of them.

     
  • Martin Guy

    Martin Guy - 2025-11-24

    rec audio.wav trim 0 30:00 should record exactly half an hour of sound

     

Log in to post a comment.

MongoDB Logo MongoDB