SP_MAX_WORD_LENGTH (SAPI 5.3)

Microsoft Speech API 5.3

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++ NameDescription
Automation Name
Value
SP_MAX_WORD_LENGTHThe 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_LENGTHThe 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_ASAPIndicates 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_REALTIMESpeech_StreamPos_RealTime indicates Bookmark event will occur when the SR engine reaches the current audio device position.
Speech_StreamPos_RealTime
-1