TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Text To Speech Using C#
Pankil Bhatt
Apr 16, 2015
3.2
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
In this blog you will learn how to convert Text To Speech Using C#.
This code-sample includes add Text to speech. This sample can be used for many purpose. For example, you can create an captcha speech.
Here is the code
<body>
<form id=
"form1"
runat=
"server"
>
<div>
<asp:TextBox ID=
"txtWord"
runat=
"server"
/>
<asp:Button ID=
"btnSubmit"
runat=
"server"
Text=
"Speack Word"
OnClick=
"btnSubmit_Click"
/>
</div>
</form>
</body>
Need to add this library file on code behind
using
SpeechLib;
Wirte C# code in the Button_Click event.
protected
void
btnSubmit_Click(
object
sender, EventArgs e)
{
//Create Voice Object
//Add text for speach
SpVoice voice =
new
SpVoice();
voice.Speak(txtWord.Text);
}
Build the application and you can hear the voice.
Next Recommended Reading
How To Apply Cell Text & Background Color In An Excel Sheet Using EPPlus (C#) - Part Two