get an sound input to send a mouseup

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

get an sound input to send a mouseup

Post by jmburnod » Sun Aug 23, 2009 6:53 pm

Hi All,

Is there a way to get a sound input ?

I try explane with my poor english :

When the user say a short word, revolution understand "mouseup"

Thank

Jean-Marc

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Sun Aug 23, 2009 10:13 pm

Hi Jean-Marc,

Yes, this is possible, but not with vanilla scripting. On the Mac, you'll need to figure out how to use AppleScript for speech recognition and how to execute scripts in Revolution from within AppleScript. Same applies to VBScript or JScript on Windows.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

SparkOut
Posts: 2949
Joined: Sun Sep 23, 2007 4:58 pm

Post by SparkOut » Sun Aug 23, 2009 10:28 pm

On Windows Vista (presumably Windows 7 will as well) there is the speech recognition system under the "Ease of Access" settings in the control panel. http://www.microsoft.com/enable/demos/w ... hdemo.aspx
This should allow interfacing with any program, in theory. A user can "click" at a mouse point by getting it to overlay a grid and selecting a number corresponding to the screen zone, then zooming in and selecting the smaller corresponding zone and so on. Rather cumbersome indeed.
I'm sure it's possible to access the API for it somehow to make it more tailored for your program requirements, but I can't give you any advice on that I'm afraid.

Post Reply