Gets or sets text-to-speech voice to be used for text synthesis on the line.
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).
The following code shows how to set text-to-speech voice for text synthesis on the line.
C#
TapiApp.Initialize("MyApp");
TapiLine line = TapiApp.Lines[0];
TapiVoice voice = TapiApp.Voices[0];
line.SpeechVoice = voice;
VB.NET
TapiApp.Initialize("MyApp")
Dim objLine As TapiLine
objLine = TapiApp.Lines(0)
Dim objVoice As TapiVoice
objVoice = TapiApp.Voices(0)
objLine.SpeechVoice = objVoice;
Assembly: Traysoft.AddTapi (Module: Traysoft.AddTapi)