+ 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 !"); } } }
1 Resposta
+ 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?