Форуми / Craftwork / Server-side / Google Text to Speech API

Hodges
#1 19.12.2010 05:32
  • Background: google has a fantastic text-to-speech translation engine.

  • This can be accessed with one URL: http://translate.google.co.uk/translate_tts?q=Long+live+Cotonti!

  • Problem: This API is limited to 100 characters per GET.

  • Solution: PHP script that can take a long body of text, split it into 100 character chunks (without splitting words) and then create a m3u playlist of the generated URLs.

  • Try it for yourself and let me know what you think.

    [save as index.php]
schulle4u
#2 21.12.2010 21:57
Thanks, that's a very cool demonstration. Someone should make a cotonti plugin of it. However, google probably wouldn't be very glad about such an usage of their TTS system. :)

Steffen
signature://doesnt.exist