You can try setting the sampling rate and bit rate. Amr only supports a sampling frequency of 8000 Hz and a data transfer rate of 4.75 thousand, 5.15 thousand, 5.9 thousand, 6.7 thousand, 7.4 thousand, 7.95 thousand, 10.2 thousand or 12.2 thousand bits:
ffmpeg -i testwav.wav -ar 8000 -ab 12.2k audio.amr
Radu gasler
source share