Click here to Skip to main content
15,891,799 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi all,

im writing an application and it uses speech Synthesis and i want to select the mark mobile voice. but it wont let me. it will select others just not this voice and im not to sure what to do about it

What I have tried:

string name = "Microsoft Mark Mobile - English(United States)";
Jhonson.SelectVoice(name);
Posted
Updated 19-Apr-17 22:11pm
Comments
ZurdoDev 19-Apr-17 8:05am    
What is the error?
Tomas Takac 19-Apr-17 9:31am    
Are you sure you have the voice installed?

1 solution

C#
using System;
using System.Speech.Synthesis;

namespace SampleSynthesis
{
  class Program
  {
    static void Main(string[] args)
    {

      // Initialize a new instance of the SpeechSynthesizer.
      using (SpeechSynthesizer synth = new SpeechSynthesizer())
      {


        synth.SetOutputToDefaultAudioDevice();

        synth.Speak("What is your favorite color?");
      }


    }
  }
}
 
Share this answer
 
Comments
vinuvasahanponniah 17-May-17 1:47am    
what is the issue ,my solution

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