+ 2

I keep getting error in synthesizer someone help me plz

using System.Globalization; using System.Speech.Synthesis; namespace ConsoleApplication3 { class Program { static void Main(string[] args) { using (SpeechSynthesizer synth = new SpeechSynthesizer()) { synthesizer.SetOutputToDefaultAudioDevice(); synthesizer.SelectVoiceByHints(VoiceGender.Male, VoiceAge.Adult , 0, CultureInfo.GetCultureInfo("fr-fr")); synthesizer.Speak("Bonjour !"); } } }

4th Mar 2017, 10:20 PM
El missouri
El missouri - avatar
1 Respuesta
+ 1
What errors are you getting? Have you added the assembly reference to your project at C:\Program Files\Microsoft SDKs\Speech\v11.0\Assembly\Microsoft.Speech.dll?
7th Mar 2017, 12:58 PM
Anthony Vanover
Anthony Vanover - avatar