You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
544 B
23 lines
544 B
<?php
|
|
|
|
|
|
|
|
use Volc\Service\Notify;
|
|
|
|
require('../../../vendor/autoload.php');
|
|
require('../../src/Service/Notify.php');
|
|
|
|
$client = Notify::getInstance();
|
|
$client->setAccessKey("your ak");
|
|
$client->setSecretKey("your sk");
|
|
|
|
|
|
$body = [
|
|
'Name'=>'测试',
|
|
'TtsTemplateContent'=>'测试',
|
|
'Remark'=>"测试",
|
|
'TtsOption'=>"{\"loop\":0,\"loop_interval\":0,\"speed\":10,\"volume\":10,\"pitch\":10,\"voice_type\":\"BV001_streaming\",\"lang\":\"ch\",\"voice\":\"other\"}",
|
|
];
|
|
|
|
$response = $client->CreateTtsResource($body);
|
|
echo $response;
|
|
|