
2.0 Software
(Continued)
Example
S
Byte sequence:
Microcontroller
00
CompactSPEECH 00
Description:
Stop current activity (e.g., playback,
recording) and put the CompactSPEECH
in
IDLE
state.
SAS
Say Argumented SentencesentenceDn arg
Announces sentence number sentenceDn of the currently
selected vocabulary, and passesarg to it.sentenceDn and
arg are each 1-byte long.
When playing is complete, the CompactSPEECH sets the
EVDNORMALDEND bit in the status word, and activates
the MWRQST signal.
If the current vocabulary is undetermined, ERRDINVALID is
reported.
Example
SAS 00 03
Byte sequence:
Microcontroller
1E 00 03
CompactSPEECH 1E 00 03
Description:
Announce the first sentence in the
sentence table of the currently selected
vocabulary with ‘‘3’’ as the actual
parameter.
SB
Skip BackwardtimeDlength
Skips backward in the current message timeDlength units,
each of 0.2s duration, and causes message playback to
pause. timeDlength is a 2-byte parameter that can have
any value up to 320, i.e., 64s. The skip accuracy is 5%. This
command is meaningful only in the
PLAY
state. The RES
command must be issued to continue playback.
If the beginning of the message is detected, during execu-
tion of the SB command, execution is terminated, the EVD
NORMALDEND bit in the status register is set, the
MWRQST signal is activated, and the CompactSPEECH
switches to the
IDLE
state.
If timeDlength is greater than 320, ERRDPARAM is set in
the error word.
Playback speed does not affect the behavior of this com-
mand.
Example
SB 19
Byte sequence:
Microcontroller
23 00 19
CompactSPEECH 23 00 19
Description:
Skip back five seconds from the current
position in the message being played.
SDET
Set Detectors MaskdetectorsDmask
Controls the reporting of detection for tones and VOX ac-
cording to the value of the detectorsDmask parameter. A
bit set to 1 in the mask, enables the reporting of the corre-
sponding detector. A bit cleared to 0 disables the reporting.
Disabling reporting of a detector does not stop or reset the
detector.
The 1-byte detectorsDmask is encoded as follows:
Bit 0
Report detection of a busy tone.
Bit 1
Report detection of a dial tone.
Bits 2–4
Reserved. Must be cleared to 0.
Bit 5
Report detection of no energy (VOX) on the line.
(The VOX attributes are specified with the tunable
parameters VOXDTIMEDCOUNT and VOXD
ENERGYDLEVEL.)
Report the ending of a detected DTMF.
Bit 6
Bit 7
Report the start of a detected DTMF (up to 40 ms
after detection start).
Example
SDET A3
Byte sequence:
Microcontroller
10 A3
CompactSPEECH 10 A3
Description:
Set reporting of all CompactSPEECH
detectors, except for end-of-DTMF.
SE
Skip to End of Message
This command is valid only in the
PLAY
state. When in-
voked, playback is suspended (as for the PA command),
and a jump to the end of the message is performed. Play-
back remains suspended after the jump.
Example
SE
Byte sequence:
Microcontroller
24
CompactSPEECH 24
Description:
Skip to end of current message.
SETD
Set Time and DaytimeDandDday
Sets the system time and day as specified by bits 0–13 in
the 2-bytetimeDandDday parameter. ThetimeDandDday
parameter is encoded as follows:
Bits 0–2
Day of the week (1 through 7).
Bits 3–7
Hour of the day (0 through 23).
Bits 8–13
Minute of the hour (0 through 59).
Bits 14–15
These bits must be set to 1.
If timeDandDday value is not valid, ERRD
PARAM is set in the error word.
Example
SETD 0E09
Byte sequence:
Microcontroller
0F 0E 09
CompactSPEECH 0F 0E 09
Description:
Set time and day to Monday 1:30 AM.
http://www.national.com
40