|
|
Title | Use the VoiceText library to read numbers to the user in Visual Basic 6 |
Description | This example shows how to use the VoiceText library to read numbers to the user in Visual Basic 6. |
Keywords | voice, audio, VoiceText, read numbers |
Categories | Miscellany, 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
|
|
|
|
|
|