SPRAAK
|
Continue Automatische Klank-Evaluatie. More...
Continue Automatische Klank-Evaluatie.
spr_space_cake [-help](flag: ) [-V](flag: ) <-c configuration file> <-p parser> [-s communication socket](localhost:20100) [-e error stream] [-a audio dump]
Continue Automatische Klank-Evaluatie. A configurable speech interface using sockets for communication with other processes. Designed for the SPACE project.
The monitor output starts with a square bracket open '[' on a single line and stops at a square bracket close ']' on a single. In between the brackets, the recognition progress is reported whenever the recognizer is certain about a new word in the single best output string or when some timer is expired (the times value can be set in the .ini file).
The lines reporting on the recognition progress have the following format:
Note that the last output per update is a '@' line.
On top of the standard [sections]->(key,value) tuples (see Higher level API configuration file and table format), the following extra tuples are used by spr_space_cake:
The exercise info has to consist of the following:
Known command that can be send to spr_space_cake via the socket:
[Commands] | |
---|---|
select <name> ... | |
Select a given sentence from an exercise and start the recognition. | |
synchronize <id> ... | |
Send back a synchronization marker (exact copy of the input, with leading/trailing spaces removed). | |
audio.flush <iframe> | |
Discard all audio up till (but not including) the specified frame number. | |
audio.discard <on/off> | |
Discard audio between commands or not. | |
audio.ping | |
How many audio-frames have been processed (or discarded) till now. | |
audio.open <host:port> | |
Open the audio socket by connecting to the given port on the given host computer. | |
audio.close | |
Close the audio socket. | |
audio.format | |
Query about the desired audio format. Send back the following line: audio.format <sample_freq> <bits_per_sample> <nchan> <frame_size_in_bytes> <frame_shift_in_seconds> | |
exercise.open <end_marker> ... | |
Open an exercise. Specifications follow in subsequent lines. The end of the specifications is indicated by a line containing only the <end_marker>. | |
exercise.close | |
Close the exercise. | |
data.put <nbytes> <fname> ... | |
Move data from client to server. Paths are relative w.r.t. a configurable start path. The data stream must follow after the new-line closing this command and must be <nbytes> long. | |
data.get <fname> ... | |
Move data from server to client. Paths are relative w.r.t. a configurable start path. First the size of the data is sent (ascii, single line), the data follows directly thereafter. | |
quit | |
Quit. |