English
Language : 

NSAM266SA Datasheet, PDF (41/52 Pages) National Semiconductor (TI) – NSAM266SA CompactSPEECHTM Digital Speech Processor with Serial Flash Interface
2 0 Software (Continued)
SF
Skip Forward time length
Skips forward in the current message time length units
each of 0 2s duration and causes message playback to
pause time length 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 end of the message is detected during execution of
SF execution of the command is terminated the EV
NORMAL END bit in the status register is set the
MWRQST signal is activated and the CompactSPEECH
switches to the IDLE state
If time length is greater than 320 ERR PARAM is set in
the error word
Playback speed does not affect the behavior of this com-
mand
Example
SF 19
Microcontroller 22 00 19
Byte sequence
CompactSPEECH 22 00 19
Description
Skip forward five seconds from the
current position in the message being
played
SMT
Set Message Tag message tag
Sets the tag of the current message The 2-byte message
tag can be used to implement mailbox functions by including
the mailbox number in the tag or to handle old and new
messages differently by using one bit in the tag to mark the
message as old or new See Section 2 6 1
To change the tag of a message we recommend that you
read the message tag modify it and write it back
Note 1 Message tag bits can only be cleared Message tag bits are set only
when a message is first created
Note 2 If the current message is undefined ERR INVALID is reported
Note 3 Bit 15 of the message tag is used to select the voice compression
algorithm and should not be modified after recording
Example
SMT FF F7
Microcontroller 05 FF F7
Byte sequence
CompactSPEECH 05 FF F7
Description
Mark the current message as old in a
system where the message tag is
encoded as described in the example of
the DMS command
Note that the CompactSPEECH ignores
bits in the tag which are set to 1 only bit
3 is modified in the message tag
SO
Say One Word word number
Plays the word number word number in the current vocab-
ulary The 1-byte word number may be any value from 0
through the index of the last word in the vocabulary
When playback of the selected word has been completed
the CompactSPEECH sets the EV NORMAL END bit in
the status word and activates the MWRQST signal
If word number is not defined in the current vocabulary or
if it is an IVS control or option code ERR PARAM is set in
the error word
If the current vocabulary is undefined ERR INVALID is re-
ported
Example
SO 00
Microcontroller 07 00
Byte sequence
CompactSPEECH 07 00
Description
Announce the first word in the word table
of the currently selected vocabulary
SPS
Set Playback Speed speed
Sets the speed of message playback as specified by speed
The new speed applies to all recorded messages and syn-
thesized messages (only if synthesized using external voice
synthesis) until changed by another SPS command If this
command is issued while the CompactSPEECH is in the
PLAY state the speed also changes for the message cur-
rently being played
speed may be one of 13 values from b6 to a6 A value of
0 represents normal speed
Note that a negative speed value represents an increase in
speed a positive value represents a decrease in speed
The change in speed is approximate and depends on the
recorded data
If speed is not in the b6 to a6 range ERR PARAM is set
in the error word
Example
SPS FB
Microcontroller 16 FB
Byte sequence
CompactSPEECH 16 FB
Description Set playback speed to b5
SS
Say Sentence sentence n
Say sentence number sentence n of the currently selected
vocabulary sentence n is 1-byte long
If the sentence has an argument 0 is passed as the value
for this argument
When playing has been completed the CompactSPEECH
sets the EV NORMAL END bit in the status word and
activates the MWRQST signal
If sentence n is not defined in the current vocabulary
ERR PARAM is set in the error word
If the current vocabulary is undefined ERR INVALID is re-
ported
Example
SS 00
Microcontroller 1F 00
Byte sequence
CompactSPEECH 1F 00
Description
Announce the first sentence in the
sentence table of the currently selected
vocabulary
41
http www national com