Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
 
MSDN Visual Basic Community
 
 
 
 
 
TitleUse the VoiceText library to read numbers to the user in Visual Basic 6
DescriptionThis example shows how to use the VoiceText library to read numbers to the user in Visual Basic 6.
Keywordsvoice, audio, VoiceText, read numbers
CategoriesMiscellany, API, Multimedia
 
Thanks to Nihar Mody.

To use this example, you must have the VoiceText library installed. Note that there are other free text-to-voice libraries available.

The code simply creates a VTxtAuto object and calls its Speak method, passing it the text to read.

 
Dim oVoice As VTxtAuto.VTxtAuto

Private Sub Command1_Click()
    oVoice.Speak Text1.Text, vtxtst_READING
End Sub

Private Sub Form_Load()
    'get instance of Voice object and register it
    Set oVoice = New VTxtAuto.VTxtAuto
    oVoice.Register App.Title, App.EXEName
End Sub
 
 
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated