MITRE provides a push to talk server which sends a message to indicate that an audio server should start listening.
static char *oas[] = {This server also accepts the standard server arguments. See the command-line argument parsing library in the Galaxy Communicator documentation for details.
"-push_to_talk", "use push to talk (default)",
"-activate_now", "don't wait for notification of the utterance ID",
"-auto", "don't use push to talk",
NULL
};
reinitialize sets up the push-to-talk prompt. It returns the frame it's passed.
show_partial
is intended to be used to print out a partial SR result. It returns the
frame it's passed.
parameter | type | optional | depends on | description/constraints | |
IN: | :partial_string | string | partial SR result |
This dispatch function returns a frame.
show_input
is intended to be used to print out an SR hypothesis. It returns the frame
it's passed.
parameter | type | optional | depends on | description/constraints | |
IN: | :input_string | string | hypothesis string | ||
:hyp_id | integer | hypothesis ID |
This dispatch function returns a frame.
notify_done
is called to inform the server that SR is completed. If the server is waiting
for a new utterance ID notification to print out the next prompt, the prompt
will now be printed out. It returns the frame it's passed.
parameter | type | optional | depends on | description/constraints | |
IN: | :utterance_id | integer | yes | utterance ID to use for the next input |
This dispatch function returns a frame.
update_utterance_id
is called to provide a new utterance ID to the server. If the server is
waiting for a new utterance ID notification to print out the next prompt,
the prompt will now be printed out. It differs from notify_done
only in that notify_done prints out "Recognition is done".
It returns the frame it's passed.
parameter | type | optional | depends on | description/constraints | |
IN: | :utterance_id | integer | yes | utterance ID to use for the next input |
This dispatch function returns a frame.
{c mainThe utterance ID is sent only if it is > -1 (which will only be true if an utterance ID was passed to the server).
:audio_ready 1
:utterance_id <optional: integer>
}
Copyright (c) 1998 - 2002
The MITRE
Corporation
ALL RIGHTS RESERVED