GSM SIM800C文本到语音音频流 [英] GSM SIM800C text to speech audio stream
这就是我必须要做的.
- 开始通话(
ATDxxxxxxxxxxx;
) - 设置模式(
AT + DTAM = 2
) - 开始录制(
AT + CREC = 1,1,0
) - 说出我想在麦克风中播放的内容5.停止录制(
AT + CREC = 2
) - 挂断电话(
ATH
)
现在我可以播放使用以下内容录制的内容
- 开始通话(
ATDxxxxxxxxxxx;
) - 设置模式(
AT + DTAM = 2
) - 开始播放(
AT + CREC = 4,1,0,80
) - 挂断电话(
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.
- Start call (
ATDxxxxxxxxxxx;
) - Set mode (
AT+DTAM=2
) - Start recording (
AT+CREC=1,1,0
) - Speak what I want to playback into microphone
5.Stop recording (
AT+CREC=2
) - Hang up (
ATH
)
Now I can playback what I recorded using the following
- Start call (
ATDxxxxxxxxxxx;
) - Set mode (
AT+DTAM=2
) - Start playback (
AT+CREC=4,1,0,80
) - 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屋!