I've tried this on Office 2010 and it works. (I know, there is a speak button available but there is no pause button). As was said before remember to delete the underlines signs and to put [speech.Speak ActiveDocument.Range(0, ActiveDocument.Characters.Count).Text, SVSFlagsAsync + SVSFPurgeBeforeSpeak] in one single line (without the [ ] ) and everithing works fine.
It worked. Thanks a bunch! FYI - the StartTTS Macro needs an extra "End If" at the end; so it has two "End If"'s overall. I.e.: Sub startTTS() On Error Resume Next If i = 0 Then Set speech = New SpVoice If Len(Selection.Text) > 1 Then 'speak selection speech.Speak Selection.Text, SVSFlagsAsync + SVSFPurgeBeforeSpeak Else 'speak whole document speech.Speak ActiveDocument.Range(0, ActiveDocument.Characters.Count).Text, SVSFlagsAsync + SVSFPurgeBeforeSpeak End If End If End Sub
I need help. it says compile error then highlights " speech.Speak ActiveDocument.Range(0, _ ActiveDocument.Characters.Count).Text, _ SVSFlagsAsync + SVSFPurgeBeforeSpeak" (quotes were not included in the highlighted part.) did i copy it worng or something?
It worked. It really worked. It did take some fooling around with it, probably more like and hour but I finally got it to work.
Thank you, Thank you, Thank you :o)
I'm an author and just bought a new computer. I use this feature of MS Word every single day and I'm glad I don't have to upgrade to MS 2010 just to use it.
mine says variable not defined and highlights Selection out of If Len(Selection.Text) > 1 Then.....and yes i agree posting does suck terribly. Could you pm me the code that i can put in there? I would really like to get this working. Thanks
Sorry fixed the spaces and returns, posting sucks. +++++++++++++++ On Error Resume Next If i = 0 Then Set speech = New SpVoice If Len(Selection.Text) > 1 Then 'speak selection speech.Speak Selection.Text, SVSFlagsAsync + SVSFPurgeBeforeSpeak Else 'speak whole document (speech.Speak ActiveDocument.Range(0, ActiveDocument.Characters.Count).Text, SVSFlagsAsync + SVSFPurgeBeforeSpeak)<--- "ALL ONE LINE, leave out ()" End If
If i = 0 Then Set speech = New SpVoice If Len(Selection.Text) > 1 Then 'speak selection speech.Speak Selection.Text, SVSFlagsAsync + SVSFPurgeBeforeSpeak Else 'speak whole document speech.Speak ActiveDocument.Range(0, ActiveDocument.Characters.Count).Text, SVSFlagsAsync + SVSFPurgeBeforeSpeak End If
( I am not spamming, I am just helping)If you want a better voice then Anna watch my youtube video showing how to get kate and crystals voice for free.
Thanks so much. Worked exactly as described. I'm glad you were willing to share this with others to help them, as opposed to some posters who only condescend those without as much knowledge as them.
@markgeeseblanco ( I am not spamming, I am just helping)If you want a better voice then Anna watch my youtube video showing how to get kate and crystals voice for free.
@Sassygrl99 ( I am not spamming, I am just helping)If you want a better voice then Anna watch my youtube video showing how to get kate and crystals voice for free.
If anybody does not know this then you guys don't know IT. It's coding that you guys need to learn, when u have achieved this then it will work. It's > 1 and no _ should be included in the coding :)
you are the most horrible person i have come across.... stop doing videos because you are not helping them but troubling them.... please stop it for goodness sack.
@anguraj69 ( I am not spamming, I am just helping)If you want a better voice then Anna watch my youtube video showing how to get kate and crystals voice for free.
OK, I see where I have to replace the # sign with a greater than sign but which one. Pointing to the left or right or both, facing one another, opposing one another? I don't know. End of story, it don't work.
i could't get it to work it tells me that it canot do it while in break mode i dont know what that means also it propted an erros on the sub start tts() line what did i do wrong ? i followed the tutorial
lol you su---. Just drops off for speaking. lol Darn you messed up voice issues. :) I wonder if you can get any patches.
DryBONESreborn 1 month ago
got it work excellent
ottivadkrsr 1 month ago
any way to get all the code in one file?
ottivadkrsr 1 month ago
mine says sintax error any help?
fish25pizza 1 month ago
It worked.....woot! super stoked!
TonyJeffers 1 month ago
I've tried this on Office 2010 and it works. (I know, there is a speak button available but there is no pause button). As was said before remember to delete the underlines signs and to put [speech.Speak ActiveDocument.Range(0, ActiveDocument.Characters.Count).Text, SVSFlagsAsync + SVSFPurgeBeforeSpeak] in one single line (without the [ ] ) and everithing works fine.
emnog 2 months ago
CultureShockSix 3 months ago
frm were do you get the text in 3:34? pls reply
hassanm97 3 months ago
I need help. it says compile error then highlights " speech.Speak ActiveDocument.Range(0, _ ActiveDocument.Characters.Count).Text, _ SVSFlagsAsync + SVSFPurgeBeforeSpeak" (quotes were not included in the highlighted part.) did i copy it worng or something?
please help
IronHide1232 3 months ago
It worked. It really worked. It did take some fooling around with it, probably more like and hour but I finally got it to work.
Thank you, Thank you, Thank you :o)
I'm an author and just bought a new computer. I use this feature of MS Word every single day and I'm glad I don't have to upgrade to MS 2010 just to use it.
You Rock :o)
tdla08 4 months ago
It's too complicated.
sighisoaraa 5 months ago
Did NOT work. Pissed with this for over an hour. Waste of time
relxerd1978 6 months ago
fuuck you
number1HATERs 6 months ago
mine says variable not defined and highlights Selection out of If Len(Selection.Text) > 1 Then.....and yes i agree posting does suck terribly. Could you pm me the code that i can put in there? I would really like to get this working. Thanks
MRLT409 7 months ago
Forget it, POSTING SUCKS, it's there, syntax works, becareful with spaces and returns.
vknight1 7 months ago
vknight1 7 months ago
On Error Resume Next
If i = 0 Then
Set speech = New SpVoice
If Len(Selection.Text) > 1 Then 'speak selection
speech.Speak Selection.Text, SVSFlagsAsync + SVSFPurgeBeforeSpeak Else 'speak whole document
(speech.Speak ActiveDocument.Range(0, ActiveDocument.Characters.Count).Text, SVSFlagsAsync + SVSFPurgeBeforeSpeak)<--- "ALL ONE LINE, leave out ()"
End If
vknight1 7 months ago
REPLACE WITH THIS CODING:
+++++++++++++++++++++++++
On Error Resume Next
If i = 0 Then Set speech = New SpVoice If Len(Selection.Text) > 1 Then 'speak selection speech.Speak Selection.Text, SVSFlagsAsync + SVSFPurgeBeforeSpeak Else 'speak whole document speech.Speak ActiveDocument.Range(0, ActiveDocument.Characters.Count).Text, SVSFlagsAsync + SVSFPurgeBeforeSpeak End If
vknight1 7 months ago
I get the same error, seems to not like something in there. Replaced the # in "If Len(Selection.Text) # 1" changed to "> 1".
Also you have to delete the _ characters then save/quit VB. Then it works fine.
Improviz 9 months ago
I mess around with this in the library to freak everyone out.
Today the girl siting next to me (Anna) was freaked out when I said. "Anna we are coming for you!" Hahaha
MadComrad 9 months ago
Thank you so very much, you are a life saver
:-)
sijoeu 10 months ago
( I am not spamming, I am just helping)If you want a better voice then Anna watch my youtube video showing how to get kate and crystals voice for free.
watch?v=5Xz8ZKnLHc4
arielmnboy 10 months ago
Thanks so much. Worked exactly as described. I'm glad you were willing to share this with others to help them, as opposed to some posters who only condescend those without as much knowledge as them.
markgeeseblanco 10 months ago
This has been flagged as spam show
@markgeeseblanco ( I am not spamming, I am just helping)If you want a better voice then Anna watch my youtube video showing how to get kate and crystals voice for free.
watch?v=5Xz8ZKnLHc4
arielmnboy 10 months ago
thanks! This really worked!
Sassygrl99 10 months ago
This has been flagged as spam show
@Sassygrl99 ( I am not spamming, I am just helping)If you want a better voice then Anna watch my youtube video showing how to get kate and crystals voice for free.
watch?v=5Xz8ZKnLHc4
arielmnboy 10 months ago
Awesome video!!!!!
davonc 1 year ago
If anybody does not know this then you guys don't know IT. It's coding that you guys need to learn, when u have achieved this then it will work. It's > 1 and no _ should be included in the coding :)
Mrflyman2000 1 year ago
AWESOME <3 respect
SATHYABEEEE 1 year ago
you are the most horrible person i have come across.... stop doing videos because you are not helping them but troubling them.... please stop it for goodness sack.
anguraj69 1 year ago
This has been flagged as spam show
@anguraj69 ( I am not spamming, I am just helping)If you want a better voice then Anna watch my youtube video showing how to get kate and crystals voice for free.
watch?v=5Xz8ZKnLHc4
arielmnboy 10 months ago
I got a "Compile Error and a Syntex Error. It seems to have a problem with"
Sub startTTS()
On Error Resume Next
If i = 0 Then
Set speech = New SpVoice
If Len(Selection.Text) # 1 Then 'speak selection
lttlbgft 1 year ago
OK, I see where I have to replace the # sign with a greater than sign but which one. Pointing to the left or right or both, facing one another, opposing one another? I don't know. End of story, it don't work.
lttlbgft 1 year ago
i could't get it to work it tells me that it canot do it while in break mode i dont know what that means also it propted an erros on the sub start tts() line what did i do wrong ? i followed the tutorial
reviaspo 1 year ago
Comment removed
Hollygirl757 1 year ago
Comment removed
40530000 1 year ago