Text to Speech in Corona SDK

Hello everyone,

This maybe a very simple and naive question, but I was wondering if anyone knows how to, basically, allow users to enter a name, a word… or text in a textfield and then hit a ‘speak’ button, for example to hear the word/text they entered?

It seems like Corona SDK doesn’t support TTS, but is there an API or a work around I can use for this app I am building?

Any help is highly appreciated.

Thank you guys!

Okay everyone,

It seems like this feature hasn’t made it to the API’s yet, but a while a go a great developer shared the following post:

http://developer.coronalabs.com/code/text-speech-using-networkdownload#comment-22659

And it’s great as it helped me getting the issue resolved.  However, if you want it to work properly, makes sure to replace:

"http://translate.google.com/translate\_tts?tl=I+love+Corona", 

with :

"http://www.translate.google.com/translate\_tts?tl=en&q=I+love+Corona",

So it will all look like the following:

network.download( "http://www.translate.google.com/translate\_tts?tl=en&q=I+love+Corona", "GET", networkListener, "corona.mp3", system.TemporaryDirectory )

I hope this helps anyone who’s been struggling to get this TTS to work!

Regards,

magadistudio

Okay everyone,

It seems like this feature hasn’t made it to the API’s yet, but a while a go a great developer shared the following post:

http://developer.coronalabs.com/code/text-speech-using-networkdownload#comment-22659

And it’s great as it helped me getting the issue resolved.  However, if you want it to work properly, makes sure to replace:

"http://translate.google.com/translate\_tts?tl=I+love+Corona", 

with :

"http://www.translate.google.com/translate\_tts?tl=en&q=I+love+Corona",

So it will all look like the following:

network.download( "http://www.translate.google.com/translate\_tts?tl=en&q=I+love+Corona", "GET", networkListener, "corona.mp3", system.TemporaryDirectory )

I hope this helps anyone who’s been struggling to get this TTS to work!

Regards,

magadistudio

Thank you for this wonderful information, but please update the link sent, as it is linked to the old platform name and is not valid when trying to access it, and is there anything new during the past ten years?