I am using record function in asterisk AGI and saves output file has a sampling rate of 8k, I would like to get a higher rate at 16k.
I understand that recording sampling rate reflects sampling rate of incoming audio and codec used but I lack understanding of how asterisk manages this and it may be the case of recording system downsampling the audio.
If you have ideas on how to get higher sampling rate implemented I will appreciate it.
Select a 16kHz codec; most are 8kHz (e.g. alaw, mulaw and gsm are all 8kHz). Ensure that is used end to end on the call. Select the file type corresponding to that codec, for the recording.
Sometimes you just need to end up with specific sample rate in the end so there is no need to resample in bulk later.
But I understand and agree that upsampling is not going to give anything, in terms of quality, what it does give is more of the same data by volume and sometimes that is what is needed.