Text to Speech in Flex

Back in August at the Flex Jam in Orlando one of the projects we worked on was Text to Speech in Flex. We didn’t finish the project at the Jam so I wanted to post the final version here. Check it out:

(source code)

I used the iSpeech.org API to convert the text to speech. It was pretty easy to build this demo but a production version would need to use a proxy so that the username and password can’t be discovered.

Let me know what you think.

UPDATE: Periodically this demo might stop working because I’ve run out of credits at ispeech.org. If it doesn’t work for you please post a comment here and let me know.

  • This is great! I worked for an organizationthat prototype all its sound with this kind of technology before going in studio.

    And this can be useful for Section 508!

  • Graham P

    Great stuff – I had a play around with FreeTTS a couple of years back and was planning on spending a couple of days recording my own sound library, but unfortunately you need a linux machine and i dont have one handy…. but this certainly re-ignites my interest!

  • Pingback: Interesting ideas using Adobe Flex « Pat IT Dude Blog()

  • works very well indeed. wish they has a male voice for free..free is free so can’t complain. compiled with Flex 4 SDK just fine. nice code J

  • Mathieu Vignau

    Nice and usefull! I hope iSpeech will update the API to support other languages.
    Here is another TTS system but it’s completely AS3 generated, it’s definitely not the same result but it’s really interesting : Synthetic Speech in Flash

  • is it possible to do the other way around? speech to text?

  • Hi denegrate,

    I’ve heard of people doing speech recognition in Flex but I’m not sure if there is anything available yet.


  • Pingback: JosuĂ© Palma Blog » Blog Archive » Text to speech en Flex()

  • Michael

    James just so you know the ws for http://www.adobe.com/products/flex/media/flexapp/ has changed so that the url is no longer available, at least as far as I can tell.

  • Looks like Google does it for free! Sometimes I think Google has too much money.

  • Michael

    Premium entries no longer work…lack of credits.

  • Hi

    Regarding speech recognition in flash, I made an API that uses flash/javascript to enable speech recognition. It is new and buggy :). If it doesn’t work for you please let me know so I can fix it.


    I made a quiz test app at http://www.speechle.com that uses the api.

  • Hey James,
    Great job man..This helped me a lot.

  • abhishek

    wat is the cost for this component ?
    thx in advanced,

  • Lokesh Kumar Sharma

    good stuff. Can we use these API free or there is any cost for using these?

  • Amarjeet Singh

    HI James,

    First of all i want to say thanks for the this stuff.
    I have implemented your Technic in one on of my project, and its was working fine. But instantly yesterday it was stop working. The error is i am not getting the fieldId(its returning 0), but result is showing success.
    Please help me.

  • Jigar Patel

    can we record this voice in any format using this application or text-to-speech API

  • nagarjuna

    hi this is Nagarjuna and when ever am clicking on the read the text button,the request if not handling properly and it taking 4-5 clicks to forward the request to the server

  • Shobaan

    The demo is not working for premium male/female