Gets a list of text-to-speech voices available on the computer.
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.
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()
Assembly: Traysoft.AddTapi (Module: Traysoft.AddTapi)