Exemplo n.º 1
0
        public MainPage()
        {
            this.InitializeComponent();
            WeatherRSS.GetWeather();
            synthesizer       = new SpeechSynthesizer();
            LabelTime.Text    = DateTime.Now.ToString("hh:mm");
            LabelWeekDay.Text = DateTime.Now.ToString("yyyy-MM-dd, ddd");
            Timer.Tick       += Timer_Tick;
            Timer.Interval    = new TimeSpan(0, 0, 1);
            Timer.Start();
            StartCapture();
            var voices = SpeechSynthesizer.AllVoices;

            foreach (var voice in voices)
            {
                if (voice.Language == "ko-KR")
                {
                    synthesizer.Voice = voice;
                }
            }
        }
Exemplo n.º 2
0
 private void Page_Loaded(object sender, RoutedEventArgs e)
 {
     ImgWeather.Source     = WeatherRSS.GetWeatherName(WeatherRSS.FForecast);
     ImgNextweather.Source = WeatherRSS.GetWeatherName(WeatherRSS.SForecast);
     _musicLoader.Load_MusicAsync();
 }
Exemplo n.º 3
0
 private void Timer_Tick(object sender, object e)
 {
     LabelTime.Text    = DateTime.Now.ToString("hh:mm");
     LabelWeekDay.Text = DateTime.Now.ToString("yyyy-MM-dd, ddd");
     ImgWeather.Source = WeatherRSS.GetWeatherName(WeatherRSS.FForecast);
 }