I want to speech in Arabic Language for this i wrote the following code
using System.Speech;
using System.Speech.Synthesis;
public frmToken()
{
InitializeComponent();
speechSynthesizerObj = new SpeechSynthesizer();
}
SpeechSynthesizer speechSynthesizerObj;
private void frmToken_Load(object sender, EventArgs e)
{
foreach (var voice in speechSynthesizerObj.GetInstalledVoices())
{
comboBox1.Items.Add(voice.VoiceInfo.Name);
}
}
private void btnPlay_Click(object sender, EventArgs e)
{
speechSynthesizerObj.Dispose();
if (richTextBox1.Text != "")
{
speechSynthesizerObj = new SpeechSynthesizer();
speechSynthesizerObj.SelectVoice(comboBox1.Text);
speechSynthesizerObj.SpeakAsync(richTextBox1.Text);
}
}
Moreover, I made the setting in windows 10
inspite of all my effor it is not producing speech in arabic.
how to get solution?