private void TextButton_Clicked(object sender, EventArgs e) { try { if (textlabel.Text == "" || textlabel.Text == null) { return; } TextToSpeech.Speak(textlabel.Text.ToString(), (float)sliderPitch.Value, (float)sliderRate.Value); } catch { ToastMessage("지원되지 않는 음성입니다."); } }
private void Button_Clicked(object sender, System.EventArgs e) { TextToSpeech.Speak(textlabel.Text.ToString(), (float)sliderPitch.Value, (float)sliderRate.Value); }