Changes

Jump to navigation Jump to search
156 bytes removed ,  08:34, 28 March 2009
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>
                      XGetInputFocus(...); //to focus to the window.
+
// Get the currently focused window.
                      // Create the event
+
XGetInputFocus(...);  
                      XKeyEvent event = createKeyEvent(...);
+
 
                      // Send the KEYCODE. We can define these using XK_ constants
+
// Create the event
                      XSendEvent(...);
+
XKeyEvent event = createKeyEvent(...);
                      // Resend the event to emulate the key release
+
 
                      event = createKeyEvent(...);
+
// Send the KEYCODE. We can define these using XK_ constants
                      XSendEvent(...);
+
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 and shell scripts 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.
+
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.
    
----
 
----
52

edits

Navigation menu