Microsoft Speech Platform
Constants
The following constants are used in SAPI. They are shown with the C/C++ name and Automation name although each pair uses the same numeric value.
C/C++ Name | Description |
---|---|
Automation Name | |
Value | |
SP_MAX_WORD_LENGTH | The maximum length of a word. Functions with input word strings matching or exceeding this limit will return E_INVALIDARG. |
Speech_Max_Word_Length | |
128 | |
SP_MAX_PRON_LENGTH | 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. |
Speech_Max_Pron_Length | |
384 | |
SP_STREAMPOS_ASAP | 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. |
Speech_StreamPos_Asap | |
0 | |
SP_STREAMPOS_REALTIME | Speech_StreamPos_RealTime indicates Bookmark event will occur when the SR engine reaches the current audio device position. |
Speech_StreamPos_RealTime | |
-1 |