Loading New System Voices for System.Speech

%3CLINGO-SUB%20id%3D%22lingo-sub-883621%22%20slang%3D%22en-US%22%3ELoading%20New%20System%20Voices%20for%20System.Speech%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-883621%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%20I%20am%20using%20System.Speech%20for%20a%20Text%20to%20Speech%20project%2C%20and%20I%20am%20trying%20to%20install%20new%20voices.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20installed%20new%20system%20voices%20by%20following%20these%20instructions%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOn%20any%20edition%20of%20Windows%2010%2C%20click%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EStart%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%26gt%3B%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ESettings%3C%2FSTRONG%3E%2C%20and%20then%20follow%20these%20steps%3A%3C%2FP%3E%3COL%3E%3CLI%3E%3CP%3ESelect%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EStart%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ebutton%2C%20then%20select%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ESettings%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%26gt%3B%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ETime%20%26amp%3B%20Language%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%26gt%3B%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ERegion%20%26amp%3B%20Language%3C%2FSTRONG%3E.%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3ESelect%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EAdd%20a%20language%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eand%20choose%20the%20language%20you%20want%20from%20the%20list.%20Only%20languages%20listed%20in%20the%20table%20below%20will%20have%20Text-to-Speech%20capabilities.%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3EAfter%20the%20new%20language%20has%20been%20installed%20(this%20may%20take%20a%20few%20moments)%2C%20select%20it%20in%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ERegion%20%26amp%3B%20Language%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Elist%2C%20and%20then%20select%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EOptions%3C%2FSTRONG%3E.%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3EUnder%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ELanguage%20options%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%26gt%3B%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ESpeech%3C%2FSTRONG%3E%2C%20select%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EDownload%3C%2FSTRONG%3E.%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%20class%3D%22%22%3ERestart%20your%20computer.%20The%20Text-to-Speech%20voices%20will%20be%20installed%20when%20your%20machine%20turns%20back%20on.%3C%2FP%3E%3C%2FLI%3E%3C%2FOL%3E%3CP%3EI%20can%20see%20these%20voices%20installed%20in%20settings.%20However%2C%20these%20voices%20don't%20show%20up%20when%20I%20use%20the%26nbsp%3BGetInstalledVoices().VoiceInfo%20command.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20some%20additional%20layer%20of%20setup%20I%20need%20to%20do%20to%20get%20System.Speech%20to%20recognize%20these%20new%20voices%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-883621%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPo%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EWindows%20PowerShell%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-886594%22%20slang%3D%22en-US%22%3ERe%3A%20Loading%20New%20System%20Voices%20for%20System.Speech%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-886594%22%20slang%3D%22en-US%22%3E%3CP%3E%40community%20I%20mean%20it%20tho%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-887954%22%20slang%3D%22en-US%22%3ERe%3A%20Loading%20New%20System%20Voices%20for%20System.Speech%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-887954%22%20slang%3D%22en-US%22%3E%3CP%3Ebump%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-894249%22%20slang%3D%22en-US%22%3ERe%3A%20Loading%20New%20System%20Voices%20for%20System.Speech%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-894249%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F41501%22%20target%3D%22_blank%22%3E%40microsoft%3C%2FA%3E%20Tech%20Community%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EY'all%20a%20bunch%20of%20posers%20tho.%20Left%20me%20hanging.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20answer%20is%20that%20Microsoft%20has%20two%20vocal%20synthesis%20APIs%2C%20WinRT%20and%20SAPI.%203%20of%20the%20standard%20Microsoft%20voices%20are%20the%20SAPI%20API%2C%20the%20ones%20you%20download%20via%20system%20settings%20are%20WinRT.%20System.Speech%20only%20works%20with%20SAPI%20voices.%20This%20isn't%20clearly%20documented%20anywhere%2C%20I%20actually%20had%20to%20find%20it%20on%20a%20random%20stack%20overflow%20post%2C%20so%20hopefully%20posting%20this%20will%20help%20someone%20else%20who%20runs%20into%20the%20same%20issue.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hi, I am using System.Speech for a Text to Speech project, and I am trying to install new voices.

 

I installed new system voices by following these instructions: 

 

On any edition of Windows 10, click Start > Settings, and then follow these steps:

  1. Select the Start button, then select Settings > Time & Language > Region & Language.

  2. Select Add a language and choose the language you want from the list. Only languages listed in the table below will have Text-to-Speech capabilities.

  3. After the new language has been installed (this may take a few moments), select it in the Region & Language list, and then select Options.

  4. Under Language options > Speech, select Download.

  5. Restart your computer. The Text-to-Speech voices will be installed when your machine turns back on.

I can see these voices installed in settings. However, these voices don't show up when I use the GetInstalledVoices().VoiceInfo command.

 

Is there some additional layer of setup I need to do to get System.Speech to recognize these new voices?

3 Replies
Highlighted

@community I mean it tho

Highlighted
Highlighted

@microsoft Tech Community 

 

Y'all a bunch of posers tho. Left me hanging. 

 

The answer is that Microsoft has two vocal synthesis APIs, WinRT and SAPI. 3 of the standard Microsoft voices are the SAPI API, the ones you download via system settings are WinRT. System.Speech only works with SAPI voices. This isn't clearly documented anywhere, I actually had to find it on a random stack overflow post, so hopefully posting this will help someone else who runs into the same issue.