Site Attributes

Every voice-text site has a set of attributes that affect the interaction between the text-to-speech engine and the audio-output device. An application can query and set a site's attributes by using the IVTxtAttributes interface provided by the voice-text object. To get a pointer to the IVTxtAttributes interface, call the IVoiceText::QueryInterface member function with the IID_IVTxtAttributes interface identifier.

Because multiple applications can share the same voice-text site, changing a site attribute affects all applications registered to use the site, not just the application making the change. To receive notifications of attribute changes, an application must specify the VTXTF_ALLMESSAGES value when calling the IVoiceText::Register member function. Note, however, that attribute settings are saved between uses of the site, even if the computer is shut off in the meantime.