On Mon, Dec 08, 2008 at 11:20:56PM +0200, Pekka Niiranen wrote:
>
> I obviously do not understand enough of audio processing to be able to
> understand the manuals. Why is mono 8kHz ulaw chopping the sound,
> for example.
>
> When I run command:
>
>       aucat sound440.au
>       aucat: format not supported by /dev/audio
>

that's because your /dev/audio doesn't support ulaw format. Without
the -i option, aucat switches to legacy mode which tries to use
ulaw encoding. We're abondoning this format. There's no emulation
code for it in aucat, and there are no plans for it.

> I do get longer sound. However, it has not the correct pitch nor
> the duration. I was hoping to start the playing from Python script with
>
>       os.system("aucat sound440.au)
>
> I will try to find another commandline player or try to change
> from the format *.au to something else.
>

yes, that's the best to do imo. You can use audio/sox from ports
(or any other utility) to change the file format; 8kHz, signed
16bit format should be ok.

If you care about portability across architectures, you can choose
a byte order and stick to it, for instance if you choose little
endian:

        aucat -r 8000 -e s16le -c 0:0 -i sound440.raw

should play it properly on all archs.

-- Alexandre

Reply via email to