Uses Google Translator to convert text to speech (TTS) with PHP.
Saves file as MP3 (converts to OGG using mp32ogg) and plays back with browsers built in HTML5 audio player.
Creating this for HeckleOnline.com
Google Online convertor: http://translate.google.com/translate_tts?tl=en&q=Your Text Here
Still having some issues with Firefox... Works with WebKit browsers; Safari and Chrome.


Warning: file_get_contents(http://translate.google.com/translate_tts?tl=en&q=This+is+a+PHP+%2B+Google+TTS+solution): failed to open stream: HTTP request failed! HTTP/1.0 429 Too Many Requests in /home/roncamer/public_html/stuffthatspins.com/stuff/php-TTS/tts.php on line 45


TTS: This is a PHP + Google TTS solution
MP3: http://stuffthatspins.com/stuff/php-TTS/files/1566711116.mp3
OGG: http://stuffthatspins.com/stuff/php-TTS/files/1566711116.ogg





Download Source Files | StuffThatSpins.com