This commit is contained in:
mkm 2023-10-14 09:49:46 +08:00
parent 2e933457b9
commit a6407044ff

View File

@ -78,7 +78,7 @@ class Pusher
// $this->tts( $text . $arr[0]);
unset($arr[0]);
$tt='';
$pattern = "/[,.?!;:]/";
$pattern = "/[]/";
foreach ($arr as $k => $v) {
$tt .= $v;
@ -97,7 +97,7 @@ class Pusher
} else {
$a=$resp['payload']['choices']['text'][0]['content'];
if(strlen($a)>0){
$pattern = "/[,.?!;:]/";
$pattern = "/[]/";
if (preg_match($pattern, $a)) {
$resp['payload']['choices']['tts_text'] = $text;
} else {