Results 1 to 8 of 8

Thread: VB - Text to Speech - SpeechLib

  1. #1

    Thread Starter
    Frenzied Member wiz126's Avatar
    Join Date
    Jul 2005
    Location
    Mars,Milky Way... Chit Chat Posts: 5,733
    Posts
    1,080

    Post VB - Text to Speech - SpeechLib

    1. make a textbox "text1"
    2. make command button "Command1"
    3. press ctrl +t
    4. scroll down till you find direction text to speech "DirectSS1"
    5. add this code


    VB Code:
    1. Private Sub Command1_Click()
    2. DirectSS1.Speak Text1.Text
    3. End Sub
    Last edited by wiz126; Sep 17th, 2005 at 07:19 AM.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: VB - Text to Speech using NO text-to-speech components- SpeechLib

    It might be helpful to state what libraries/references are needed for your routine.

    And, if they are not included with native VB, where to get them.

  3. #3
    Giants World Champs!!!! Mark Gambo's Avatar
    Join Date
    Sep 2003
    Location
    Colorado
    Posts
    2,965

    Re: VB - Text to Speech using NO text-to-speech components- SpeechLib

    You will need to reference the Microsoft Speech Object Library.


    see this link
    Regards,

    Mark

    Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."


  4. #4
    Giants World Champs!!!! Mark Gambo's Avatar
    Join Date
    Sep 2003
    Location
    Colorado
    Posts
    2,965

    Re: VB - Text to Speech using NO text-to-speech components- SpeechLib

    Quote Originally Posted by wiz126
    i din't see whats the point it works in 15 of my computer in his computer lab
    Your 15 lab computers probably loads this library as a default when VB6 loadeds. Most people only load references/components that the particular project needs and I don't know many applications that would use this reference. Just my two cents.
    Regards,

    Mark

    Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."


  5. #5
    Fanatic Member
    Join Date
    Aug 2005
    Location
    South Africa
    Posts
    760

    Re: VB - Text to Speech using NO text-to-speech components- SpeechLib

    This is awesome, Well done wiz126!
    If I helped you out, please consider adding to my reputation!

    -- "The faulty interface lies between the chair and the keyboard" --

    VB6 Programs By Me:
    ** Dictionary, Thesaurus & Rhyme-Generator In One ** WMP Recent Files List Editor ** Pretty Impressive Clock ** Extract Firefox History **

  6. #6
    Fanatic Member BrianHawley's Avatar
    Join Date
    Aug 2001
    Location
    Saudi Arabia
    Posts
    796

    Re: VB - Text to Speech using NO text-to-speech components- SpeechLib

    Anybody know if it can handle unicode strings? e.g. Arabic, Hebrew etc?

    If not, could probably write a module to 'translate' the strings phonetically into Ascii.
    Brian
    (Fighting with the RightToLeft bugs in VS 2005)

  7. #7
    Fanatic Member eimroda's Avatar
    Join Date
    Jul 2000
    Location
    Philippines
    Posts
    642

    Re: VB - Text to Speech using NO text-to-speech components- SpeechLib

    Great! but can we control the speed it reads the text?
    On Error GoTo Hell

    Hell:
    Kill Me


    Food For Thought:

    - Do not judge a book... if you're not a judge!


  8. #8
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: VB - Text to Speech using NO text-to-speech components- SpeechLib

    Sure, if you type SP. you get Intellisense, which has RATE.
    I tried it from 0 to 10, and 0 is normal. Then I tried negative numbers, and they work also.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width