as3 Text To Speech plus proxy

A while back I wrote a post on a few as3 classes I wrote that would hook into googles text to speech engine (you can view the original post here). Unfortunately there was a few problems with the way it worked, first and foremost not all browsers handled the cross domain sound request the same, as in IE/Chrome bitched about cross domain policy files. secondly there were some issues around using special characters (non english character sets) I wasn’t using these classes in any commercial projects, so sadly these issues were never investigated, well that is until a chap by the name of Daniel Kazmer needed this type of functionality in one of his projects, I suggested looking into a proxy for the cross domain issues and that’s just what he did. Click here to download the as3 text to speech classes as well as the proxy file Dan created (Note you’ll need php and curl installed to take advantage of the proxy). While this is a step in the right direction it turns out there are still some issues surrounding special characters, but regardless thanks for your input...

TextToSpeech Accessibility

I recently posted a TextToSpeech as3 interface class which you can view here. Basically you pass it a string and it will read it out loud. Today I’ve added an easy way to increase the accessibility of your flash microsite without having to go through the whole project adding code to every button. Simply add the two lines below to your root document and this class will search through every display object and add rollover text to speech. ?View Code ACTIONSCRIPT1 2 3 import ps.GText2Speech.Accessibility;   var accessibility:Accessibility = new Accessibility(this); You can also specify to read the text on a click or rollout instead of the default rollover. ?View Code ACTIONSCRIPT1 2 3 4 5 6 import ps.GText2Speech.Accessibility;   var accessibility:Accessibility = new Accessibility(this); accessibility.Rollover = false; accessibility.Click = true; accessibility.Rollout = true; In most cases there will probably be some textfields you want to ignore, so if you need to do this simply add the display object to the exclude list. ?View Code ACTIONSCRIPT1 accessibility.exclude(mc_skip); You can download the source and example files here. If you fine any bugs or have any additional feature requests please post them below....