Re: [LAU] Input to aplay to make a file instead?

From: Lorenzo Sutton <lorenzofsutton@email-addr-hidden>
Date: Sat Apr 18 2020 - 15:27:00 EEST

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@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.
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@lists.linuxaudio.org
https://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Sun Apr 19 04:15:03 2020

This archive was generated by hypermail 2.1.8 : Sun Apr 19 2020 - 04:15:03 EEST