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

 

  

No Command Description
F2301 AT+CREC Record wav audio file
F2302 AT+CRECAMR Record amr audio file
F2303 AT+CCMXPLAY Play audio file
F2304 AT+CCMXSTOP Stop playing audio file

 

 

 

 

F2301   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

 

 

 

 

F2302   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

or

+CRECAMR: <status>

 OK

or

ERROR

 

<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

 

 

 

 

 

 

 

F2303   AT+CCMXPLAY     Play Audio File

 

T) AT+CCMXPLAY=?

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

 OK

R) AT+CCMXPLAY?

+CCMXPLAY: <status>

 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

or

ERROR

 +CCMXPLAY: not enough space to play

  

<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.
<status>

Indicate playing thread status. Default value is 0

0      idle

1      busy, playing

 

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

 

 

 

 

 

F2304   AT+CCMXSTOP     Stop Playing Audio File

 

T) 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

 

www.simcom.com

 

Viewed Page List