locked
speech sdk RRS feed

  • Question

  • how do i convert text to wave from vb.net in speech sdk
    Tuesday, October 26, 2010 4:29 AM

Answers

  • how do i convert text to wave from vb.net in speech sdk


    You dont have to use the sppech SDK, there is speech synthesis class in .net 3.0 and up. Try this article with sample code that show how to save text to wave file. http://www.codeproject.com/KB/dotnet/Speech_Sample.aspx

    kaymaf


    CODE CONVERTER SITE

    http://www.carlosag.net/Tools/CodeTranslator/.

    http://www.developerfusion.com/tools/convert/csharp-to-vb/.

    • Proposed as answer by Chao Kuo Thursday, October 28, 2010 5:58 AM
    • Marked as answer by Chao Kuo Tuesday, November 2, 2010 10:49 AM
    Wednesday, October 27, 2010 1:33 AM
  • At a minimum....Add a reference to System.Speech and then this will do what you are asking. You can also direct the output to an audio stream, or audio device....it is very flexible.

    Imports System.Speech.Synthesis
    
    Public Class Form1
    
      Private Sub Form1_Load(ByVal sender As System.Object, _
                  ByVal e As System.EventArgs) Handles MyBase.Load
        Dim spkr As New SpeechSynthesizer()
    
        With spkr
          .SetOutputToWaveFile("textSpeak.wav")
          .Speak("You now have thirty seconds to reach minimum safe distance")
        End With
      End Sub
    End Class
    
    
    • Proposed as answer by Chao Kuo Thursday, October 28, 2010 5:58 AM
    • Marked as answer by Chao Kuo Tuesday, November 2, 2010 10:49 AM
    Wednesday, October 27, 2010 6:35 AM

All replies

  • how do i convert text to wave from vb.net in speech sdk


    You dont have to use the sppech SDK, there is speech synthesis class in .net 3.0 and up. Try this article with sample code that show how to save text to wave file. http://www.codeproject.com/KB/dotnet/Speech_Sample.aspx

    kaymaf


    CODE CONVERTER SITE

    http://www.carlosag.net/Tools/CodeTranslator/.

    http://www.developerfusion.com/tools/convert/csharp-to-vb/.

    • Proposed as answer by Chao Kuo Thursday, October 28, 2010 5:58 AM
    • Marked as answer by Chao Kuo Tuesday, November 2, 2010 10:49 AM
    Wednesday, October 27, 2010 1:33 AM
  • At a minimum....Add a reference to System.Speech and then this will do what you are asking. You can also direct the output to an audio stream, or audio device....it is very flexible.

    Imports System.Speech.Synthesis
    
    Public Class Form1
    
      Private Sub Form1_Load(ByVal sender As System.Object, _
                  ByVal e As System.EventArgs) Handles MyBase.Load
        Dim spkr As New SpeechSynthesizer()
    
        With spkr
          .SetOutputToWaveFile("textSpeak.wav")
          .Speak("You now have thirty seconds to reach minimum safe distance")
        End With
      End Sub
    End Class
    
    
    • Proposed as answer by Chao Kuo Thursday, October 28, 2010 5:58 AM
    • Marked as answer by Chao Kuo Tuesday, November 2, 2010 10:49 AM
    Wednesday, October 27, 2010 6:35 AM
  • thanx every one
    Sunday, October 31, 2010 8:50 PM
  • Thanx Everyone for help me

    Sunday, October 31, 2010 9:11 PM