PromptBuilder.StartVoice Method (VoiceGender, VoiceAge, Int32)
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
Starts a Voice of the specified gender and age in a PromptBuilder and specifying an alternate Voice.
Namespace: Microsoft.SpeechServer.Synthesis
Assembly: Microsoft.SpeechServer (in microsoft.speechserver.dll)
Syntax
'Declaration
Public Sub StartVoice ( _
gender As VoiceGender, _
age As VoiceAge, _
voiceAlternate As Integer _
)
public void StartVoice (
VoiceGender gender,
VoiceAge age,
int voiceAlternate
)
Parameters
- gender
A member of the VoiceGender enumeration.
- age
A member of the VoiceAge enumeration.
- voiceAlternate
The alternate Voice.
Exceptions
Exception type | Condition |
---|---|
ArgumentException | gender is not set to a value in the VoiceGender enumeration. age is not set to a value in the VoiceAge enumeration. |
Thread Safety
All public static (Shared in Visual Basic) members of this type are thread-safe. Instance members are not guaranteed to be thread-safe.
Platforms
Development Platforms
Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Vista Ultimate Edition, Windows Vista Business Edition, Windows Vista Enterprise Edition
Target Platforms
Windows Server 2003
See Also
Reference
PromptBuilder Class
PromptBuilder Members
Microsoft.SpeechServer.Synthesis Namespace