by Raja Venkatesh (1 Submission)
Category: Sound/MP3
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Fri 7th February 2003
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Text to Speech or Text to telephone
API Declarations
'To get that reference download and install Microsoft Speech SDK
'This is to show how all speech softwares make us Jack Ass by selling
'those softwares so costly.
'All you need is WinNT4.0 or above, VB, speaker, mic, voice/fax modem.
dim oVoice as speechlib.spvoice
oVoice.speak txtTextBox.Text, SVSFlagsAsync
'This will speak to default out put audio device (speaker)
'In case you want to direct the speech to telephone
'Add a MSCom control to your project
'Dial a telephone number
'Once picked up on other side [You need to know AT commands]
'set the oVoice output to telephone object and play the stream
set oVoice.AudioOutput="Your telephone object"
oVoice.speak "Your text data or wav file", flags
'See documentation.