backup
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
PluginList("tts", "Text To Speech");
|
||||
if (preg_match("/^".TAG."tts (.*)$/", $text, $matches)) {
|
||||
if (preg_match("/^".preg_quote(TAG, '/')."tts (.*)$/", $text, $matches)) {
|
||||
$mp3 = file_get_contents("http://tts.baidu.com/text2audio?lan=zh&ie=UTF-8&text=".urlencode($matches[1]));
|
||||
$file = fopen($from.".mp3","w");
|
||||
echo fwrite($file,$mp3);
|
||||
|
||||
Reference in New Issue
Block a user