Front End Support > MaLa Frontend

Mala LEDWizard v1.1 Available

<< < (3/3)

edge:

--- Quote from: loadman on January 07, 2007, 04:01:03 pm ---
And Possibly Potential integration with loadman's Speech plugin:
 This would flash each button/Control and say (with speech) it's function
* This would be triggered by games played less than 5 times or when manual triggered
 * In and case you would have the option to skip or repeat

--- End quote ---

Nice, loadman.  I am sure your wife is very happy. ;)

loadman:

--- Quote from: edge on January 07, 2007, 06:27:55 pm ---
--- Quote from: loadman on January 07, 2007, 04:01:03 pm ---
And Possibly Potential integration with loadman's Speech plugin:
 This would flash each button/Control and say (with speech) it's function
* This would be triggered by games played less than 5 times or when manual triggered
 * In and case you would have the option to skip or repeat

--- End quote ---

I would be happy if I cold skip her speech sometimes  :laugh2:
Nice, loadman.  I am sure your wife is very happy. ;)

--- End quote ---

headkaze:
Just some advice when working on the "Speak Buttons Actions" feature, if you create a thread to loop through each button, you should not use SpeechVoiceSpeakFlags.SVSFDefault or WaitUntilDone because "The WaitUntilDone method explicitly blocks program execution until the voice finishes." You must use the SpeechVoiceSpeakFlags.SVSFlagsAsync flag with the SpeakCompleteEvent Method and the WaitForSingleObject() API function.

So first you create thread for method SpeakButtons()

Eg. Some pseudo code...

--- Code: ---SpeakButtons()
{
   loop(through each button)
   {
       light up button on LEDWiz

       get button action

       voice.Speak(button action, SpeechVoiceSpeakFlags.SVSFlagsAsync);

       int handle = voice.SpeakCompleteEvent();

       WaitForSingleObject(handle, INFINITE);
   }
}
--- End code ---

It's important you do it that way otherwise the whole FE will freeze up until each word is spoken. Using the above method in a thread, it will continue executing.

Just thought I'd share my results, hope it helps.

loadman:
Thanks again Mr Headkaze

Navigation

[0] Message Index

[*] Previous page

Go to full version