VoiceChangeEventArgs Class
Returns data from the VoiceChange event.
Assembly: System.Speech (in System.Speech.dll)
System::EventArgs
System.ComponentModel::AsyncCompletedEventArgs
System.Speech.Synthesis::PromptEventArgs
System.Speech.Synthesis::VoiceChangeEventArgs
| Name | Description | |
|---|---|---|
![]() | Cancelled | Gets a value indicating whether an asynchronous operation has been canceled.(Inherited from AsyncCompletedEventArgs.) |
![]() | Error | Gets a value indicating which error occurred during an asynchronous operation.(Inherited from AsyncCompletedEventArgs.) |
![]() | Prompt | Gets the prompt associated with the event.(Inherited from PromptEventArgs.) |
![]() | UserState | Gets the unique identifier for the asynchronous task.(Inherited from AsyncCompletedEventArgs.) |
![]() | Voice | Gets the VoiceInfo object of the new voice. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | MemberwiseClone() | |
![]() | RaiseExceptionIfNecessary() | Raises a user-supplied exception if an asynchronous operation failed.(Inherited from AsyncCompletedEventArgs.) |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
An instance of VoiceChangeEventArgs is created when the SpeechSynthesizer object raises the VoiceChange event. To obtain the identity of the new Voice, access the Voice property in the handler for the event.
You can change the voice in use by the SpeechSynthesizer with any of the PromptBuilder's StartVoice methods or the SpeechSynthesizer's SelectVoice or SelectVoiceByHints methods.
Available since 3.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


