code for Text To speech

Posted by Bageshkumarbagi under ASP.NET category on | Points: 40 | Views : 1282
====HTML CODE==========

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="Default2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

<html xmlns="">
<head runat="server">
<form id="form1" runat="server">

<asp:Label ID="Label1" runat="server" Text="Enter Text Here"></asp:Label>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="Button" />



Imports SpeechLib
Partial Class Default2
Inherits System.Web.UI.Page

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

End Sub

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim voice As New SpVoice()
voice.Volume = 100
Catch ex As Exception
End Try
End Sub
End Class

Comments or Responses

Login to post response