Important: Inside Macintosh: Sound is deprecated as of Mac OS X v10.5. For new audio development in Mac OS X, use Core Audio. See the Audio page in the ADC Reference Library.
Delimiter Information Records
A delimiter information record defines the characters used to indicate the beginning and end of a command embedded in text. A delimiter can be one or two characters. TheDelimiterInfo
data type defines a delimiter information record.
TYPE DelimiterInfo = RECORD startDelimiter: PACKED ARRAY[0..1] OF Char; endDelimiter: PACKED ARRAY[0..1] OF Char; END;Ordinarily, applications that support embedded speech commands should not change the start or end delimiters. However, if for some reason you must change the delimiters, you can use the
Field Description
startDelimiter
- The start delimiter for an embedded command. By default, the start delimiter is "
[[
".endDelimiter
- The end delimiter for an embedded command. By default, the end delimiter is "
]]
".SetSpeechInfo
function with thesoCommandDelimiter
selector. For example, you might do this if a text buffer naturally includes the delimiter strings. Before passing such a buffer to the Speech Manager, you can change the delimiter strings to some two-character sequences not used in the buffer and then change the delimiter strings back once processing of the buffer is complete.If a single-byte delimiter is desired, it should be followed by a
NIL
(0) byte. If the delimiter strings both consist of twoNIL
bytes, embedded command processing is disabled.