Skip to content

Instantly share code, notes, and snippets.

@debojitkakoti
Created February 15, 2014 11:46
Show Gist options
  • Save debojitkakoti/9018237 to your computer and use it in GitHub Desktop.
Save debojitkakoti/9018237 to your computer and use it in GitHub Desktop.
GOOGLE undocumented TTS engine in HINDI
<?php
$words ="dilli%20bharat%20ki%20rajdhani%20hey";
$file = "sample.wav";
if (!file_exists($file)) {
$mp3 = file_get_contents('http://translate.google.com/translate_tts?tl=hi&q='.$words);
file_put_contents($file, $mp3);
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment