static void Main(string[] args) { AppDomain.CurrentDomain.UnhandledException += UnhandledExceptionTrapper; //quick and dirty error handling :) _server = new LyncServer(); _server.LyncServerReady += server_LyncServerReady; _server.IncomingCall += server_IncomingCall; Task t = _server.Start(); Console.ReadLine(); var stopping = _server.Stop(); stopping.Wait(); Console.WriteLine("Press any key to exit"); Console.ReadLine(); }
public void StartWithWelcome(AudioVideoFlow flow, LyncServer server) { _flow = flow; _server = server; //attach speech synthasis to audio flow _speechSynthesisConnector.AttachFlow(_flow); _speechSynthesizer = new SpeechSynthesizer(); _speechSynthesizer.SetOutputToAudioStream(_speechSynthesisConnector, audioformat); _speechSynthesizer.SelectVoice("Microsoft Hazel Desktop"); //slightly more english var toneController = new ToneController(); //this is for the DTMF tones toneController.AttachFlow(_flow); _speechSynthesisConnector.Start(); _speechSynthesizer.Speak("Welcome to the UCMA IVR Demo!"); SpeakMenuOptions(); toneController.ToneReceived += toneController_ToneReceived; }
public void StartWithWelcome(AudioVideoFlow flow, LyncServer server) { _flow = flow; _server = server; //attach speech synthasis to audio flow _speechSynthesisConnector.AttachFlow(_flow); _speechSynthesizer = new SpeechSynthesizer(); _speechSynthesizer.SetOutputToAudioStream(_speechSynthesisConnector, audioformat); _speechSynthesizer.SelectVoice("Microsoft Hazel Desktop"); //slightly more english var toneController = new ToneController(); //this is for the DTMF tones toneController.AttachFlow(_flow); _speechSynthesisConnector.Start(); _speechSynthesizer.Speak("Welcome to the UC Day IVR!"); //TEXT TO SPEEECH! SpeakMenuOptions(); toneController.ToneReceived += toneController_ToneReceived; }