Arduino Forum

Products => Arduino GSM Shield => Topic started by: Kingtak on May 02, 2019, 06:46 pm

Title: Play .amr audio file in voice call with a6 mini gsm module
Post by: Kingtak on May 02, 2019, 06:46 pm

I want to play an .amr file with A6 mini GSM Module. In the datasheet of A6 GSM module it is noted that this module supports digital audio and analog audio, supports HR, FR, EFR, AMR voice coding. I want to know if I can make a voice call using this module and play a pre-recorded audio file instead of plugging the microphone? Can I store the audio file to the flash buffer of this module?

Is there an AT Command to do this? How can I do this?
Title: Re: Play .amr audio file in voice call with a6 mini gsm module
Post by: SupArdu on Jun 01, 2019, 09:14 pm
hi,
I have a project with a SIM900 module playing voice data from a file to the analog microphone input of the SIM module.
I don't know the A6 mini GSM Module, but the principle should be the same.
- waiting for a phone call to come in
- playing the .amr audio file **
- closing the phone call

** For sending audio data to the SIM module I used PWM lacking an analog output on my controller. Of course with an analog output from a DA-converter the audio quality would be much better.

If you want to use digital audio you have to generate the format on your controller which the SIM module understands.
Title: Re: Play .amr audio file in voice call with a6 mini gsm module
Post by: Kingtak on Jun 20, 2019, 06:04 pm
hi SupArdu,
I'm haven't problem with the sim800/sim900 module. through this tutorial (https://github.com/martinhol221/SIM800L_DTMF_control/wiki/Loading-ARM-audio-files-in-the-SIM800L-modem) I can upload an audio file to sim800 module and play it during a voice call.
I want to know if it is possible to do the same on A6 mini module? (upload and play a pre-recorded audio file during voice call?)

Title: Re: Play .amr audio file in voice call with a6 mini gsm module
Post by: Kingtak on Jun 20, 2019, 06:11 pm
** For sending audio data to the SIM module I used PWM lacking an analog output on my controller. Of course with an analog output from a DA-converter the audio quality would be much better.

If you want to use digital audio you have to generate the format on your controller which the SIM module understands.
Is there any tutorials to learn about this method?I use an atmega328p microcontroller. How do I upload a sound file to a microcontroller and play it on  A6 module during the call?