diff --git a/sample/createMediaVoiceSeparateJobs.php b/sample/createMediaVoiceSeparateJobs.php index fda0934..be9bdb8 100644 --- a/sample/createMediaVoiceSeparateJobs.php +++ b/sample/createMediaVoiceSeparateJobs.php @@ -32,6 +32,31 @@ 'BassObject' => 'VoiceSeparate03.mp3', 'DrumObject' => 'VoiceSeparate04.mp3', ), +// 'UserData' => 'xxx', // 透传用户信息 +// 'JobLevel' => '0', // 任务优先级,级别限制:0 、1 、2。级别越大任务优先级越高,默认为0 + ), + )); + // 请求成功 + print_r($result); + // end --------------- 使用模版 ----------------- // + + // start --------------- 自定义参数 ----------------- // + $result = $cosClient->createMediaVoiceSeparateJobs(array( + 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Tag' => 'VoiceSeparate', + 'CallBack' => '', + 'Input' => array( + 'Object' => 'test.mp3' + ), + 'Operation' => array( + 'Output' => array( + 'Region' => $region, + 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Object' => 'VoiceSeparate01.mp3', + 'AuObject' => 'VoiceSeparate02.mp3', + 'BassObject' => 'VoiceSeparate03.mp3', + 'DrumObject' => 'VoiceSeparate04.mp3', + ), 'VoiceSeparate' => array( 'AudioMode' => 'AudioAndBackground', 'AudioConfig' => array( diff --git a/src/CommandToRequestTransformer.php b/src/CommandToRequestTransformer.php index f9e7d65..d1ed523 100644 --- a/src/CommandToRequestTransformer.php +++ b/src/CommandToRequestTransformer.php @@ -377,6 +377,7 @@ public function cosDomain2CiTransformer(CommandInterface $command, $request) { 'CreateMediaTargetRecTemplate' => 1, 'UpdateMediaTargetRecTemplate' => 1, 'CreateMediaTargetRecJobs' => 1, + 'CreateMediaSegmentVideoBodyJobs' => 1, 'OpenAsrService' => 1, 'CloseAsrService' => 1, 'GetAsrQueueList' => 1,