Created
January 10, 2017 16:07
-
-
Save ducan-ne/2ebcd6feaa51c924e7cce775fe2b3fb6 to your computer and use it in GitHub Desktop.
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 | |
/* | |
* Copyright (c) @ ShareFBScripts.BlogSpot.Com | |
* Author: AnCMS | |
* Date: 2/8/2016 | |
*/ | |
if(array_key_exists('t',$_GET)){ | |
header("Content-type: audio/mpeg"); | |
header("Content-Transfer-Encoding: binary"); | |
header('Pragma: no-cache'); | |
header('Expires: 0'); | |
define('_STR_', trim($_GET['t'])); | |
// print _STR_; | |
readfile(sprintf('http://translate.google.com/translate_tts?%s',http_build_query(array( | |
'ie' => 'UTF-8', | |
'total' => '1', | |
'idx' => '0', | |
'textlen' => strlen(_STR_), | |
'client' => 'tw-ob', | |
'q' => _STR_, | |
'tl' => 'vi' | |
)))); | |
} | |
else{ | |
//header("HTTP/1.0 404 Not Found"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment