FFMPEG works well, but the suggested arguments do not work. I used:
ffmpeg -f g722 -i input.raw -acodec pcm_s16le -ar 16000 output.wav
Options applying to input files should precede the file name, using .wav
on the output file defines the format.