translate && del Redundant codes && some new var

This commit is contained in:
Denny Dai
2015-05-30 01:30:08 +08:00
parent 75c23b86e9
commit 2347defd47
10 changed files with 18 additions and 100 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
<?php
PluginList("tts", "文字转语音");
PluginList("tts", "Text To Speech");
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");