New Posts New Posts RSS Feed - Play speech synthesizer on phone
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Way2call telephony device is your ultimate telephony integration solution!

Play speech synthesizer on phone

 Post Reply Post Reply
Author
mattj View Drop Down
Newbie
Newbie


Joined: Apr 15 2010
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote mattj Quote  Post ReplyReply Direct Link To This Post Topic: Play speech synthesizer on phone
    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)
Back to Top
stupid48 View Drop Down
Newbie
Newbie


Joined: Mar 09 2010
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote stupid48 Quote  Post ReplyReply Direct Link To This Post Posted: Apr 01 2010 at 7:33pm
Nevermind.  I decided to just create the wav files on the fly instead...
Back to Top
stupid48 View Drop Down
Newbie
Newbie


Joined: Mar 09 2010
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote stupid48 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.113 seconds.