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

Hodges
#27547 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]