Sometimes, especially when a web application is dynamic at the client side (e.g. Flash, javascript or AJAX heavy sites), it would be really useful to be able to control what Talklets says or does programmatically. So we've listed below, an minimal API to do just that.
Using Javascript
To read text of your choosing
curtext= "Hello world.";
//clear the last text read.
lasttext="";
//Read it.
readit();
To stop reading:
This means you can announce the failure of a form validation verbally, or announce the arrival of a new message in an AJAX email client, or... well just about anything.
Using Flash ActionScript
To stop reading:
This means you get the same control as above. But the benefit here is even more pronounced as self-voicing is the only way you can make flash accessible for users not using Internet Explorer. This of course is a great leap forward for accessibility on the web.
Enter some text in the Flash input box to the left and press
or mouse over the text to see it in action.
Press
to stop reading.
Script Free Speech
Talklets speech features can also be used via script-free methods. Namely submitting to a form embedded on the page. As submit buttons can be assigned accesskeys, it is even possible to build a site that is keyboard accessible to visually impaired users, without useing any javascript at all.
This takes a bit more effort (we're still working on ours), but could be well worth it for those aiming for the most standards compliant, accessible, and inclusive design possible.
Please contact if you'd like to know more...