VoiceChangeEventArgs Class

Microsoft Speech Platform SDK 11

Collapse imageExpand ImageCopy imageCopyHover image

Returns data from the VoiceChange event.

Inheritance Hierarchy

System..::..Object
  System..::..EventArgs
    System.ComponentModel..::..AsyncCompletedEventArgs
      Microsoft.Speech.Synthesis..::..PromptEventArgs
        Microsoft.Speech.Synthesis..::..VoiceChangeEventArgs

Namespace:  Microsoft.Speech.Synthesis
Assembly:  Microsoft.Speech (in Microsoft.Speech.dll)

Syntax

Visual Basic (Declaration)
Public Class VoiceChangeEventArgs _
	Inherits PromptEventArgs
Visual Basic (Usage)
Dim instance As VoiceChangeEventArgs
C#
public class VoiceChangeEventArgs : PromptEventArgs

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.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also