コード例 #1
0
        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();
        }
コード例 #2
0
        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();
        }
コード例 #3
0
ファイル: IVRMenu.cs プロジェクト: NALSS/UCMA-IVR-Demo
        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;
        }
コード例 #4
0
        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;
        }