Way2call telephony device is your ultimate telephony integration solution! |
Play speech synthesizer on phone |
Post Reply ![]() |
Author | |
stupid48 ![]() Newbie ![]() Joined: Mar 09 2010 Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() 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()
voice2.speak("test")
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
|
|
![]() |
|
stupid48 ![]() Newbie ![]() Joined: Mar 09 2010 Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() |
Nevermind. I decided to just create the wav files on the fly instead...
|
|
![]() |
|
mattj ![]() Newbie ![]() Joined: Apr 15 2010 Status: Offline Points: 11 |
![]() ![]() ![]() ![]() ![]() |
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) |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
This page was generated in 0.125 seconds.