USpeak: Difference between revisions
No edit summary |
No edit summary |
||
| Line 112: | Line 112: | ||
This can be done via simple calls to the X11 Server. Here is a snippet of how that can be done. | This can be done via simple calls to the X11 Server. Here is a snippet of how that can be done. | ||
<source lang=cpp> | |||
// Get the currently focused window. | |||
XGetInputFocus(...); | |||
// Create the event | |||
XKeyEvent event = createKeyEvent(...); | |||
// Send the KEYCODE. We can define these using XK_ constants | |||
XSendEvent(...); | |||
// Resend the event to emulate the key release | |||
event = createKeyEvent(...); | |||
XSendEvent(...); | |||
</source> | |||
| Line 156: | Line 162: | ||
I will be using (and have been using) Juilus as the speech recognition tool. Julius is suited for both dictation (continuous speech recognition) and command and control. A grammar-based recognition parser named "Julian" is integrated into Julius which is modified to use hand-designed DFA grammar as a language model. And hence it is suited for voice command system of small vocabulary, or various spoken dialog system tasks. | I will be using (and have been using) Juilus as the speech recognition tool. Julius is suited for both dictation (continuous speech recognition) and command and control. A grammar-based recognition parser named "Julian" is integrated into Julius which is modified to use hand-designed DFA grammar as a language model. And hence it is suited for voice command system of small vocabulary, or various spoken dialog system tasks. | ||
The coding will be done in C | The coding will be done in C, shell scripts and Python and recording will be done on an external computer and the compiled model will be stored on the XO. I own an XO because of my previous efforts and hence I plan to work natively on it and test the performance real time. | ||
---- | ---- | ||