internal void performActionOnPinnedMessengers(int id) { Messenger pinnedMessenger = GetPinnedMessengersFromCollectionById(id); if (SentenceModeManager.SentenceMode) { SentenceModeManager.AddWord(pinnedMessenger.Name); } else { synthesizer.SpeakAsync(pinnedMessenger.Name); } }
public MessengerViewModel() { synthesizer = new SpeechSynthesizer(); synthesizer.Volume = 100; try { synthesizer.SelectVoice("Microsoft Szabolcs"); } catch (System.ArgumentException) { //The choosen voice is not installed, we use the default. } SentenceModeManager = SentenceModeManager.Instance; }