using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Text; using System.ConsoleApp; using System.ConsoleApp.Commands; namespace Speech.Commands { [ConsoleCommand("info")] class info_command : BaseCommand { public static bool execute(string line, string cmd, NameValueCollection arguments) { WriteLine(new NameValueCollection() { {"Port", Program.api.Port.ToString() }, {"Running", Program.api.Running?"True":"False" }, {"Text2Speech", SpeechExecute.SpeechSystem.GetName() }, {"Play", SpeechExecute.PlaySystem.GetName() }, {"Is Playing", SpeechExecute.isPlaying?"True":"False" }, {"Is Generating", SpeechExecute.isGenerating?"True":"False" }, {"Cached Items", SpeechExecute.Cache.Count.ToString() }, {"Cached Direcotry", SpeechExecute.Cache.Directory.Replace("\\","/") } }, false); return false; } } }