Voice command JS issue

@DaireM,

OMG! This is so cool. Last year I needed to test some voice interactions and got text-to-speech javascript working (more here: Instant text to speech ) but couldn’t get voice recognition working in Axure–I’ve been wanting to do this ever since.

And now… it works! IT’S ALIVE !

See this demo and .rp file for a demonstration:
https://l0q5r1.axshare.com
annyang-voice-test.rp (78.0 KB)

To better demonstrate, edit and debug the javascript code, I used a method from @Gregor outlined in this thread: Library for JavaScript, CSS and some little helps. This also allows it to work locally as well as from AxShare. You can take the javascript code from this and paste it in your AxShare plugin or separate .js file if you wish. You might also be interested in this method from @sam.hepworth : Improved Javascript Injection


Yes, I think so… Take a look at my .rp file and how I reference the “success” dynamic panel:
$axure('@success').show({});

I used this excellent resource to find out how to do tons of stuff in Axure via javasript, including how to show/hide widgets: Axure Javascript API

I can’t wait to dig in to the annyang stuff, play around with it and combine it with ResponsiveVoice.JS for a true voice interface prototype. Thanks!

7 Likes