Re: sox can't encode to 16-bit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Toru Yagi <yagitohru@xxxxxxxxxxx> writes:

> Hi all, 
>
> I'm trying to record by sox, splitting the input to multiple files: 
>
> $ sox --version 
> sox:      SoX v14.4.1 
>
> $ rec -c 2 -b 16 -r 48000 -p trim 0 20 | 
> sox -V3 -c 2 -b 16 -r 48000 -p test.wav trim 0 10 : newfile : restart 
>
> I want to record 16-bit wav files, but the files generated are 32-bit ones. 

Put the "-b 16" option immediately before the output file argument.  You
can also drop all the format options preceding the -p since the pipe
format already includes all information.

That said, why don't you do the splitting directly with the rec command?
This should work:

$ rec -c 2 -b 16 -r 48000 test.wav trim 0 10 : newfile : restart

-- 
Måns Rullgård


_______________________________________________
Sox-users mailing list
Sox-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/sox-users




[Index of Archives]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux