Tuesday, March 30, 2010

Consuming Google Text to speech API in Flash

I played around with Google text to speech service. It was real fun trying to make Google say the word in your native language :). After 30 minutes of playing with it i made this demo below. Feel free to download the source :).





You can also download TextToSpeech class that lets you easily call this service.
Example:

import com.candymandesign.flash.speech.TextToSpeech;
TextToSpeech.say("hello there");

4 comments:

  1. how to compile to make swf

    ReplyDelete
  2. very cool, worked for me from flash when compiling to flash 10 but not to Adobe AIR, any ideas?

    ReplyDelete
  3. Anonymous8:03 AM

    Yeah, this doesn't work when uploaded, but works fine off the desktop. What sort of permission/cross domain files do we need to get it to work now?

    ReplyDelete
  4. Hi! Is this still available somehow?

    ReplyDelete