Cinterion
®
EHS6 AT Command Set
16.12 AT^SAFH
EHS6_ATC_V03.001 15/12/3
Confidential / Released
Page 408 of 513
3 Stop recording (to internal RAM)
4 Store data from internal RAM to flash file system.
Using the same <audioFilePath> name again will overwrite existing file.
Storing from RAM to FFS can only be done after stopping recording. Otherwise
command will return error.
Audio file path
Parameter is mandatory if <audioFileCmd>=0 (Start playback) or <audioFileCmd>=2 (Start recording).
Please consider that there is only one buffer in RAM available for voice prompts. The RAM may contain either
a voice prompt loaded from the FFS or a recorded voice prompt. Therefore, loading a file from the FFS will delete
a previously recorded voice prompt. Vice versa, recording a voiceprompt first clears the RAM.
The maximum length of the path and file name string is 127 characters.
The maximum size of each AMR file is 64 kBytes including 6 Bytes for the file header.
To select a voice prompt for playback from the FFS the *amr.file must be given as a fully qualified path and file
name (beginning with "a:". Directory separator is ''/'' (002Fh). Example: a:/PATH/TO/VOICEPROMPT/file.amr
To play the voice prompt currently held in the RAM (file loaded from FFS or recorded via AT^SAFH=2), simply
enter quotation marks "".
Status of the requested audio file
0 No error
1Error
Voice prompt handler status
0
(P)
Audio handler is not active
1 Playback of audio file is ongoing
2 Recording of audio file is ongoing
3 Storing AMR file on flash file system is ongoing
Note
• During voice prompt playback it is neither possible to detect nor to buffer DTMF signals (see AT^SIND, "dtmf"
indicator) coming from the network.
Examples
EXAMPLE 1
EXAMPLE 2
<audioFilePath>
(str)
<cmdResult>
(num)
<audioHandlerStatus>
(num)
AT^SAFH=2,"a:/vp/file1.amr"
Start recording an audio file.
^SAFH: 0
No error.
OK
+CIEV: voiceprompt,2
Recording of audio file started.
AT^SAFH=3
Stop recording an audio file.
^SAFH: 0
No error.
OK
+CIEV: voiceprompt,0
Recording has finished.
AT^SAFH=0,"a:/vp/file1.amr"
Select audio file from FFS and start playback.
^SAFH: 0
No error.