public void HandleWord(string word) { if (word == "STOP" && Recording) { LogManager.StopRecordingLastLog(); BeepStopSound.Play(); Recording = false; } if (Recording) { return; } switch (word) { case "EXTRACT": { Switch.Window.Show(); Switch.GetSwitchable <MainPage>().ExportLogs(null, null); break; } case "PLAY": LogManager.PlayLastLog(); break; case "CLOSE": Switch.Window.Hide(); break; case "EXIT": Switch.Window.Close(); break; case "SHOW": Switch.Window.Show(); break; case "RECORD": { if (Recording == false) { Recording = true; BeepStartSound.Play(); LogManager.AddLog(); } break; } } }
public Speech() { BeepStartSound.OpenFile(StartSound); BeepStopSound.OpenFile(StopSound); }