Textbox Text to Speech Using in Asp.Net C#

Textbox Text to Speech

Textbox control Text Value speech Async using  in Asp.net C#.

                         Video Link

                      HTML Coding

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <form id="form1" runat="server">
        <asp:TextBox ID="TextBox1" Text="Welcome To Dotnetdrizzles.blogspot.in" runat="server" Width="242px"></asp:TextBox>


                                  C# Coding

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

       using System.Speech.Synthesis;

public partial class TextSpeak : System.Web.UI.Page
    protected void Page_Load(object sender, EventArgs e)
        SpeechSynthesizer spe = new SpeechSynthesizer();
        // Next Run Textbox text will speak

First Add New webform - Add Textbox text

Next - Add Reference - System.Speech  - Ok

Next - Code Behind file - add Namespace -  textbox Call to speechsynthesize

Next - Design File - add Async="true"


Post a Comment