mjb
mjb

Reputation: 7969

Windows 10 - System.Speech.Synthesis cannot get Mobile version of voice

In my Windows 10's Language, I have installed 2 version of English Language:

Therefore, in [Settings] > [Time & language] > [Speech]

Under the section [Text-to-Speech], I can see the following options:

but, in C# WinForm, by using the following code:

using System.Speech.Synthesis;
SpeechSynthesizer ss = new SpeechSynthesizer();
ss.GetInstalledVoices();

I can only get:

I missed Susan, George and Mark.

How can I get Susan, George and Mark voice version in C# WinForm?

Upvotes: 2

Views: 1300

Answers (1)

bslein
bslein

Reputation: 332

You can only access the Windows 10 Voices from the Windows.Media.SpeechSynthesis Namespace which belongs to the WinRT Framework. So you cant use them in WPF or WinForms.

see: What are the different between "Windows.Media.SpeechSynthesis" and "System.Speech.Synthesis"?

Upvotes: 3

Related Questions