On 18/04/2020 14:20, John Murphy wrote:
On Sat, 18 Apr 2020 11:53:35 +0100 Bill Purvis wrote:
> On 18/04/2020 11:05, John Murphy wrote:
>> On Sat, 18 Apr 2020 09:55:12 +0100 Will Godfrey wrote:
>>
>>> On Sat, 18 Apr 2020 09:50:30 +0100
>>> John Murphy <rosegardener(a)freeode.co.uk> wrote:
>>>
>>>> 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'
[...]
SoX can be used in simple pipeline operations by using
the special filename
`-' which, if used as an input filename, will cause SoX will read audio data
from `standard input' (stdin)
Can't quite do it though. aplay gets -f FLOAT_LE -c 2 -r 48000 I've tried:
| sox -t raw -r 48k -c 2 -L -e float - dump-SOX-test.wav
sox FAIL formats: bad input format for `-': data encoding or sample size was not
specified
| sox -t wavpcm -r 48k -c 2 -L -e float - dump-SOX-test.wav
sox FAIL formats: can't open input `-': WAVE: RIFF header not found
I'm guessing though really.
Have you tried directly with the trim and/or splice commands SoX
provides to extract the audio regions of the original file?
Lorenzo.