Microsoft Speech SDK
SAPI 5.1
The following constants are used in SAPI. They are provided with the C/C++ name and Automation name although each pair uses the same numeric value.
C/C++ Name |
Automation Name |
Value |
Description |
SP_MAX_WORD_LENGTH |
Speech_Max_Word_Length |
128 |
The maximum length of a word. Functions with input word strings matching or exceeding this limit will return E_INVALIDARG.
|
SP_MAX_PRON_LENGTH |
Speech_Max_Pron_Length |
384 |
The maximum length of a phoneme pronunciation. This limit applies to zero-terminated lists of SPPHONEID elements. Functions with SPPHONEID parameters matching or exceeding this limit will return E_INVALIDARG.
|
SP_STREAMPOS_ASAP |
Speech_StreamPos_Asap |
0 |
Indicates the Bookmark event will be fired as soon as possible after the speech recognition (SR) engine reaches a synchronization point. This allows the Bookmark to be sent at the first available opportunity.
|
SP_STREAMPOS_REALTIME |
Speech_StreamPos_RealTime |
-1 |
Speech_StreamPos_RealTime indicates Bookmark event will occur when the SR engine reaches the current audio device position.
|