Convert text to Speech ASP.Net C# Audio Recognation
using SpeechLib;
using System.Threading;
private void button1_Click(object sender, EventArgs e)
{
if (textBox1.Text != "")
{
SpVoice voice = new SpVoice();
voice.Volume = 100;
voice.Speak(textBox1.Text, SpeechVoiceSpeakFlags.SVSFlagsAsync);
voice.WaitUntilDone(Timeout.Infinite);
}
else
MessageBox.Show("Please enter text for speech","Text to Speech", MessageBoxButtons.OK,MessageBoxIcon.Information);
}
using System.Threading;
private void button1_Click(object sender, EventArgs e)
{
if (textBox1.Text != "")
{
SpVoice voice = new SpVoice();
voice.Volume = 100;
voice.Speak(textBox1.Text, SpeechVoiceSpeakFlags.SVSFlagsAsync);
voice.WaitUntilDone(Timeout.Infinite);
}
else
MessageBox.Show("Please enter text for speech","Text to Speech", MessageBoxButtons.OK,MessageBoxIcon.Information);
}
Comments
Post a Comment