After looking through the vast amount of information on this wonderful site there isn't much about text to speech. Microsoft give a little information but this is difficult to follow, so here's a layman's method of doing it.
download the "SpeechSDK51.exe" file from the microsoft site. link supplied below.
http://www.microsoft.com/downloads/details.aspx?FamilyID=5e86ec97-40a7-453f-b0ee-6583171b4530&DisplayLang=en
run the exe file
Create a module with the follow code in it.
Code:
Function speech(str As String)
Dim objVo As Object
Set objVo = CreateObject("SAPI.SpVoice")
objVo.Speak str
End Function
to call this routine use the following
Code:
speech ("Tech tips is a wonderful site!")
you can even type this into the immediate windows to test the pronunciation.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.