The stream number returned by an asynchronous Speak call is the stream's index in the voice queue. These streams are also referred to as speech requests. This may be acceptable for simple applications, or those with no graphical user interface (GUI), but when sophisticated user interaction is intended, asynchronous speaking will generally be more appropriate.Īsynchronous speaking can place numerous text streams into the input queue. When synchronous speech is used in an application, the application's execution is blocked while the voice speaks, and the user is effectively locked out. When called synchronously, the Speak method does not return until the text has been spoken when called asynchronously, it returns immediately, and the voice speaks as a background process. It can be called synchronously or asynchronously. The Speak method places a text stream in the TTS engine's input queue and returns a stream number. The TTS tab of Speech properties in Control Panel, which enables users to modify the characteristics of the default system voice, is an example of a voice UI. Use the DisplayUI method to display a supported UI. The IsUISupported method determines if a specific UI is supported. These properties can be modified with a User Interface (UI). Use the GetVoices method to determine what other voices are available to the voice object. "Microsoft Mary" and "Microsoft Mike" are examples of Voices. The fundamental characteristics of the voice are the Voice property, which can be thought of as the person of the voice, the Rate property, and the Volume property. An SpVoice object, usually referred to simply as a voice, is created with default property settings so that it is ready to speak immediately. An application can create numerous SpVoice objects, each independent of and capable of interacting with the others. The SpVoice object brings the text-to-speech (TTS) engine capabilities to applications using SAPI automation.
0 Comments
Leave a Reply. |