페이지 선택
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in pages
AT Commands For AUDIO

  

No Command Description
L2101 AT+CREC Record wav audio file
L2102 AT+CRECAMR Record amr audio file
L2103 AT+CCMXPLAYWAV Play wav audio file
L2104 AT+CCMXSTOPWAV Stop playing wav audio file
L2105 AT+CCMXPLAY Play audio file
L2106 AT+CCMXSTOP Stop playing audio file

 

 

 

 

L2101   AT+CREC     Record Wav Audio File

 

R) AT+CREC?

+ CREC: <status>

 OK

W) AT+CREC=<record_path>,<filename>

+CREC:1

OK

or

ERROR

W) AT+CREC=<mode>

+CREC:0

OK

+RECSTATE: crec stop

 

<status>

Indicate whether the recording is going on.

0     free, not recording

1     busy, recording

<record_path>

Source of recorded sound

1     local path

2     remote path

3     local and remote sound mixing

<filename> The location and name of wav file.
<mode>

Stop recording wav audio file

0     stop

 

 

NOTE

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

Only during the call, <record_path> can be set to 2 or 3

 

Example

AT+CREC=1,”e:/rec.wav”

+CREC:1

OK

AT+CREC=0

+CREC:0

OK

+RECSTATE: crec stop

 

 

 

 

L2102   AT+CRECAMR      Record Amr Audio File

 
R) AT+CRECAMR?

+ CRECAMR: <status>

 OK

W) AT+CRECAMR=<record_path>,<filename>

+CRECAMR:<status>

OK

or

ERROR

W) AT+CRECAMR=<mode>

+CRECAMR:<status>

OK

+RECSTATE: crecamr stop

 

<status>

Indicate whether the recording is going on.

0     free, not recording

1     busy, recording

<record_path>

Source of recorded sound

1     local path

2     remote path

<filename> The location and name of amr file.
<mode>

Stop recording wav audio file

0     stop

 

NOTE

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

Only during the call, <record_path> can be set to 2

 

Example

AT+CRECAMR=1,”e:/rec.amr”

+CRECAMR:1

OK

AT+CRECAMR=0

+CRECAMR:0

OK 

+RECSTATE: crecamr stop

 

 

 

 

 

L2103   AT+CCMXPLAYWAV     Play Wav Audio File

 

R) AT+CCMXPLAYWAV?

+CCMXPLAYWAV:<play_path>,<repeat>

 OK

W) AT+CCMXPLAYWAV=<filename>,<play_path>[,<repeat>]

+WAVSTATE: wav play

OK

+WAVSTATE: wav play stop

or

ERROR

  

<play_path>

Play to local or to remote.

1     remote

2     local

<repeat>

How much times can be played.

Default     0

<filename> The location and name of wav file.

 

 

NOTE

<filename>,The wav audio file should be located at “E:/”. Maximum filename length is 240 bytes. (including “”) <play_path>,

Only during the call, <play_path> can be set to 1 successfully.Only 8k 16bit wav audio can be played to remote successful at present.

<repeat>,This parameter is reserved, not used at present, you can input this parameter or not. (0–255)

 

Example

AT+CCMXPLAYWAV=?

+CCMXPLAYWAV: (1-2),(0-255)

OK

 

AT+CCMXPLAYWAV=”E:/rec.wav”,2

+WAVSTATE: wav play

OK

 

+WAVSTATE: wav play stop

 

 

 

 

L2104   AT+CCMXSTOPWAV     Stop Playing Wav Audio File

 

R) AT+CCMXSTOPWAV=? OK
W) AT+CCMXSTOPWAV

+CCMXSTOPWAV:

OK

+WAVSTATE: wav play stop

 

 

Example

AT+CCMXSTOPWAV

+CCMXSTOPWAV:

OK

 +WAayVSTATE: wav pl stop

 

 

 

 

L2105   AT+CCMXPLAY     Play Audio File

 

R) AT+CCMXPLAY?

+CCMXPLAY:<play_path>,<repeat>

 OK

W) AT+CCMXPLAY=<filename> [,<play_path>][,<repeat>]

+CCMXPLAY:

OK

+AUDIOSTATE: audio play

+AUDIOSTATE: audio play stop

or

ERROR

or

+CCMXPLAY:

OK

+AUDIOSTATE: audio play

+AUDIOSTATE: audio play error

  

<play_path>

Play to local or to remote. Default 0

0     local

1     remote

<repeat>

How much times can be played.

Default     0

<filename> The location and name of wav file.

 

NOTE

<filename>,The wav audio file should be located at “E:/”. Maximum filename length is 240 bytes. (including “”).

Support audio file format mp3, aac, amr, wav. <play_path>,

Only during the call, <play_path> can be set to 1 successfully.Only 8k 16bit wav audio and amr audio can be played to remote at present.

<repeat>,This parameter is reserved, not used at present, you can input this parameter or not. (0–255)

 

 

Example

AT+CCMXPLAY=?

+CCMXPLAY: (0-1),(0-255)

OK

AT+CCMXPLAY=”E:/rec.mp3”,0,0

+CCMXPLAY:

OK

 +AUDIOSTATE: audio play

 +AUDIOSTATE: audio play stop

 

 

 

 

L2106   AT+CCMXSTOP     Stop Playing Audio File

 

R) AT+CCMXSTOP=? OK
W) AT+CCMXSTOP

+CCMXSTOP:

OK

+AUDIOSTATE: audio play stop

 

 

Example

AT+CCMXSTOP

+CCMXSTOP:

OK

 +AUDIOSTATE: audio play stop

 

 

 

 

 

 

Adsense

 

 WiFi IoT Module

 

www.mxchip.com

 

 

 Bluetooth Module

www.feasycom.com

 

 

 5G/LTE/CAT-M1/NB-IoT/GNSS

 

www.simcom.com

 

Viewed Page List