print(c, " focus none|shared|exclusive - request voice focus");
print(c, " add command <command> - add new command");
print(c, " del command <command> - delete a command");
- print(c, " tts render '<msg>' timeout subscribe");
- print(c, " tts cancel '<id>'");
+ print(c, " render tts '<msg>' \\ - request TTS of <msg>");
+ print(c, " [-voice:<voice>] \\");
+ print(c, " [-timeout:<timeout>]\\");
+ print(c, " [-events]");
+ print(c, " cancel tts '<id>' - cancel given TTS "
+ "request");
print(c, " list commands - list commands set");
+ print(c, " list voices - list available voices");
print(c, " help - show this help");
print(c, " exit - exit from client");
}
list_commands(c);
else if (!strcmp(cmd, "list" ) && !strcmp(args[0], "voices"))
query_voices(c, NULL);
+ else if (!strcmp(cmd, "cancel"))
+ cancel_tts(c, narg-1, args+1);
else
print(c, "Invalid command.");
break;
else if (!strcmp(args[0], "tts")) {
if (!strcmp(cmd, "render"))
request_tts(c, narg-1, args+1);
- else if (!strcmp(cmd, "cancel"))
- cancel_tts(c, narg-1, args+1);
else
print(c, "Invalid TTS command.");
}