Hallo,
Ik ben nieuw in C# en had de volgende vraag.
Graag had ik de tekst in een textbox gehoord via de computerstem.
Deze stem is momenteel in het Engels en had deze graag in het Nederlands gehad.
even de code van mijn voorbeeld :
//---------------------------------------------------------------
using System.Speech.Synthesis;
private void button1_Click(object sender, EventArgs e)
{
// Initialize a new instance of the SpeechSynthesizer.
SpeechSynthesizer synth = new SpeechSynthesizer();
// Configure the audio output.
synth.SetOutputToDefaultAudioDevice();
//synth.SelectVoice("Microsoft Frank Mobile - Dutch (Netherlands)"); ----> deze werkt niet !!!!
//synth.SelectVoice("Microsoft Sam"); ----- > deze ook niet ....
// Speak a string.
synth.SelectVoiceByHints(VoiceGender.Male, VoiceAge.Adult, 0, System.Globalization.CultureInfo.CreateSpecificCulture("nl-NL")); // -> doet niets
synth.Rate = -5;
synth.Speak("1 2 3 4 5 6");
}
dus dat tellen gaat in het Engels en wou dit graag in het Nederlands. Ik heb de instellingen via windows 10 al op NL gezet waar dat werkt ook niet.
Heeft er iemand de kennis of ervaring om dit toch te doen lukken? (misschien met een code)
Groeten, Patrik.
Ik ben nieuw in C# en had de volgende vraag.
Graag had ik de tekst in een textbox gehoord via de computerstem.
Deze stem is momenteel in het Engels en had deze graag in het Nederlands gehad.
even de code van mijn voorbeeld :
//---------------------------------------------------------------
using System.Speech.Synthesis;
private void button1_Click(object sender, EventArgs e)
{
// Initialize a new instance of the SpeechSynthesizer.
SpeechSynthesizer synth = new SpeechSynthesizer();
// Configure the audio output.
synth.SetOutputToDefaultAudioDevice();
//synth.SelectVoice("Microsoft Frank Mobile - Dutch (Netherlands)"); ----> deze werkt niet !!!!
//synth.SelectVoice("Microsoft Sam"); ----- > deze ook niet ....
// Speak a string.
synth.SelectVoiceByHints(VoiceGender.Male, VoiceAge.Adult, 0, System.Globalization.CultureInfo.CreateSpecificCulture("nl-NL")); // -> doet niets
synth.Rate = -5;
synth.Speak("1 2 3 4 5 6");
}
dus dat tellen gaat in het Engels en wou dit graag in het Nederlands. Ik heb de instellingen via windows 10 al op NL gezet waar dat werkt ook niet.
Heeft er iemand de kennis of ervaring om dit toch te doen lukken? (misschien met een code)
Groeten, Patrik.