Created
February 15, 2014 11:46
-
-
Save debojitkakoti/9018237 to your computer and use it in GitHub Desktop.
GOOGLE undocumented TTS engine in HINDI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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