更新
This commit is contained in:
parent
2e933457b9
commit
a6407044ff
@ -78,7 +78,7 @@ class Pusher
|
|||||||
// $this->tts( $text . $arr[0]);
|
// $this->tts( $text . $arr[0]);
|
||||||
unset($arr[0]);
|
unset($arr[0]);
|
||||||
$tt='';
|
$tt='';
|
||||||
$pattern = "/[,.?!;:]/";
|
$pattern = "/[。]/";
|
||||||
|
|
||||||
foreach ($arr as $k => $v) {
|
foreach ($arr as $k => $v) {
|
||||||
$tt .= $v;
|
$tt .= $v;
|
||||||
@ -97,7 +97,7 @@ class Pusher
|
|||||||
} else {
|
} else {
|
||||||
$a=$resp['payload']['choices']['text'][0]['content'];
|
$a=$resp['payload']['choices']['text'][0]['content'];
|
||||||
if(strlen($a)>0){
|
if(strlen($a)>0){
|
||||||
$pattern = "/[,.?!;:]/";
|
$pattern = "/[。]/";
|
||||||
if (preg_match($pattern, $a)) {
|
if (preg_match($pattern, $a)) {
|
||||||
$resp['payload']['choices']['tts_text'] = $text;
|
$resp['payload']['choices']['tts_text'] = $text;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user