Home    About Us    Products    Support    Forum    Downloads    FAQ    Developers    Cool Links    Contact Us    Store    Login

Forum Home Forum Home > Hi-Phone Software Development Kit (SDK) > Hi-Phone and .NET
  New Posts New Posts
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Play speech synthesizer on phone

  Post Reply Post Reply
Author
Message
  Topic Search Topic Search  Topic Options Topic Options
stupid48 View Drop Down
Newbie
Newbie


Joined: Mar 09 2010
Posts: 5
  Quote stupid48 Quote  Post ReplyReply Direct Link To This Post Topic: Play speech synthesizer on phone
    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
stupid48 View Drop Down
Newbie
Newbie


Joined: Mar 09 2010
Posts: 5
  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
mattj View Drop Down
Newbie
Newbie


Joined: Apr 15 2010
Posts: 11
  Quote mattj Quote  Post ReplyReply Direct Link To This Post 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
  Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.140 seconds.

Copyright ©1997-2010 Way2call Communication, Inc. All Rights Reserved