GSM SIM800C文本到语音音频流 [英] GSM SIM800C text to speech audio stream

查看:109
本文介绍了GSM SIM800C文本到语音音频流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有解决方案

这就是我必须要做的.

  1. 开始通话( ATDxxxxxxxxxxx; )
  2. 设置模式( AT + DTAM = 2 )
  3. 开始录制( AT + CREC = 1,1,0 )
  4. 说出我想在麦克风中播放的内容5.停止录制( AT + CREC = 2 )
  5. 挂断电话( ATH )

现在我可以播放使用以下内容录制的内容

  1. 开始通话( ATDxxxxxxxxxxx; )
  2. 设置模式( AT + DTAM = 2 )
  3. 开始播放( AT + CREC = 4,1,0,80 )
  4. 挂断电话( ATH )

不知道如何动态执行此操作,甚至不上传* .amr文件.

如果您能分享以前使用的命令来查看是否有任何改进的方法,将不胜感激.

I have this USB-to-GSM Serial-GPRS-SIM800C module and I have successfully been able to send AT commands to it and do stuffs, but what I really wanted was Text to speech capabilities, I was able to generate an AMR audio file, upload it unto the module's internal memory and play it whenever some one calls.

But the message heard by caller's is going to be dynamic and TTS will run realtime, so the uploading process of the audio file into the module will cause undesirable delay, is there any way I could stream some audio through the module?

Thanks.

解决方案

Here's what I have had to do.

  1. Start call (ATDxxxxxxxxxxx;)
  2. Set mode (AT+DTAM=2)
  3. Start recording (AT+CREC=1,1,0)
  4. Speak what I want to playback into microphone 5.Stop recording (AT+CREC=2)
  5. Hang up (ATH)

Now I can playback what I recorded using the following

  1. Start call (ATDxxxxxxxxxxx;)
  2. Set mode (AT+DTAM=2)
  3. Start playback (AT+CREC=4,1,0,80)
  4. Hang up (ATH)

No idea how to do this dynamically or even upload an *.amr file.

Would be grateful if you could share what commands you used to see if there's any way to improve.

这篇关于GSM SIM800C文本到语音音频流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆