Re: Input to aplay to make a file instead?

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

 



Sat, 18 Apr 2020 09:50:30 +0100 - John Murphy <rosegardener@xxxxxxxxxxxxx>:

> I use a program which plays regions of various .wav files. Its
> output pipes into aplay like: '| aplay -f FLOAT_LE -c 2 -r 48000'
> 
> To where can I pipe its output, instead, to make a new .wav file,
> or make a compressed file? Preferably faster than the region(s)
> take to play.
> 
> Or, if not, make aplay write to a file instead of playing?
> 
> Thank you.


Use sox:

sox source.wav -L -c 2 -r 48000 new.wav trim <start_second> <duration_seconds>

where:

-L : little endian
-c 2 : 2-channels stereo
-r 48000 : freq (Hz)
<start_second> : region start (second)
<duration_seconds> : region duration (seconds)

Regards





-- 
al3xu5

Say NO to copyright, patents, trademarks and any industrial design restrictions.
________________________________________________________________________________
Public GPG/PGP key
ID:           4096 bit RSA key F94CFE23
Fingerprint:  59C6 9DC7 CD4B CF2F A190  E3DE 69C5 977B F94C FE23

Attachment: pgpE9GGwQtyPc.pgp
Description: Firma digitale OpenPGP

_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@xxxxxxxxxxxxxxxxxxxx
https://lists.linuxaudio.org/listinfo/linux-audio-user

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

  Powered by Linux