|
|
@@ -12,12 +12,13 @@ class baiduAip
|
|
|
{
|
|
|
|
|
|
//transfer
|
|
|
- public static function transfer($text,$spd=5)
|
|
|
+ public static function transfer($text,$spd=5,$per=0)
|
|
|
{
|
|
|
try{
|
|
|
$client = self::getClient();
|
|
|
$res = $client->synthesis($text,'zh',1,[
|
|
|
'spd'=>$spd,
|
|
|
+ 'per'=>$per,
|
|
|
]);
|
|
|
return $res;
|
|
|
}catch (\Exception $exception){
|