using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Text; using System.ConsoleApp; using System.ConsoleApp.Commands; namespace Speech.Commands { [ConsoleCommand("say")] public class say_command : BaseCommand { public static bool execute(string line, string command, NameValueCollection arg) { System.Diagnostics.Debug.WriteLine("Command: " + command); string[] keys = arg.AllKeys; foreach(string key in keys) { System.Diagnostics.Debug.WriteLine("- " + key + ": " + arg[key]); } SpeechExecute.Say(arg["general"], text.eMood.All); return false; } } }