更新
This commit is contained in:
parent
2e933457b9
commit
a6407044ff
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user