Print Page | Close Window

Play speech synthesizer on phone

Printed From: Way2call Communications
Category: Hi-Phone Software Development Kit (SDK)
Forum Name: Hi-Phone and .NET
Forum Description: Discussion on the Hi-Phone product family, its .NET interface, samples and development tools
Printed Date: Mar 01 2024 at 10:57pm

Topic: Play speech synthesizer on phone
Posted By: stupid48
Subject: Play speech synthesizer on phone
Date Posted: Mar 09 2010 at 7:43pm
I'm playing around with using the .net voice synthesizer to play audio back when a person answers the phone....
On the OnCallConnected event, I thought about using:
Dim voice2 As New Speech.Synthesis.SpeechSynthesizer()
in place of:
w2cDrv.Device.Audio.PlayWaveFile("c:\welcome.wav", 0, CInt(w2cDrv.Device.Info.WaveOutDrvID))
Is there a way to do that?
Thanks, Chris

Posted By: stupid48
Date Posted: Apr 01 2010 at 7:33pm
Nevermind.  I decided to just create the wav files on the fly instead...

Posted By: mattj
Date Posted: Apr 20 2010 at 11:38am
Dim myVoice as new SpeechLib.SpVoice

'fill arrOutput with available speech outputs.
Dim arrOutput As SpeechLib.ISpeechObjectTokens = myVoice .GetAudioOutputs

'In my env, arrOutput(2) is Line 1 on my maestro device.
myVoice .AudioOutput = arrOutput.Item(2)

myVoice .Speak("Hello world!", SpeechVoiceSpeakFlags.SVSFPurgeBeforeSpeak)

Print Page | Close Window