AddTapi.NET Developer's Manual
Voices Property
NamespacesTraysoft.AddTapiTapiAppVoices
Gets a list of text-to-speech voices available on the computer.
Declaration Syntax
C#Visual BasicVisual C++
public static IList<TapiVoice> Voices { get; }
Public Shared ReadOnly Property Voices As IList(Of TapiVoice)
public:
static property IList<TapiVoice^>^ Voices {
	IList<TapiVoice^>^ get ();
}
Remarks
Voices is a collection of TapiVoice objects representing text-to-speech (TTS) voices installed on the computer. This collection is not updated automatically when a new TTS voice is added to the system. The application can call Shutdown()()() followed by Initialize(String) to re-initialize AddTapi.NET and update a list of available TTS voices.
Examples
The following code shows how to list TTS voices installed on the computer.

C#

            TapiApp.Initialize("MyApp");
            foreach(TapiVoice voice in TapiApp.Voices)
            {
                Console.WriteLine("Voice {0}", voice.Name);
            }
            TapiApp.Shutdown();
            

VB.NET

            TapiApp.Initialize("MyApp")
            For Each voice As TapiVoice In TapiApp.Voices
                Console.WriteLine("Voice {0}", voice.Name)
            Next
            TapiApp.Shutdown()
            
See Also

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