plz guys help me if any one know how to convert text into audio wave using VB6 than plz plz plz help me and teach me a function of conversion and if u have code than if u dont mind than plz give me a code.
thanks alot
Three answers:
r_ranjith
2006-05-01 06:44:23 UTC
Get a Text-to-Speech API
Create an instance of the component and convert text to audio.
Sample code:
Dim tts
Set tts = CreateObject("TTSObj.TextToSpeech.1")
'Convert text to wav
tts.FileFormat = 0
tts.SpeakToFile "Hello world", "1.wav", 0
'Convert text to mp3
tts.FileFormat = 1
tts.SpeakToFile "Hello world", "1.mp3", 0
2016-12-15 21:22:14 UTC
Text Into Audio
2014-03-01 05:48:09 UTC
Open Notepad.
Copy the below code and paste it in a notepad.
Dim msg, sapi
msg=InputBox("Enter your text for convert to audio","Wwtechtricks.blogspot.in Text-To-Audio Converter")
Set sapi=CreateObject("sapi.spvoice")
sapi.Speak msg
After pasting the code click on file,then click on save as 'Text to Audio converter.vbs'.
Now open the file Type the text that you want to convert then press Enter.
http://wwtechtricks.blogspot.in/
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.