Click here to Skip to main content
15,882,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a program that when Ctrl+C is pressed twice fast the text in clipbaord gets spoken.

Like this I get only (for English):
Mark
David
Zira

With David and Zira appearing twice each.

And I see voices for other languages installed in my Windows too.

What I have tried:

private void FormMain_Load(object sender, EventArgs e)
        {


            SpObjectTokenCategory otc = new SpObjectTokenCategory();

            otc.SetId("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech_OneCore\\Voices");

            ISpeechObjectTokens tokenEnum = otc.EnumerateTokens();

            foreach (SpeechLib.ISpeechObjectToken v in tokenEnum)
            {
                string s = v.GetDescription(49);
                //comboBoxVoice.Items.Add(v.GetDescription(49));
                lstOneVoice.Add(new oneVoice(s, v));
            }


    



            SpObjectTokenCategory otc2 = new SpObjectTokenCategory();

            otc2.SetId("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech\\Voices");

            ISpeechObjectTokens tokenEnum2 = otc2.EnumerateTokens();

            foreach (SpeechLib.ISpeechObjectToken v in tokenEnum2)
            {
                string s = v.GetDescription(49);

                foreach (string s2 in comboBoxVoice.Items)
                {
                    if (s == s2)
                        goto nextVoice;
                }
                //comboBoxVoice.Items.Add(s);
                //globalVoicesObjectsList.Add(v);

                lstOneVoice.Add(new oneVoice(s, v));

            nextVoice:;
            }
Posted
Comments
[no name] 5-Jun-21 1:51am    
https://superuser.com/questions/1141840/how-to-enable-microsoft-eva-cortanas-voice-on-windows-10
john1990_1 5-Jun-21 4:19am    
Thx, isn't there something simpler?
john1990_1 5-Jun-21 4:26am    
What about this solution from: Cynthia Fridsma

https://www.quora.com/How-can-I-use-Cortana-for-text-to-speech
john1990_1 5-Jun-21 4:26am    
And why doesn't Microsoft enable it by default?
john1990_1 5-Jun-21 5:03am    
I found 2 .reg files that do the job and enable Cortana:

youtu.be/eNotWXTcBOM

What about Microsoft Aria?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900