페이지 선택
Generic selectors
Exact matches only
Search in title
Search in content
Search in pages
AT Commands For TTS

  

Command Description
AT+CDTAM TTS play path, local or remote
AT+CTTS TTS operation, play or stop
AT+CTTSPARAM TTS parameters, set or get

 

 

 

 

AT+CDTAM     TTS Play Path, Local Or Remote

 

T) AT+CDTAM=?

+CDTAM: (0-1)

 

OK

R) AT+CDTAM?

+ CDTAM: <status>

 

OK

W) AT+CDTAM=<mode>

+CDTAM:

 

OK

or

ERROR

Parameter Saving Mode
Maximum Response Time
Reference
 

 

<status>

Indicate play path, play TTS to local or play to remote.

0 – Local path

1 – Remote path

<mode>

Set TTS play path, local or remote.

Default value is 0.

0 – Local path

1 – Remote path

 

 

Example

AT+CDTAM=1

+CDTAM:

 

OK

 

 

 

 

AT+CTTS     TTS Operation, Play Or Stop

 

T) AT+CTTS=?

OK

R) AT+CTTS?

+CTTS: <status>

 

OK

W) AT+CTTS=<mode>[,<text>]

If <mode>is 0 , then <text> is not required.

When TTS is playing, return:

+CTTS:0

OK

 

If <mode>is 0,then <text> is not required.

When TTS is not playing, return:

OK

 

If <mode>is 1 or 2,then <text> is must be required.

return:

OK

+CTTS:0

or

ERROR

W) AT+CTTS=<mode>[,<text>][,<filename>]

If <mode>is 3 or 4,then <text> and <filename> are must be required.

return:

OK

 

+CTTS:0

or

ERROR

Parameter Saving Mode
Maximum Response Time
Reference
 

 

<status>

Indicate playing thread status.

Default value is 0

0 – NO_WORKING

1  – PLAY_WAV_WORKING

2  – AMR_WORKING

3  – MP3_WORKING

4  – AAC_WORKING

5  – WAV_WORKING

6  – TTS_WORKING

8 – CREC_WORKING

<mode>

Stop or play TTS.

0 – Stop TTS

1  – <text> is in UCS2 coding format.

        Start to synth and play

2  –<text> is in ASCII coding format for English, Chinese text is in GBK coding format.

        Start to synth and play

3  – <text> is in ASCII coding format for English, Chinese text is in GBK coding format.

        Start to synth and play, and save pcm data as wav file.

4 – <text> is in UCSII coding format .

        Start to synth and play, and save pcm data as wav file.

<filename> Location and filename for wav file

 

NOTE

<text>, which is synthetized to speed to be played, maximum data length is 512 bytes. (including “”)

<filename>,The file should be put into the “E:/filename.wav”. Maximum filename length is 240 bytes. (including “”)

 

Example

AT+CTTS=1,”6B228FCE4F7F75288BED97F3540862107CFB7EDF”

OK

 

+CTTS:0

 

AT+CTTS=3,”欢迎使用语音合成系统“,”E:/tts.wav”

OK

 

+CTTS:0

 

AT+CTTS=0

OK

 

+CTTS:0

 
 

 

 

AT+CTTSPARAM     TTS Parameters, Set Or Get

 

T) AT+CTTSPARAM=?

+CTTSPARAM: (0-2), (0-3),(0-3),(0-2),(0-2)

 

OK

R) AT+CTTSPARAM?

+CTTS: <volume>,<sysvolume>,<digitmode>,<pitch>,<speed>

 

OK

W) AT+CTTSPARAM=<volume>[,<sysvolume>

[,<digitmode>[,<pitch>[,speed>]]]

OK

or

ERROR

Parameter Saving Mode
Maximum Response Time
Reference

 

 

<volume>

TTS Speech Volume, default:2.

0  – The mix volume

1  – The normal volume

2 – The max volume

<sysvolume>

The module system volume, default:3.

0 – The mix system volume

1  – The small system volume

2  – The normal system volume

3 – The max system volume

<digitmode>

The digit read mode, default:0

0 – Auto read digit based on number rule first.

1 – Auto read digit bases on telegram rule first.

2 – Read digit based on telegram rule.

3 – Read digit based on number rule.

<pitch>

The voice tone, default:1

0  – The mix voice tone.

1  – The normal voice tone.

2 – The max voice tone.

<speed>

The voice speed, default:1

0  – The mix speed

1  – The normal speed

2 – The max speed

 

NOTE

<sysvolume>, It takes no effect to set <sysvolume>,reserved at present

 

Example

AT+CTTSPARAM=1,3,0,1,1

 

OK

 

Adsense

EMW3070

Viewed Page List