public MainWindow() { InitializeComponent(); textBoxDeviceId.Text = (string)Properties.Settings.Default["deviceId"]; textBoxDeviceKey.Text = (string)Properties.Settings.Default["deviceKey"]; this.storageAccount = (string)Properties.Settings.Default["storageAccount"]; this.storageKey = (string)Properties.Settings.Default["storageKey"]; this.storageContainer = (string)Properties.Settings.Default["storageContainer"]; string checkText = string.Empty; if (textBoxDeviceId.Text != string.Empty) { checkText = textBoxDeviceId.Text.ToLower(); if (checkText.IndexOf("trump") >= 0) { voiceParam = "Microsoft Server Speech Text to Speech Voice (en-US, ZiraRUS)"; voiceTypeParam = Gender.Female; localeParam = "en-US"; } } }
// メニュー - 発声3 private void miVoice3_Click(object sender, RoutedEventArgs e) { voiceParam = "Microsoft Server Speech Text to Speech Voice (en-US, ZiraRUS)"; voiceTypeParam = Gender.Female; localeParam = "en-US"; }
// メニュー - 発声2 private void miVoice2_Click(object sender, RoutedEventArgs e) { voiceParam = "Microsoft Server Speech Text to Speech Voice (ja-JP, Ichiro, Apollo)"; voiceTypeParam = Gender.Male; localeParam = "ja-JP"; }