Gets a list of text-to-speech voices available on the computer.
Namespace: Traysoft.AddTapiAssembly: Traysoft.AddTapi (in Traysoft.AddTapi.dll) Version: 6.0.0.1110
Syntaxpublic static IList<TapiVoice> Voices { get; }
Public Shared ReadOnly Property Voices As IList(Of TapiVoice)
Get
public:
static property IList<TapiVoice^>^ Voices {
IList<TapiVoice^>^ get ();
}
Property Value
Type:
IListTapiVoice
RemarksVoices 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.
ExamplesThe following code shows how to list TTS voices installed on the computer.
TapiApp.Initialize("MyApp");
foreach(TapiVoice voice in TapiApp.Voices)
{
Console.WriteLine("Voice {0}", voice.Name);
}
TapiApp.Shutdown();
TapiApp.Initialize("MyApp")
For Each voice As TapiVoice In TapiApp.Voices
Console.WriteLine("Voice {0}", voice.Name)
Next
TapiApp.Shutdown()
No code example is currently available or this language may not be supported.
See Also