SIGN UP MEMBER LOGIN:    
ARTICLE

Speech Option for Textbox's Text in .Net

Posted by Kapil Dhawan Articles | COM Interop May 28, 2007
Here is one of the example to implement the Speech Option for TextBox' text.All you need is to add a dll called SpeechLib.dll
Reader Level:

The below code helps you to implement the Speech Option for TextBox' text. All you need to is add a dll named SpeechLib.dll.

 

using System;

using System.Data;

using System.Configuration;

using System.Collections;

using System.Web;

using System.Web.Security;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Web.UI.WebControls.WebParts;

using System.Web.UI.HtmlControls;

using SpeechLib;

 

public partial class speech : System.Web.UI.Page

{

    SpeechVoiceSpeakFlags flag = new SpeechVoiceSpeakFlags();

    SpVoice voiceObj = new SpVoice();

 

    protected void Page_Load(object sender, EventArgs e)

    {

 

    }

    protected void readfromtextbox_Click(object sender, EventArgs e)

    {

        try

        {

            voiceObj.Speak(textbox1.Text, flag);

        }

        catch (Exception excep)

        {

        }

    }

} 

Login to add your contents and source code to this article
share this article :
post comment
 

What error it throws??? You can try by adding directly this to your bin folder.

Posted by Kapil Dhawan Mar 03, 2009

i download the speech.dll file then i try to add the reference of this .dll file in my program but it shows the error and can't allow me to load the dll And also send me the link from where i can download the fresh copy of the speech.dll

Posted by Ashish Mangla Mar 03, 2009

From where can i download this SpeechLib.dll

Posted by Raj Ahir Dec 26, 2008
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor
PREMIUM SPONSORS
  • Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
    The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
Nevron Gauge for SharePoint
Become a Sponsor