From 3bf0bb29bd8025b1b0c1df5f06b8f81adb661322 Mon Sep 17 00:00:00 2001 From: guimingwu Date: Thu, 11 Jan 2024 15:18:53 +0800 Subject: [PATCH] add asr interface --- sample/blindWatermark.php | 28 + sample/closeAsrService.php | 24 + sample/createMediaNoiseReductionTemplate.php | 31 + sample/createMediaVoiceSeparateJobs.php | 25 +- sample/createVoiceSoundHoundJobs.php | 41 ++ sample/createVoiceVocalScoreJobs.php | 44 ++ sample/getAsrBucketList.php | 30 + sample/getAsrQueueList.php | 28 + sample/getBlindWatermark.php | 13 + sample/openAsrService.php | 24 + sample/updateAsrQueue.php | 38 ++ sample/updateMediaNoiseReductionTemplate.php | 32 + src/Client.php | 9 + src/CommandToRequestTransformer.php | 10 +- src/Descriptions.php | 670 +++++++++++++++++++ src/Service.php | 18 + 16 files changed, 1041 insertions(+), 24 deletions(-) create mode 100644 sample/closeAsrService.php create mode 100644 sample/createMediaNoiseReductionTemplate.php create mode 100644 sample/createVoiceSoundHoundJobs.php create mode 100644 sample/createVoiceVocalScoreJobs.php create mode 100644 sample/getAsrBucketList.php create mode 100644 sample/getAsrQueueList.php create mode 100644 sample/openAsrService.php create mode 100644 sample/updateAsrQueue.php create mode 100644 sample/updateMediaNoiseReductionTemplate.php diff --git a/sample/blindWatermark.php b/sample/blindWatermark.php index b4e242f..8e1b48c 100644 --- a/sample/blindWatermark.php +++ b/sample/blindWatermark.php @@ -17,6 +17,8 @@ $blindWatermarkTemplate->setImage("http://examplebucket-125000000.cos.ap-beijing.myqcloud.com/shuiyin.jpeg"); $blindWatermarkTemplate->setType(2); $blindWatermarkTemplate->setLevel(3); + + // -------------------- 1. 下载时处理 -------------------- // $result = $cosClient->getObject(array( 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket 'Key' => 'exampleobject', @@ -25,6 +27,32 @@ )); // 请求成功 print_r($result); + // -------------------- 1. 下载时处理 -------------------- // + + // -------------------- 2. 上传时处理 -------------------- // + $local_path = "/data/exampleobject"; + $picOperationsTemplate = new Qcloud\Cos\ImageParamTemplate\PicOperationsTransformation(); + $picOperationsTemplate->setIsPicInfo(1); + $picOperationsTemplate->addRule($blindWatermarkTemplate, "resultobject"); + $result = $cosClient->putObject(array( + 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Key' => 'exampleobject', + 'Body' => fopen($local_path, 'rb'), + 'PicOperations' => $picOperationsTemplate->queryString(), + )); + // 请求成功 + print_r($result); + // -------------------- 2. 上传时处理 -------------------- // + + // -------------------- 3. 云上数据处理 -------------------- // + $result = $cosClient->ImageProcess(array( + 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Key' => 'exampleobject', + 'PicOperations' => $picOperationsTemplate->queryString(), + )); + // 请求成功 + print_r($result); + // -------------------- 3. 云上数据处理 -------------------- // } catch (\Exception $e) { // 请求失败 echo($e); diff --git a/sample/closeAsrService.php b/sample/closeAsrService.php new file mode 100644 index 0000000..9b8353d --- /dev/null +++ b/sample/closeAsrService.php @@ -0,0 +1,24 @@ + $region, + 'scheme' => 'https', // 万象接口必须用https + 'credentials' => array( + 'secretId' => $secretId, + 'secretKey' => $secretKey))); +try { + // 关闭智能语音服务 https://cloud.tencent.com/document/product/460/95755 + $result = $cosClient->closeAsrService(array( + 'Bucket' => 'examplebucket-1250000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + )); + print_r($result); +} catch (\Exception $e) { + // 请求失败 + echo($e); +} \ No newline at end of file diff --git a/sample/createMediaNoiseReductionTemplate.php b/sample/createMediaNoiseReductionTemplate.php new file mode 100644 index 0000000..ecc7bc8 --- /dev/null +++ b/sample/createMediaNoiseReductionTemplate.php @@ -0,0 +1,31 @@ + $region, + 'scheme' => 'https', //协议头部,默认为http + 'credentials'=> array( + 'secretId' => $secretId, + 'secretKey' => $secretKey))); +try { + // 创建音频降噪模板 https://cloud.tencent.com/document/product/460/94315 + $result = $cosClient->createMediaNoiseReductionTemplate(array( + 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Tag' => 'NoiseReduction', + 'Name' => 'NoiseReduction-Template', + 'NoiseReduction' => array( + 'Format' => 'wav', + 'Samplerate' => '16000', + ), + )); + // 请求成功 + print_r($result); +} catch (\Exception $e) { + // 请求失败 + echo($e); +} diff --git a/sample/createMediaVoiceSeparateJobs.php b/sample/createMediaVoiceSeparateJobs.php index b7c8d8d..fda0934 100644 --- a/sample/createMediaVoiceSeparateJobs.php +++ b/sample/createMediaVoiceSeparateJobs.php @@ -29,29 +29,8 @@ 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket 'Object' => 'VoiceSeparate01.mp3', 'AuObject' => 'VoiceSeparate02.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', diff --git a/sample/createVoiceSoundHoundJobs.php b/sample/createVoiceSoundHoundJobs.php new file mode 100644 index 0000000..c18f1e0 --- /dev/null +++ b/sample/createVoiceSoundHoundJobs.php @@ -0,0 +1,41 @@ + $region, + 'scheme' => 'https', //协议头部,默认为http + 'credentials'=> array( + 'secretId' => $secretId, + 'secretKey' => $secretKey))); +try { + // 提交听歌识曲任务 https://cloud.tencent.com/document/product/460/84795 + $result = $cosClient->createVoiceSoundHoundJobs(array( + 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Tag' => 'SoundHound', + 'Input' => array( + 'Object' => 'test.mp3', + ), + 'Operation' => array( + 'UserData' => 'xxx', // 透传用户信息 + 'JobLevel' => '0', // 任务优先级,级别限制:0 、1 、2。级别越大任务优先级越高,默认为0 + ), +// 'CallBack' => '', +// 'CallBackFormat' => '', +// 'CallBackType' => '', +// 'CallBackMqConfig' => array( +// 'MqRegion' => '', +// 'MqMode' => '', +// 'MqName' => '', +// ), + )); + // 请求成功 + print_r($result); +} catch (\Exception $e) { + // 请求失败 + echo($e); +} diff --git a/sample/createVoiceVocalScoreJobs.php b/sample/createVoiceVocalScoreJobs.php new file mode 100644 index 0000000..8a3d291 --- /dev/null +++ b/sample/createVoiceVocalScoreJobs.php @@ -0,0 +1,44 @@ + $region, + 'scheme' => 'https', //协议头部,默认为http + 'credentials'=> array( + 'secretId' => $secretId, + 'secretKey' => $secretKey))); +try { + // 提交音乐评分任务 https://cloud.tencent.com/document/product/460/96095 + $result = $cosClient->createVoiceVocalScoreJobs(array( + 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Tag' => 'VocalScore', + 'Input' => array( + 'Object' => 'test.mp3', + ), + 'Operation' => array( + "VocalScore" => array( + 'StandardObject' => 'test.mp3', + ), +// 'UserData' => 'xxx', // 透传用户信息 +// 'JobLevel' => '0', // 任务优先级,级别限制:0 、1 、2。级别越大任务优先级越高,默认为0 + ), +// 'CallBack' => '', +// 'CallBackFormat' => '', +// 'CallBackType' => '', +// 'CallBackMqConfig' => array( +// 'MqRegion' => '', +// 'MqMode' => '', +// 'MqName' => '', +// ), + )); + // 请求成功 + print_r($result); +} catch (\Exception $e) { + // 请求失败 + echo($e); +} diff --git a/sample/getAsrBucketList.php b/sample/getAsrBucketList.php new file mode 100644 index 0000000..298034d --- /dev/null +++ b/sample/getAsrBucketList.php @@ -0,0 +1,30 @@ + $region, + 'scheme' => 'https', // 万象接口必须用https + 'credentials'=> array( + 'secretId' => $secretId, + 'secretKey' => $secretKey))); + +try { + // 查询智能语音服务 https://cloud.tencent.com/document/product/460/46232 + $result = $cosClient->getAsrBucketList(array( +// 'Regions' => '', // 可选 地域信息,例如 ap-shanghai、ap-beijing,若查询多个地域以“,”分隔字符串 +// 'BucketNames' => '', // 可选 存储桶名称,以“,”分隔,支持多个存储桶,精确搜索 +// 'BucketName' => '', // 可选 存储桶名称前缀,前缀搜索 +// 'PageNumber' => 1, // 可选 第几页 +// 'PageSize' => 20, // 可选 每页个数 + )); + // 请求成功 + print_r($result); +} catch (\Exception $e) { + // 请求失败 + echo($e); +} diff --git a/sample/getAsrQueueList.php b/sample/getAsrQueueList.php new file mode 100644 index 0000000..ccc281a --- /dev/null +++ b/sample/getAsrQueueList.php @@ -0,0 +1,28 @@ + $region, + 'scheme' => 'https', // 万象接口必须为https + 'credentials' => array( + 'secretId' => $secretId, + 'secretKey' => $secretKey))); +try { + // 查询智能语音队列 https://cloud.tencent.com/document/product/460/46234 + $result = $cosClient->getAsrQueueList(array( + 'Bucket' => 'examplebucket-1250000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket +// 'QueueIds' => 'xxx', // 队列 ID,以“,”符号分割字符串 +// 'State' => 'Active', // Active 表示队列内的作业会被媒体处理服务调度执行, Paused 表示队列暂停,作业不再会被媒体处理调度执行,队列内的所有作业状态维持在暂停状态,已经执行中的任务不受影响 +// 'PageNumber' => '1', // 第几页 +// 'PageSize' => '10', // 每页个数 + )); + print_r($result); +} catch (\Exception $e) { + // 请求失败 + echo($e); +} diff --git a/sample/getBlindWatermark.php b/sample/getBlindWatermark.php index ec4437f..6b017a6 100644 --- a/sample/getBlindWatermark.php +++ b/sample/getBlindWatermark.php @@ -21,6 +21,8 @@ $picOperationsTemplate = new Qcloud\Cos\ImageParamTemplate\PicOperationsTransformation(); $picOperationsTemplate->setIsPicInfo(1); $picOperationsTemplate->addRule($blindWatermarkTemplate, "resultobject"); + + // -------------------- 1. 上传时处理 -------------------- // $result = $cosClient->putObject(array( 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket 'Key' => 'exampleobject', @@ -29,6 +31,17 @@ )); // 请求成功 print_r($result); + // -------------------- 1. 上传时处理 -------------------- // + + // -------------------- 2. 云上数据处理 -------------------- // + $result = $cosClient->ImageProcess(array( + 'Bucket' => 'examplebucket-1250000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Key' => 'exampleobject', + 'PicOperations' => $picOperations->queryString(), + )); + // 请求成功 + print_r($result); + // -------------------- 2. 云上数据处理 -------------------- // } catch (\Exception $e) { // 请求失败 echo($e); diff --git a/sample/openAsrService.php b/sample/openAsrService.php new file mode 100644 index 0000000..4ba8173 --- /dev/null +++ b/sample/openAsrService.php @@ -0,0 +1,24 @@ + $region, + 'scheme' => 'https', // 万象接口必须用https + 'credentials' => array( + 'secretId' => $secretId, + 'secretKey' => $secretKey))); +try { + // 开通智能语音服务 https://cloud.tencent.com/document/product/460/95754 + $result = $cosClient->openAsrService(array( + 'Bucket' => 'examplebucket-1250000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + )); + print_r($result); +} catch (\Exception $e) { + // 请求失败 + echo($e); +} diff --git a/sample/updateAsrQueue.php b/sample/updateAsrQueue.php new file mode 100644 index 0000000..5127efa --- /dev/null +++ b/sample/updateAsrQueue.php @@ -0,0 +1,38 @@ + $region, + 'scheme' => 'https', // 万象接口必须为https + 'credentials'=> array( + 'secretId' => $secretId, + 'secretKey' => $secretKey))); +try { + // 更新智能语音队列 https://cloud.tencent.com/document/product/460/46235 + $result = $cosClient->updateAsrQueue(array( + 'Bucket' => 'examplebucket-1250000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Key' => '', // queueId + 'Name' => 'queue-smart-audio', + 'State' => 'Active', + 'NotifyConfig' => array( + 'State' => 'Off', +// 'Event' => '', +// 'ResultFormat' => '', +// 'Type' => '', +// 'Url' => '', +// 'MqMode' => '', +// 'MqRegion' => '', +// 'MqName' => '', + ), + )); + // 请求成功 + print_r($result); +} catch (\Exception $e) { + // 请求失败 + echo($e); +} diff --git a/sample/updateMediaNoiseReductionTemplate.php b/sample/updateMediaNoiseReductionTemplate.php new file mode 100644 index 0000000..cb56b32 --- /dev/null +++ b/sample/updateMediaNoiseReductionTemplate.php @@ -0,0 +1,32 @@ + $region, + 'scheme' => 'https', //协议头部,默认为http + 'credentials'=> array( + 'secretId' => $secretId, + 'secretKey' => $secretKey))); +try { + // 更新音频降噪模板 https://cloud.tencent.com/document/product/460/94394 + $result = $cosClient->updateMediaNoiseReductionTemplate(array( + 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Key' => '', // TemplateId + 'Tag' => 'NoiseReduction', + 'Name' => 'NoiseReduction-Template', + 'NoiseReduction' => array( + 'Format' => 'wav', + 'Samplerate' => '16000', + ), + )); + // 请求成功 + print_r($result); +} catch (\Exception $e) { + // 请求失败 + echo($e); +} diff --git a/src/Client.php b/src/Client.php index c901fea..ff6769c 100644 --- a/src/Client.php +++ b/src/Client.php @@ -245,6 +245,15 @@ * @method object UpdateMediaTargetRecTemplate(array $args) 更新视频目标检测模板 * @method object CreateMediaTargetRecJobs(array $args) 提交视频目标检测任务 * @method object CreateMediaSegmentVideoBodyJobs(array $args) 提交视频人像抠图任务 + * @method object OpenAsrService(array $args) 开通智能语音服务 + * @method object GetAsrBucketList(array $args) 查询智能语音服务 + * @method object CloseAsrService(array $args) 关闭智能语音服务 + * @method object GetAsrQueueList(array $args) 查询智能语音队列 + * @method object UpdateAsrQueue(array $args) 更新智能语音队列 + * @method object CreateMediaNoiseReductionTemplate(array $args) 创建音频降噪模板 + * @method object UpdateMediaNoiseReductionTemplate(array $args) 更新音频降噪模板 + * @method object CreateVoiceSoundHoundJobs(array $args) 提交听歌识曲任务 + * @method object CreateVoiceVocalScoreJobs(array $args) 提交音乐评分任务 * @see \Qcloud\Cos\Service::getService() */ class Client extends GuzzleClient { diff --git a/src/CommandToRequestTransformer.php b/src/CommandToRequestTransformer.php index c5981e3..f9e7d65 100644 --- a/src/CommandToRequestTransformer.php +++ b/src/CommandToRequestTransformer.php @@ -239,6 +239,7 @@ public function cosDomain2CiTransformer(CommandInterface $command, $request) { 'DescribeDocProcessBuckets' => 1, 'GetPicBucketList' => 1, 'GetAiBucketList' => 1, + 'GetAsrBucketList' => 1, ))) { $origin_host = "ci.{$this->config['region']}.myqcloud.com"; $host = $origin_host; @@ -376,7 +377,14 @@ public function cosDomain2CiTransformer(CommandInterface $command, $request) { 'CreateMediaTargetRecTemplate' => 1, 'UpdateMediaTargetRecTemplate' => 1, 'CreateMediaTargetRecJobs' => 1, - 'CreateMediaSegmentVideoBodyJobs' => 1, + 'OpenAsrService' => 1, + 'CloseAsrService' => 1, + 'GetAsrQueueList' => 1, + 'UpdateAsrQueue' => 1, + 'CreateMediaNoiseReductionTemplate' => 1, + 'UpdateMediaNoiseReductionTemplate' => 1, + 'CreateVoiceSoundHoundJobs' => 1, + 'CreateVoiceVocalScoreJobs' => 1, ); if (key_exists($action, $ciActions)) { // 万象接口需要https,http方式报错 diff --git a/src/Descriptions.php b/src/Descriptions.php index 29d48bf..fbc88ac 100644 --- a/src/Descriptions.php +++ b/src/Descriptions.php @@ -5966,6 +5966,8 @@ public static function CreateMediaVoiceSeparateJobs() { 'Bucket' => array('type' => 'string', 'location' => 'xml', ), 'Object' => array('type' => 'string', 'location' => 'xml', ), 'AuObject' => array('type' => 'string', 'location' => 'xml', ), + 'BassObject' => array( 'type' => 'string', 'location' => 'xml', ), + 'DrumObject' => array( 'type' => 'string', 'location' => 'xml', ), ), ), ), @@ -15733,6 +15735,18 @@ public static function CreateVoiceTtsJobsOutput() { 'TemplateName' => array( 'type' => 'string', 'location' => 'xml', ), 'UserData' => array( 'type' => 'string', 'location' => 'xml', ), 'JobLevel' => array( 'type' => 'string', 'location' => 'xml', ), + 'TtsTpl' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Mode' => array( 'type' => 'string', 'location' => 'xml', ), + 'Codec' => array( 'type' => 'string', 'location' => 'xml', ), + 'VoiceType' => array( 'type' => 'string', 'location' => 'xml', ), + 'Volume' => array( 'type' => 'string', 'location' => 'xml', ), + 'Speed' => array( 'type' => 'string', 'location' => 'xml', ), + 'Emotion' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), 'TtsConfig' => array( 'type' => 'object', 'location' => 'xml', @@ -15785,6 +15799,9 @@ public static function CreateVoiceTtsJobsOutput() { 'CodecTimeBase' => array( 'type' => 'string', 'location' => 'xml', ), 'CodecTagString' => array( 'type' => 'string', 'location' => 'xml', ), 'CodecTag' => array( 'type' => 'string', 'location' => 'xml', ), + 'ColorPrimaries' => array( 'type' => 'string', 'location' => 'xml', ), + 'ColorRange' => array( 'type' => 'string', 'location' => 'xml', ), + 'ColorTransfer' => array( 'type' => 'string', 'location' => 'xml', ), 'Profile' => array( 'type' => 'string', 'location' => 'xml', ), 'Height' => array( 'type' => 'integer', 'location' => 'xml', ), 'Width' => array( 'type' => 'integer', 'location' => 'xml', ), @@ -18520,4 +18537,657 @@ public static function CreateMediaSegmentVideoBodyJobsOutput() { ), ); } + + public static function OpenAsrService() { + return array( + 'httpMethod' => 'POST', + 'uri' => '/{Bucket}asrbucket', + 'class' => 'Qcloud\\Cos\\Command', + 'responseClass' => 'OpenAsrServiceOutput', + 'responseType' => 'model', + 'parameters' => array( + 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ), + ), + ); + } + public static function OpenAsrServiceOutput() { + return array( + 'type' => 'object', + 'additionalProperties' => true, + 'properties' => array( + 'RequestId' => array( 'location' => 'header', 'sentAs' => 'x-ci-request-id', ), + 'ContentType' => array('type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type',), + 'ContentLength' => array('type' => 'numeric', 'minimum' => 0, 'location' => 'header', 'sentAs' => 'Content-Length',), + 'AsrBucket' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'BucketId' => array( 'type' => 'string', 'location' => 'xml',), + 'Name' => array( 'type' => 'string', 'location' => 'xml',), + 'Region' => array( 'type' => 'string', 'location' => 'xml',), + 'CreateTime' => array( 'type' => 'string', 'location' => 'xml',), + ), + ), + ) + ); + } + + public static function GetAsrBucketList() { + return array( + 'httpMethod' => 'GET', + 'uri' => '/asrbucket', + 'class' => 'Qcloud\\Cos\\Command', + 'responseClass' => 'GetAsrBucketListOutput', + 'responseType' => 'model', + 'parameters' => array( + 'Regions' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'regions' ), + 'BucketNames' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'bucketNames' ), + 'BucketName' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'bucketName' ), + 'PageNumber' => array( 'type' => 'integer', 'location' => 'query', 'sentAs' => 'pageNumber' ), + 'PageSize' => array( 'type' => 'integer', 'location' => 'query', 'sentAs' => 'pageSize' ), + ), + ); + } + public static function GetAsrBucketListOutput() { + return array( + 'type' => 'object', + 'additionalProperties' => true, + 'properties' => array( + 'RequestId' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'x-ci-request-id', ), + 'ContentType' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type', ), + 'ContentLength' => array( 'type' => 'numeric', 'minimum'=> 0, 'location' => 'header', 'sentAs' => 'Content-Length', ), + 'TotalCount' => array( 'type' => 'integer', 'location' => 'xml', ), + 'PageNumber' => array( 'type' => 'integer', 'location' => 'xml', ), + 'PageSize' => array( 'type' => 'integer', 'location' => 'xml', ), + 'AsrBucketList' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'BucketId' => array( 'type' => 'string', 'location' => 'xml',), + 'Name' => array( 'type' => 'string', 'location' => 'xml',), + 'Region' => array( 'type' => 'string', 'location' => 'xml',), + 'CreateTime' => array( 'type' => 'string', 'location' => 'xml',), + ), + ), + ), + ), + ); + } + + public static function CloseAsrService() { + return array( + 'httpMethod' => 'DELETE', + 'uri' => '/{Bucket}asrbucket', + 'class' => 'Qcloud\\Cos\\Command', + 'responseClass' => 'CloseAsrServiceOutput', + 'responseType' => 'model', + 'parameters' => array( + 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ), + ), + ); + } + public static function CloseAsrServiceOutput() { + return array( + 'type' => 'object', + 'additionalProperties' => true, + 'properties' => array( + 'RequestId' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'x-ci-request-id', ), + 'ContentType' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type', ), + 'ContentLength' => array( 'type' => 'numeric', 'minimum'=> 0, 'location' => 'header', 'sentAs' => 'Content-Length', ), + 'BucketName' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ); + } + + public static function GetAsrQueueList() { + return array( + 'httpMethod' => 'GET', + 'uri' => '/{Bucket}asrqueue', + 'class' => 'Qcloud\\Cos\\Command', + 'responseClass' => 'GetAsrQueueListOutput', + 'responseType' => 'model', + 'parameters' => array( + 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ), + 'QueueIds' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'queueIds' ), + 'State' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'state' ), + 'PageNumber' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'pageNumber' ), + 'PageSize' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'pageSize' ), + ), + ); + } + public static function GetAsrQueueListOutput() { + return array( + 'type' => 'object', + 'additionalProperties' => true, + 'properties' => array( + 'RequestId' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'x-ci-request-id', ), + 'ContentType' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type', ), + 'ContentLength' => array( 'type' => 'numeric', 'minimum'=> 0, 'location' => 'header', 'sentAs' => 'Content-Length', ), + 'TotalCount' => array( 'type' => 'integer', 'location' => 'xml', ), + 'PageNumber' => array( 'type' => 'integer', 'location' => 'xml', ), + 'PageSize' => array( 'type' => 'integer', 'location' => 'xml', ), + 'QueueList' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'QueueId' => array( 'type' => 'string', 'location' => 'xml', ), + 'Name' => array( 'type' => 'string', 'location' => 'xml', ), + 'State' => array( 'type' => 'string', 'location' => 'xml', ), + 'MaxSize' => array( 'type' => 'integer', 'location' => 'xml', ), + 'MaxConcurrent' => array( 'type' => 'integer', 'location' => 'xml', ), + 'Category' => array( 'type' => 'string', 'location' => 'xml', ), + 'UpdateTime' => array( 'type' => 'string', 'location' => 'xml', ), + 'CreateTime' => array( 'type' => 'string', 'location' => 'xml', ), + 'NotifyConfig' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Url' => array( 'type' => 'string', 'location' => 'xml', ), + 'State' => array( 'type' => 'string', 'location' => 'xml', ), + 'Type' => array( 'type' => 'string', 'location' => 'xml', ), + 'Event' => array( 'type' => 'string', 'location' => 'xml', ), + 'ResultFormat' => array( 'type' => 'string', 'location' => 'xml', ), + 'MqMode' => array( 'type' => 'string', 'location' => 'xml', ), + 'MqRegion' => array( 'type' => 'string', 'location' => 'xml', ), + 'MqName' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + ), + ), + ), + 'NonExistPIDs' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + ); + } + + public static function UpdateAsrQueue() { + return array( + 'httpMethod' => 'PUT', + 'uri' => '/{Bucket}asrqueue/{/Key*}', + 'class' => 'Qcloud\\Cos\\Command', + 'responseClass' => 'UpdateAsrQueueOutput', + 'responseType' => 'model', + 'data' => array( + 'xmlRoot' => array( + 'name' => 'Request', + ), + ), + 'parameters' => array( + 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ), + 'Key' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ), + 'Name' => array( 'location' => 'xml', 'type' => 'string', ), + 'State' => array( 'location' => 'xml', 'type' => 'string', ), + 'NotifyConfig' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'State' => array( 'type' => 'string', 'location' => 'xml', ), + 'Event' => array( 'type' => 'string', 'location' => 'xml', ), + 'ResultFormat' => array( 'type' => 'string', 'location' => 'xml', ), + 'Type' => array( 'type' => 'string', 'location' => 'xml', ), + 'Url' => array( 'type' => 'string', 'location' => 'xml', ), + 'MqMode' => array( 'type' => 'string', 'location' => 'xml', ), + 'MqRegion' => array( 'type' => 'string', 'location' => 'xml', ), + 'MqName' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + ), + ); + } + public static function UpdateAsrQueueOutput() { + return array( + 'type' => 'object', + 'additionalProperties' => true, + 'properties' => array( + 'RequestId' => array( + 'type' => 'string', + 'location' => 'header', + 'sentAs' => 'x-ci-request-id', + ), + 'ContentType' => array( + 'type' => 'string', + 'location' => 'header', + 'sentAs' => 'Content-Type', + ), + 'ContentLength' => array( + 'type' => 'numeric', + 'minimum'=> 0, + 'location' => 'header', + 'sentAs' => 'Content-Length', + ), + 'Queue' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'QueueId' => array( 'type' => 'string', 'location' => 'xml', ), + 'Name' => array( 'type' => 'string', 'location' => 'xml', ), + 'State' => array( 'type' => 'string', 'location' => 'xml', ), + 'MaxSize' => array( 'type' => 'integer', 'location' => 'xml', ), + 'MaxConcurrent' => array( 'type' => 'integer', 'location' => 'xml', ), + 'Category' => array( 'type' => 'string', 'location' => 'xml', ), + 'UpdateTime' => array( 'type' => 'string', 'location' => 'xml', ), + 'CreateTime' => array( 'type' => 'string', 'location' => 'xml', ), + 'NotifyConfig' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'State' => array( 'type' => 'string', 'location' => 'xml', ), + 'Event' => array( 'type' => 'string', 'location' => 'xml', ), + 'ResultFormat' => array( 'type' => 'string', 'location' => 'xml', ), + 'Type' => array( 'type' => 'string', 'location' => 'xml', ), + 'Url' => array( 'type' => 'string', 'location' => 'xml', ), + 'MqMode' => array( 'type' => 'string', 'location' => 'xml', ), + 'MqRegion' => array( 'type' => 'string', 'location' => 'xml', ), + 'MqName' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + ), + ), + ), + ); + } + + public static function CreateMediaNoiseReductionTemplate() { + return array( + 'httpMethod' => 'POST', + 'uri' => '/{Bucket}template', + 'class' => 'Qcloud\\Cos\\Command', + 'responseClass' => 'CreateMediaNoiseReductionTemplateOutput', + 'responseType' => 'model', + 'data' => array( + 'xmlRoot' => array( + 'name' => 'Request', + ), + ), + 'parameters' => array( + 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ), + 'Tag' => array( 'location' => 'xml', 'type' => 'string', ), + 'Name' => array( 'location' => 'xml', 'type' => 'string', ), + 'NoiseReduction' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Format' => array( 'type' => 'string', 'location' => 'xml', ), + 'Samplerate' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + ), + ); + } + public static function CreateMediaNoiseReductionTemplateOutput() { + return array( + 'type' => 'object', + 'additionalProperties' => true, + 'properties' => array( + 'RequestId' => array( + 'type' => 'string', + 'location' => 'header', + 'sentAs' => 'x-ci-request-id', + ), + 'ContentType' => array( + 'type' => 'string', + 'location' => 'header', + 'sentAs' => 'Content-Type', + ), + 'ContentLength' => array( + 'type' => 'numeric', + 'minimum'=> 0, + 'location' => 'header', + 'sentAs' => 'Content-Length', + ), + 'Template' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Tag' => array( 'type' => 'string', 'location' => 'xml', ), + 'Name' => array( 'type' => 'string', 'location' => 'xml', ), + 'TemplateId' => array( 'type' => 'string', 'location' => 'xml', ), + 'BucketId' => array( 'type' => 'string', 'location' => 'xml', ), + 'Category' => array( 'type' => 'string', 'location' => 'xml', ), + 'UpdateTime' => array( 'type' => 'string', 'location' => 'xml', ), + 'CreateTime' => array( 'type' => 'string', 'location' => 'xml', ), + 'NoiseReduction' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Format' => array( 'type' => 'string', 'location' => 'xml', ), + 'Samplerate' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + ), + ), + ), + ); + } + + public static function UpdateMediaNoiseReductionTemplate() { + return array( + 'httpMethod' => 'PUT', + 'uri' => '/{Bucket}template/{/Key*}', + 'class' => 'Qcloud\\Cos\\Command', + 'responseClass' => 'UpdateMediaNoiseReductionTemplateOutput', + 'responseType' => 'model', + 'data' => array( + 'xmlRoot' => array( + 'name' => 'Request', + ), + ), + 'parameters' => array( + 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ), + 'Key' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ), + 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ), + 'Name' => array( 'location' => 'xml', 'type' => 'string', ), + 'NoiseReduction' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Format' => array( 'type' => 'string', 'location' => 'xml', ), + 'Samplerate' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + ), + ); + } + public static function UpdateMediaNoiseReductionTemplateOutput() { + return array( + 'type' => 'object', + 'additionalProperties' => true, + 'properties' => array( + 'RequestId' => array( + 'type' => 'string', + 'location' => 'header', + 'sentAs' => 'x-ci-request-id', + ), + 'ContentType' => array( + 'type' => 'string', + 'location' => 'header', + 'sentAs' => 'Content-Type', + ), + 'ContentLength' => array( + 'type' => 'numeric', + 'minimum'=> 0, + 'location' => 'header', + 'sentAs' => 'Content-Length', + ), + 'Template' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Tag' => array( 'type' => 'string', 'location' => 'xml', ), + 'Name' => array( 'type' => 'string', 'location' => 'xml', ), + 'TemplateId' => array( 'type' => 'string', 'location' => 'xml', ), + 'BucketId' => array( 'type' => 'string', 'location' => 'xml', ), + 'Category' => array( 'type' => 'string', 'location' => 'xml', ), + 'UpdateTime' => array( 'type' => 'string', 'location' => 'xml', ), + 'CreateTime' => array( 'type' => 'string', 'location' => 'xml', ), + 'NoiseReduction' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Format' => array( 'type' => 'string', 'location' => 'xml', ), + 'Samplerate' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + ), + ), + ), + ); + } + + public static function CreateVoiceSoundHoundJobs() { + return array( + 'httpMethod' => 'POST', + 'uri' => '/{Bucket}jobs', + 'class' => 'Qcloud\\Cos\\Command', + 'responseClass' => 'CreateVoiceSoundHoundJobsOutput', + 'responseType' => 'model', + 'data' => array( + 'xmlRoot' => array( + 'name' => 'Request', + ), + ), + 'parameters' => array( + 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ), + 'Tag' => array( 'location' => 'xml', 'type' => 'string', ), + 'Input' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Object' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + 'Operation' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'UserData' => array( 'type' => 'string', 'location' => 'xml', ), + 'JobLevel' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + 'CallBackFormat' => array( 'location' => 'xml', 'type' => 'string', ), + 'CallBackType' => array( 'location' => 'xml', 'type' => 'string', ), + 'CallBack' => array( 'location' => 'xml', 'type' => 'string', ), + 'CallBackMqConfig' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'MqRegion' => array( 'type' => 'string', 'location' => 'xml', ), + 'MqMode' => array( 'type' => 'string', 'location' => 'xml', ), + 'MqName' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + ), + ); + } + public static function CreateVoiceSoundHoundJobsOutput() { + return array( + 'type' => 'object', + 'additionalProperties' => true, + 'properties' => array( + 'RequestId' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'x-ci-request-id', ), + 'ContentType' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type', ), + 'ContentLength' => array( 'type' => 'numeric', 'minimum'=> 0, 'location' => 'header', 'sentAs' => 'Content-Length', ), + 'JobsDetail' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Code' => array( 'type' => 'string', 'location' => 'xml', ), + 'Message' => array( 'type' => 'string', 'location' => 'xml', ), + 'JobId' => array( 'type' => 'string', 'location' => 'xml', ), + 'Tag' => array( 'type' => 'string', 'location' => 'xml', ), + 'State' => array( 'type' => 'string', 'location' => 'xml', ), + 'CreationTime' => array( 'type' => 'string', 'location' => 'xml', ), + 'StartTime' => array( 'type' => 'string', 'location' => 'xml', ), + 'EndTime' => array( 'type' => 'string', 'location' => 'xml', ), + 'QueueId' => array( 'type' => 'string', 'location' => 'xml', ), + 'Input' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Object' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + 'Operation' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'UserData' => array( 'type' => 'string', 'location' => 'xml', ), + 'JobLevel' => array( 'type' => 'string', 'location' => 'xml', ), + 'SoundHoundResult' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'SongList' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Inlier' => array( 'type' => 'integer', 'location' => 'xml',), + 'SingerName' => array( 'type' => 'string', 'location' => 'xml',), + 'SongName' => array( 'type' => 'string', 'location' => 'xml',), + ), + ), + ), + ), + ), + ), + ), + ), + ), + ), + ); + } + + public static function CreateVoiceVocalScoreJobs() { + return array( + 'httpMethod' => 'POST', + 'uri' => '/{Bucket}jobs', + 'class' => 'Qcloud\\Cos\\Command', + 'responseClass' => 'CreateVoiceVocalScoreJobsOutput', + 'responseType' => 'model', + 'data' => array( + 'xmlRoot' => array( + 'name' => 'Request', + ), + ), + 'parameters' => array( + 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ), + 'Tag' => array( 'location' => 'xml', 'type' => 'string', ), + 'Input' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Object' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + 'Operation' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'UserData' => array( 'type' => 'string', 'location' => 'xml', ), + 'JobLevel' => array( 'type' => 'string', 'location' => 'xml', ), + 'VocalScore' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'StandardObject' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + ), + ), + 'CallBackFormat' => array( 'location' => 'xml', 'type' => 'string', ), + 'CallBackType' => array( 'location' => 'xml', 'type' => 'string', ), + 'CallBack' => array( 'location' => 'xml', 'type' => 'string', ), + 'CallBackMqConfig' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'MqRegion' => array( 'type' => 'string', 'location' => 'xml', ), + 'MqMode' => array( 'type' => 'string', 'location' => 'xml', ), + 'MqName' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + ), + ); + } + public static function CreateVoiceVocalScoreJobsOutput() { + return array( + 'type' => 'object', + 'additionalProperties' => true, + 'properties' => array( + 'RequestId' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'x-ci-request-id', ), + 'ContentType' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type', ), + 'ContentLength' => array( 'type' => 'numeric', 'minimum'=> 0, 'location' => 'header', 'sentAs' => 'Content-Length', ), + 'JobsDetail' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Code' => array( 'type' => 'string', 'location' => 'xml', ), + 'Message' => array( 'type' => 'string', 'location' => 'xml', ), + 'JobId' => array( 'type' => 'string', 'location' => 'xml', ), + 'Tag' => array( 'type' => 'string', 'location' => 'xml', ), + 'State' => array( 'type' => 'string', 'location' => 'xml', ), + 'CreationTime' => array( 'type' => 'string', 'location' => 'xml', ), + 'StartTime' => array( 'type' => 'string', 'location' => 'xml', ), + 'EndTime' => array( 'type' => 'string', 'location' => 'xml', ), + 'QueueId' => array( 'type' => 'string', 'location' => 'xml', ), + 'Input' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Object' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + 'Operation' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'UserData' => array( 'type' => 'string', 'location' => 'xml', ), + 'JobLevel' => array( 'type' => 'string', 'location' => 'xml', ), + 'VocalScore' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'StandardObject' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + 'VocalScoreResult' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'PitchScore' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'SentenceScores' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'StartTime' => array( 'type' => 'numeric', 'location' => 'xml', ), + 'EndTime' => array( 'type' => 'numeric', 'location' => 'xml', ), + 'Score' => array( 'type' => 'integer', 'location' => 'xml', ), + ), + ), + 'TotalScore' => array( 'type' => 'integer', 'location' => 'xml', ), + ), + ), + 'RhythemScore' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'SentenceScores' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'StartTime' => array( 'type' => 'numeric', 'location' => 'xml', ), + 'EndTime' => array( 'type' => 'numeric', 'location' => 'xml', ), + 'Score' => array( 'type' => 'integer', 'location' => 'xml', ), + ), + ), + 'TotalScore' => array( 'type' => 'integer', 'location' => 'xml', ), + ), + ), + ), + ), + + ), + ), + ), + ), + ), + ); + } + } diff --git a/src/Service.php b/src/Service.php index 6dfa4a9..43818b2 100644 --- a/src/Service.php +++ b/src/Service.php @@ -3842,6 +3842,15 @@ public static function getService() { 'UpdateMediaTargetRecTemplate' => Descriptions::UpdateMediaTargetRecTemplate(), // 更新视频目标检测模板 'CreateMediaTargetRecJobs' => Descriptions::CreateMediaTargetRecJobs(), // 提交视频目标检测任务 'CreateMediaSegmentVideoBodyJobs' => Descriptions::CreateMediaSegmentVideoBodyJobs(), // 提交视频人像抠图任务 + 'OpenAsrService' => Descriptions::OpenAsrService(), //开通智能语音服务 + 'GetAsrBucketList' => Descriptions::GetAsrBucketList(), // 开通智能语音服务 + 'CloseAsrService' => Descriptions::CloseAsrService(), // 查询智能语音服务 + 'GetAsrQueueList' => Descriptions::GetAsrQueueList(), // 关闭智能语音服务 + 'UpdateAsrQueue' => Descriptions::UpdateAsrQueue(), // 查询智能语音队列 + 'CreateMediaNoiseReductionTemplate' => Descriptions::CreateMediaNoiseReductionTemplate(), // 创建音频降噪模板 + 'UpdateMediaNoiseReductionTemplate' => Descriptions::UpdateMediaNoiseReductionTemplate(), // 更新音频降噪模板 + 'CreateVoiceSoundHoundJobs' => Descriptions::CreateVoiceSoundHoundJobs(), // 提交听歌识曲任务 + 'CreateVoiceVocalScoreJobs' => Descriptions::CreateVoiceVocalScoreJobs(), // 提交音乐评分任务 ), 'models' => array( 'AbortMultipartUploadOutput' => array( @@ -7507,6 +7516,15 @@ public static function getService() { 'UpdateMediaTargetRecTemplateOutput' => Descriptions::UpdateMediaTargetRecTemplateOutput(), 'CreateMediaTargetRecJobsOutput' => Descriptions::CreateMediaTargetRecJobsOutput(), 'CreateMediaSegmentVideoBodyJobsOutput' => Descriptions::CreateMediaSegmentVideoBodyJobsOutput(), + 'OpenAsrServiceOutput' => Descriptions::OpenAsrServiceOutput(), + 'GetAsrBucketListOutput' => Descriptions::GetAsrBucketListOutput(), + 'CloseAsrServiceOutput' => Descriptions::CloseAsrServiceOutput(), + 'GetAsrQueueListOutput' => Descriptions::GetAsrQueueListOutput(), + 'UpdateAsrQueueOutput' => Descriptions::UpdateAsrQueueOutput(), + 'CreateMediaNoiseReductionTemplateOutput' => Descriptions::CreateMediaNoiseReductionTemplateOutput(), + 'UpdateMediaNoiseReductionTemplateOutput' => Descriptions::UpdateMediaNoiseReductionTemplateOutput(), + 'CreateVoiceSoundHoundJobsOutput' => Descriptions::CreateVoiceSoundHoundJobsOutput(), + 'CreateVoiceVocalScoreJobsOutput' => Descriptions::CreateVoiceVocalScoreJobsOutput(), ) ); }