private static void TestSound() { var volume = Convert.ToInt32((MainView.View.TVolume.Value * 100) * Settings.Default.GlobalVolume); if (!string.IsNullOrWhiteSpace(MainView.View.TSound.Text)) { SoundPlayerHelper.PlayCached(MainView.View.TSound.Text, volume); } if (!string.IsNullOrWhiteSpace(MainView.View.TTTS.Text)) { TTSPlayer.Speak(MainView.View.TTTS.Text, volume, (int)MainView.View.TRate.Value); } }