The following data types are used. They are listed in alphabetic order.
Speech argument list structure.
typedef struct _SmArg (CHAR name; AmArgVal value; ) SmArg; typedef SmArg SmArg; |
name | Name of speech argument. |
value | Value of speech argument if size of argument is less than or equal to size of (long); otherwise, a pointer to the speech argument value. |
Value of speech argument if size of argument is less than or equal to sizeof(long); otherwise, a pointer to the speech argument value.
typedef LONG SmArgVal; |
Pointer to character-aligned data.
typedef CHAR caddr_t; |
Return value from callback-handler function.
typedef INT SmHandler; |
Pointer to message between speech engine and application.
typedef VOID SM_MSG; |
Vocabulary word-attribute structure.
typedef struct _SM_VOCWORD ( LONG flags; SHORT spelling_size; CHAR spelling; ) SM_VOCWORD; typedef SM_VOCWORD SM_VOCWORD; |
flags | Reserved for internal use. |
spelling_size | Number of chars in word spelling plus one for terminating NULL. |
spelling | Word spelling. |
Word-attribute structure.
typedef struct _SM_WORD ( LONG tag; LONG flags; LONG score; SHORT spelling_size; CHAR spelling; SHORT vocab_size; CHAR vocab; ) SM_WORD; typedef SM_WORD SM_WORD; |
tag | Unique ID defined by speech engine for this word. |
flags | Formatting flags for words from predefined vocabularies. |
score | Measure of word's probability. |
spelling_size | Number of chars in word spelling plus one for terminating NULL. |
spelling | Word spelling. |
vocab_size | Number of chars in vocabulary name plus one for terminating NULL. |
vocab | Vocabulary name. |