You must Sign In to post a response.
  • Category: ASP.NET

    Regarding website and sound

    Hello,
    I have created website in visual studio 10. now i want that if some one open it there is a sound comes with company name. for an example if my company name is XYZ than it will be like Welcome to XYZ.
    how can I do this?
  • #749245
    You can use.NET library "System.Speech.Synthesis" for this.

    http://msdn.microsoft.com/en-us/library/system.speech.synthesis.aspx

    SpeechSynthesizer Class

    http://msdn.microsoft.com/en-us/library/system.speech.synthesis.speechsynthesizer(v=vs.110).aspx

    Examples and tutorials.

    http://www.codeproject.com/Tips/681233/Converting-Text-to-Voice-in-NET-Using-Csharp

    http://www.c-sharpcorner.com/uploadfile/syedshakeer/text-to-speech-using-C-Sharp/

    http://stackoverflow.com/questions/15387212/how-to-convert-text-string-to-speech-sound

    Regards,
    Nirav Prabtani (Senior Web Developer)
    Email : niravjprabtani@gmail.com
    blog : niravprabtani.blogspot.in

  • #749254
    Hello,

    You can use the: "System.Speech.Synthesis"

    You can visit the following urls for more details regarding the same:-
    ---------------------------------
    http://msdn.microsoft.com/en-us/library/system.speech.synthesis%28v=vs.110%29.aspx

    http://msdn.microsoft.com/en-us/library/system.speech.synthesis.speechsynthesizer%28v=vs.110%29.aspx

    http://msdn.microsoft.com/en-us/library/system.speech.synthesis.speechsynthesizer.selectvoice%28v=vs.110%29.aspx

    http://msdn.microsoft.com/en-us/library/system.speech.synthesis.ttsengine%28v=vs.110%29.aspx

    http://www.codeproject.com/Articles/28725/A-Very-Easy-Introduction-to-Microsoft-NET-Speech-S

    http://www.codeproject.com/Articles/483347/Speech-recognition-speech-to-text-text-to-speech-a

    https://www.youtube.com/watch?v=iJ7d9eFZsxQ

    http://10rem.net/blog/2009/12/16/using-speech-synthesis-in-net-4-and-windows-7

    http://www.mperfect.net/speechSamples/

    ----------------------------------------------

    --------------------------------
    Thanks,
    ARIJIT DAS.

  • #749260
    Thank you both of you for your reply , but I want speech for WEB APPLICATION NOT FOR WINDOWS FORM APPLICATION

  • #749388
    Hello Parth,

    The below code is working fine.

    You can put the content in label control at page load event. It will sing when some one open your site. To achieve it you have to add "Microsoft Speech Object Library" in Com reference tab. And use the below name space in your aspx page.

    using SpeechLib;

    protected void Page_Load(object sender, EventArgs e)
    {
    SpVoice speechvoice = new SpVoice();

    speechvoice.Speak(lbl1.Text);

    }

    -----------------------------------------------------------------------------
    Regards,
    Gopi A.
    +91 9894315571
    Skype:gopi.net
    http://asaigopi-dotnet.blogspot.in/


  • Sign In to post your comments