Κοινή χρήση μέσω


VoiceChangeEventArgs Class

Definition

Returns data from the VoiceChange event.

public ref class VoiceChangeEventArgs : System::Speech::Synthesis::PromptEventArgs
public class VoiceChangeEventArgs : System.Speech.Synthesis.PromptEventArgs
type VoiceChangeEventArgs = class
    inherit PromptEventArgs
Public Class VoiceChangeEventArgs
Inherits PromptEventArgs
Inheritance

Remarks

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.

Properties

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.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
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)

Applies to