On Fri, Jun 05, 2020 at 12:06:54PM +0200, Peter J. Philipp wrote:
> Hi,
> 
> I'm wondering how I can write to stdout on aucat?  Here is what I have:
> 
> beta$ /usr/bin/aucat -r 44100 -h wav -i ewhist2.wav -o - | hexdump -C
> stdout: failed to seek back to header
> beta$ /usr/bin/aucat -r 44100 -h wav -i ewhist2.wav -o /dev/stdout | hexdump -
> /dev/stdout: failed to seek back to header
> 
> It doesn't seem to work for me.  I'm a little distracted too.  Anyone want
> to lift me on their shoulders?
> 
> My intention is to resample input audio to 44100 and output it to a wav.

Hi,

I think you need:

aucat -n -i ewhist2.wav -r 44100 -o ewhist2_44100.wav

If you need to pipe the result to another program, use the raw format, example:

aucat -n -i fanza_mix_ter.wav -r 44100 -o - | lame -r -s 44.1 - ewhist2.mp3

Last point, I'd suggest using audio/sox port to resample files, you'll
get much better quality, example:

sox ewhist2.wav -r 44100 ewhist2_44100.wav

Reply via email to