Second Pust, Big Change

This commit is contained in:
Denny Dai
2015-05-30 00:20:55 +08:00
parent 3667e84a00
commit 9ab379e3c2
15 changed files with 346 additions and 122 deletions
+10
View File
@@ -0,0 +1,10 @@
<?php
PluginList("tts", "文字转语音");
if (preg_match("/^".TAG."tts (.*)$/", $_GET['text'], $matches)) {
$mp3 = file_get_contents("http://tts.baidu.com/text2audio?lan=zh&ie=UTF-8&text=".$matches[1]);
$file = fopen($_GET['from'].".mp3","w");
echo fwrite($file,$mp3);
fclose($file);
$BOT->exec("send_audio ".$from." /home/wwwroot/1.vps.dennx.com/".$_GET['from'].".mp3");
//unlink($matches[1].".mp3");
}