Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

Microsoft Speech Platform

Constants

The following constants are used in the Microsoft Speech Platform.

C/C++ NameDescription
Value
SP_MAX_WORD_LENGTHThe maximum length of a word. Functions with input word strings matching or exceeding this limit will return E_INVALIDARG.
128
SP_MAX_PRON_LENGTHThe maximum length of a phonetic spelling that defines a pronunciation. This limit applies to zero-terminated lists of SPPHONEID elements. Functions with SPPHONEID parameters matching or exceeding this limit will return E_INVALIDARG.
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.
0
SP_STREAMPOS_REALTIMESpeech_StreamPos_RealTime indicates Bookmark event will occur when the SR engine reaches the current audio device position.
-1