Encoding to G.711 u-law[SOLVED]

Apologies in advance. I searched for similar posts and while I found some, could not get the answers I seek.

I am using Audacity 2.02 on Windows XP and installed via the exe from the Audacity website.

I need to convert files to a specific format for use in a Phone System. The format specifications required are:
Bitrate: 64kbps
Audio Sample Size: 8bit
Channels: 1 (mono)
Audio sample rate: 8khz
Audio format: CCITT u-Law

Currently, I have to edit the tracks in Audacity and export to a standard format (Wav, mp3 doesn’t matter) and then use a second program that converts from that to the required settings. I’m really hoping to do away with that and have it done direct from Audacity.

Now I’ve tried to get this through a number of random-ish export settings with no success so far (I’ve simply tried different combinations that mention u-law.
I’ve also tried using Sox as per a previous forum mentioned, but can’t seem to get the command line right
(If anyone can help with this, I’ve tried multiple variants around: sox --clobber - -e u-law -r 8000 %f but always just get “Cannot export audio to C:Outputtest.wav” C:Output is an existing folder with read&write access)
Also note: I’ve added the sox directory to my path environment, and tested it in a command environment

I think I’ve got the basic parts correct, Converted tracks to Mono, Project rate set to 8000Hz, can’t find somewhere to set Sample size to 8bit, but have “Set Sample Format” to 16bit PCM. Is this the right area and Audacity just doesn’t support 8Bit?

So if anyone can provide steps and advise me the combination of output settings that would match these requirements (Save as type, Header and Encoding Options etc) you would end weeks of frustration for me and have my gratitude.

If it helps anyone, I have attached a known working file. Please don’t judge, it’s the only non-client specific one I could find :blush:

Converted tracks to Mono, Project rate set to 8000Hz, can’t find somewhere to set Sample size to 8bit, but have “Set Sample Format” to 16bit PCM.

File > Export… .
Choose “Other Uncompressed Files”.
Click the “Options…” button.
Choose “WAV (Microsoft)” header.
Choose “U-Law” Encoding (this sets 8-bit).
Click OK.
Name the file.
Click Save.

No need to use SoX.

“Set Sample Format” only affects the track, not the export.


Gale

That was the first option I tried, but must have had another setting wrong somewhere. Have gone back and done it and working now thanks.

I was hoping it was just a noob error on my part.