[quote=“david55”]Windows Media Player.
Windows Sound Recorder.
SOX.
I imagine Audacity will.
Actually, I made a mistake in that Asterisk .wav files are actually 16 bit linear. The reason that 64kbps =8 bit by 8kHz came up is that the PSTN doesn’t use linear coding it uses G.711. Sound recorder can definitely convert to RIFF wrapped G.711. I suspect Audacity can.
[root@centos en]# file you-wish-to-join.wav
you-wish-to-join.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 8000 Hz
However, your quality problems are not due to lossy codecs. They are due to gaps in the data stream.
Also, the PSTN audio quality is quite low and mobile phone audio quality is a lot lower, especially for music. VoIP codecs tend to be either near to PSTN or near to mobile phone quality.
Finally, it may be worth noting that the technical figure of merit for VoIP codecs, standardised by ITU(T) isn’t measured by some complex instrumentation, but by collecting statistics on how people think they sound.
Generally, I think you are out of your depth and you need to understand codecs, sound file formats and psycho-acoustics a lot more.[/quote]
Thanks David,
Asterisk’s MOH playable file is exactly mono, 16bit, 8000 Hz and Audacity supports that export format.
Recorded microphone input with audacity and exported as mono, 16bit, 8000 Hz wav file
and Asterisk can play it as MOH.
So a way to build library of wave, audio samples to test quality of audio played by Asterisk MOH is finally open.
Next step is to have audio stream generated and uploaded to local apache server and have Asterisk to play it
as MOH,
to let me set live wave pattern - sine, square, sawtooth, frequency, amplitude.