

Using (SpeechSynthesizer synth = new SpeechSynthesizer())

Initialize a new instance of the SpeechSynthesizer. The following example is part of a console application that initializes a SpeechSynthesizer object and outputs to the console a list of the installed voices (engines for speech synthesis) and demonstrates the information that is available for each voice. Returns a read-only collection of the voices currently installed on the system. System::Collections::ObjectModel::ReadOnl圜ollection ^ GetInstalledVoices() public 圜ollection GetInstalledVoices () member this.GetInstalledVoices : unit -> 圜ollection Public Function GetInstalledVoices () As ReadOnl圜ollection(Of InstalledVoice) Returns ReadOnl圜ollection Returns all of the installed speech synthesis (text-to-speech) voices.
