|
-
Jul 28th, 2005, 12:44 PM
#1
Thread Starter
Frenzied Member
VB - Text to Speech - SpeechLib
- make a textbox "text1"
- make command button "Command1"
- press ctrl +t
- scroll down till you find direction text to speech "DirectSS1"
- add this code
VB Code:
Private Sub Command1_Click()
DirectSS1.Speak Text1.Text
End Sub
Last edited by wiz126; Sep 17th, 2005 at 07:19 AM.
-
Jul 28th, 2005, 01:10 PM
#2
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.
-
Jul 30th, 2005, 01:29 PM
#3
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."
-
Jul 30th, 2005, 08:35 PM
#4
Re: VB - Text to Speech using NO text-to-speech components- SpeechLib
 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."
-
Aug 20th, 2005, 04:35 AM
#5
Fanatic Member
Re: VB - Text to Speech using NO text-to-speech components- SpeechLib
This is awesome, Well done wiz126!
-
Aug 20th, 2005, 07:16 AM
#6
Fanatic Member
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)
-
Sep 9th, 2005, 11:21 AM
#7
Fanatic Member
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!

-
Sep 9th, 2005, 12:00 PM
#8
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|