I tried to send a voice message through open AT application via GSM modem (FASTRACK XTEND)? I heard bad quality voice (voice + noise), i use a signal of 8k 16 bits, do you know what could be the problem?
I receive my samples from an external application, i store them in a Buffer and my code is roughly the same as the example indicated in ADL USER GUIDE :
// Subscribe to the current speaker
handle = adl_audioSubscribe ( ADL_AUDIO_SPEAKER, MyAudioEventHandler ,
ADL_AUDIO_RESOURCE_OPTION_FORBID_PREEMPTION );
// Memory allocation
Ret = adl_audioGetOption ( handle,
ADL_AUDIO_PCM_8K_16B_MONO_BUFFER_SIZE, &BufferSize )
StreamBuffer = adl_memGet( BufferSize ); // release memory after
audio stream playing
// Play an audio PCM stream
Ret = adl_audioStreamPlay( handle, ADL_AUDIO_PCM_MONO_8K_16B
MyLowLevelIRQHandler, 0, StreamBuffer);
}
Stream to play (StreamBuffer) is provided from an external application by using FCM, what i receive i store it in StreamBuffer, after that i pass StreamBuffer to the Low level interrupt handler to play the stream, no special code added that could change something to the signal.