Re: SAPI Interrupt in Python?
Here is the relevant Microsoft documentation:
https://docs.microsoft.com/en-us/previo … 2(v=vs.85)
This bitmask would be the second argument to the speak method.
In case you don't know how to find the relevant flag values, here they are. I found these in the C/C++ SDK.
enum SPEAKFLAGS
{
SPF_DEFAULT = 0,
SPF_ASYNC = ( 1L << 0 ) ,
SPF_PURGEBEFORESPEAK = ( 1L << 1 ) ,
SPF_IS_FILENAME = ( 1L << 2 ) ,
SPF_IS_XML = ( 1L << 3 ) ,
SPF_IS_NOT_XML = ( 1L << 4 ) ,
SPF_PERSIST_XML = ( 1L << 5 ) ,
SPF_NLP_SPEAK_PUNC = ( 1L << 6 ) ,
SPF_PARSE_SAPI = ( 1L << 7 ) ,
SPF_PARSE_SSML = ( 1L << 8 ) ,
SPF_PARSE_AUTODETECT = 0,
SPF_NLP_MASK = SPF_NLP_SPEAK_PUNC,
SPF_PARSE_MASK = ( SPF_PARSE_SAPI | SPF_PARSE_SSML ) ,
SPF_VOICE_MASK = ( ( ( ( ( ( ( SPF_ASYNC | SPF_PURGEBEFORESPEAK ) | SPF_IS_FILENAME ) | SPF_IS_XML ) | SPF_IS_NOT_XML ) | SPF_NLP_MASK ) | SPF_PERSIST_XML ) | SPF_PARSE_MASK ) ,
SPF_UNUSED_FLAGS = ~SPF_VOICE_MASK
} SPEAKFLAGS;
Hope this helps.
Kind regards,
Philip Bennefall
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector