Skip to content

Commit

Permalink
fix asr interface
Browse files Browse the repository at this point in the history
  • Loading branch information
guimingwu committed Jan 11, 2024
1 parent 3bf0bb2 commit be873f0
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions sample/createMediaVoiceSeparateJobs.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
1 change: 1 addition & 0 deletions src/CommandToRequestTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ public function cosDomain2CiTransformer(CommandInterface $command, $request) {
'CreateMediaTargetRecTemplate' => 1,
'UpdateMediaTargetRecTemplate' => 1,
'CreateMediaTargetRecJobs' => 1,
'CreateMediaSegmentVideoBodyJobs' => 1,
'OpenAsrService' => 1,
'CloseAsrService' => 1,
'GetAsrQueueList' => 1,
Expand Down

0 comments on commit be873f0

Please sign in to comment.