Ejemplo n.º 1
0
        public void GetWeather(SpeechRecognizedEventArgs args)
        {
            if (!Weather.weather.enabled)
            {
                return;
            }

            Console.WriteLine(args.Result.Text);
            Form_Remator.synth_SynthesizeSpeech("It's currently 65 degrees outside");
        }
Ejemplo n.º 2
0
 public void GetDate(SpeechRecognizedEventArgs args)
 {
     Form_Remator.synth_SynthesizeSpeech(DateTime.Now.ToString("dddd, MMMM d"));
 }
Ejemplo n.º 3
0
 public void GetTime(SpeechRecognizedEventArgs args)
 {
     Form_Remator.synth_SynthesizeSpeech(DateTime.Now.ToString("hh:mm tt"));
     Console.WriteLine(DateTime.Now.ToString("hh:mm tt"));
 }