SIGN UP MEMBER LOGIN:    
ARTICLE

Get Installed Speech Voices in WPF

Posted by Mahesh Chand Articles | How do I October 08, 2009
This code snippet shows how to get all installed speech synthesis voices on a computer using Speech API in WPF and C#.
Reader Level:

The GetInstalledVoices method of SpeechSynthesizer class returns all installed voices on a machine. This method returns a collection of InstalledVoice object. You can use Age, Name, ID and other members of InstalledVoice to get their name, age, and ID.

The following code snippet gets all installed voices and adds them to a ComobBox.

SpeechSynthesizer talker = new SpeechSynthesizer();

// Load all installed voices

System.Collections.ObjectModel.ReadOnlyCollection<InstalledVoice>

    voices = talker.GetInstalledVoices();

foreach (InstalledVoice voice  in voices)

{

    VoicesComboBox.Items.Add(voice.VoiceInfo.Name);

}Note: Before you can use this class in your application, read my article for more details:
Programming Speech in WPF - Speech Synthesis

Login to add your contents and source code to this article
share this article :
post comment
 

Fixed. Thanks for noticing.

Posted by Mahesh Chand Oct 08, 2009

Hy man, the link to: Programming Speech in WPF - Speech Synthesis IS NOT WORKING

Posted by Mihai Moldovan Oct 08, 2009
Team Foundation Server Hosting
Become a Sponsor
PREMIUM SPONSORS
  • Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
    The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor