| TapiLineSpeechVoice Property |
Gets or sets text-to-speech voice to be used for text synthesis on the line.
Namespace: Traysoft.AddTapiAssembly: Traysoft.AddTapi (in Traysoft.AddTapi.dll) Version: 6.0.0.1110
Syntaxpublic TapiVoice SpeechVoice { get; set; }Public Property SpeechVoice As TapiVoice
Get
Set
public:
property TapiVoice^ SpeechVoice {
TapiVoice^ get ();
void set (TapiVoice^ value);
}Property Value
Type:
TapiVoice
Remarks
This property sets the text-to-speech (TTS) voice to use for subsequent
TapiCall.Speak calls on the line.
The list of available TTS voices is obtained from the
Voices collection.
To use default voice selected in the Speech applet in the Control Panel, set
SpeechVoice property to
null (
Nothing in Visual Basic).
ExamplesThe following code shows how to set text-to-speech voice for text synthesis on the line.
TapiApp.Initialize("MyApp");
TapiLine line = TapiApp.Lines[0];
TapiVoice voice = TapiApp.Voices[0];
line.SpeechVoice = voice;TapiApp.Initialize("MyApp")
Dim objLine As TapiLine
objLine = TapiApp.Lines(0)
Dim objVoice As TapiVoice
objVoice = TapiApp.Voices(0)
objLine.SpeechVoice = objVoice;No code example is currently available or this language may not be supported.
See Also