AddTapi.NET Developer's Manual
SpeechVoice Property
NamespacesTraysoft.AddTapiTapiLineSpeechVoice
Gets or sets text-to-speech voice to be used for text synthesis on the line.
Declaration Syntax
C#Visual BasicVisual C++
public TapiVoice SpeechVoice { get; set; }
Public Property SpeechVoice As TapiVoice
public:
property TapiVoice^ SpeechVoice {
	TapiVoice^ get ();
	void set (TapiVoice^ value);
}
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).
Examples
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;
            
See Also

Assembly: Traysoft.AddTapi (Module: Traysoft.AddTapi)