summaryrefslogtreecommitdiff
path: root/data/en_us/nls-filetrans
diff options
context:
space:
mode:
Diffstat (limited to 'data/en_us/nls-filetrans')
-rw-r--r--data/en_us/nls-filetrans/2018-08-17/api-docs.php431
-rw-r--r--data/en_us/nls-filetrans/2019-08-23/api-docs.php240
2 files changed, 225 insertions, 446 deletions
diff --git a/data/en_us/nls-filetrans/2018-08-17/api-docs.php b/data/en_us/nls-filetrans/2018-08-17/api-docs.php
index 516be27..548d4af 100644
--- a/data/en_us/nls-filetrans/2018-08-17/api-docs.php
+++ b/data/en_us/nls-filetrans/2018-08-17/api-docs.php
@@ -1,106 +1,15 @@
<?php return [
'version' => '1.0',
- 'info' => [
- 'style' => 'RPC',
- 'product' => 'nls-filetrans',
- 'version' => '2018-08-17',
- ],
- 'directories' => [
- [
- 'id' => 208121,
- 'title' => null,
- 'type' => 'directory',
- 'children' => [
- 'SubmitTask',
- 'GetTaskResult',
- ],
- ],
- ],
+ 'info' => ['style' => 'RPC', 'product' => 'nls-filetrans', 'version' => '2018-08-17'],
+ 'directories' => ['GetTaskResult', 'SubmitTask'],
'components' => [
'schemas' => [],
],
'apis' => [
- 'SubmitTask' => [
- 'summary' => '提交任务',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
- ],
- [
- 'BearerToken' => [],
- ],
- ],
- 'operationType' => 'readAndWrite',
- 'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'none',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREnls90XY1V',
- ],
- ],
- 'parameters' => [
- [
- 'name' => 'Task',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => '{\\"app_key\\":\\"kOxdqg6xwqvRg8zc\\",\\"file_link\\":\\"https://xxxx-cn.oss-cn-chengdu.aliyuncs.com/2025/5/20/16257504630/xxxxxx.m4a\\"}',
- ],
- ],
- ],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'type' => 'object',
- 'properties' => [
- 'TaskId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '45b9130064944a7086a51e30671exxxxx',
- ],
- 'RequestId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '9347BDEF-069C-5A8F-8024-XXXXXXXXXX',
- ],
- 'StatusText' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'SUCCESS',
- ],
- 'StatusCode' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '21050000',
- ],
- ],
- ],
- ],
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"TaskId\\": \\"45b9130064944a7086a51e30671exxxxx\\",\\n \\"RequestId\\": \\"9347BDEF-069C-5A8F-8024-XXXXXXXXXX\\",\\n \\"StatusText\\": \\"SUCCESS\\",\\n \\"StatusCode\\": 21050000\\n}","type":"json"}]',
- ],
'GetTaskResult' => [
- 'summary' => '获取任务结果',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'summary' => 'Retrieves the task result.',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -112,21 +21,13 @@
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREnls90XY1V',
- ],
+ 'abilityTreeNodes' => ['FEATUREnls90XY1V'],
],
'parameters' => [
[
'name' => 'TaskId',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => '6391f5f7669642d5992f1f23ecxxxxxx',
- ],
+ 'schema' => ['description' => 'The task ID. Only a single ID is supported. The value must be the same as the TaskId returned by SubmitTask.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '6391f5f7669642d5992f1f23ecxxxxxx', 'title' => ''],
],
],
'responses' => [
@@ -134,186 +35,226 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'TaskId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '4321c5c1c9834384b9d3d6a10bxxxxxx',
- ],
- 'RequestId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'CA4939D7-5D7B-5B74-AD17-XXXXXXXXXXXX',
- ],
- 'StatusText' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'SUCCESS',
- ],
- 'BizDuration' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '267500',
- ],
- 'SolveTime' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '12345',
- ],
- 'StatusCode' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '21050000',
- ],
+ 'TaskId' => ['description' => 'The task ID.', 'type' => 'string', 'example' => '4321c5c1c9834384b9d3d6a10bxxxxxx', 'title' => ''],
+ 'RequestId' => ['description' => 'The unique request ID.', 'type' => 'string', 'example' => 'CA4939D7-5D7B-5B74-AD17-XXXXXXXXXXXX', 'title' => ''],
+ 'StatusText' => ['description' => 'The task status label.', 'type' => 'string', 'example' => 'SUCCESS', 'title' => ''],
+ 'BizDuration' => ['description' => 'The total duration of the recognized audio file. Unit: milliseconds.', 'type' => 'integer', 'format' => 'int32', 'example' => '267500', 'title' => ''],
+ 'SolveTime' => ['description' => 'The time when the task was successfully processed.', 'type' => 'integer', 'format' => 'int64', 'example' => '12345', 'title' => ''],
+ 'StatusCode' => ['description' => 'The status code.', 'type' => 'integer', 'format' => 'int32', 'example' => '21050000', 'title' => ''],
'Result' => [
- 'description' => '',
+ 'description' => 'The task processing result. Different task types return different information. Refer to the actual response for details.',
'type' => 'object',
'properties' => [
'Words' => [
- 'description' => '',
+ 'description' => 'The word list.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
- 'EndTime' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '610',
- ],
- 'Word' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '',
- ],
- 'BeginTime' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1180',
- ],
- 'ChannelId' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '0',
- ],
+ 'EndTime' => ['description' => 'The end timestamp of the word. Unit: milliseconds.', 'type' => 'integer', 'format' => 'int32', 'example' => '610', 'title' => ''],
+ 'Word' => ['description' => 'The text content.', 'type' => 'string', 'example' => '化学', 'title' => ''],
+ 'BeginTime' => ['description' => 'The start timestamp of the word. Unit: milliseconds.', 'type' => 'integer', 'format' => 'int32', 'example' => '1180', 'title' => ''],
+ 'ChannelId' => ['description' => 'The channel ID. The first channel is 0, the second channel is 1, and so on.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
+ 'title' => '',
+ 'example' => '',
],
'Paragraphs' => [
- 'description' => '',
+ 'description' => 'The paragraph information list.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
- 'EndTime' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '9800',
- ],
- 'BeginTime' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '610',
- ],
- 'ChannelId' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '0',
- ],
- 'Text' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '',
- ],
+ 'EndTime' => ['description' => 'The end timestamp of the paragraph. Unit: milliseconds.', 'type' => 'integer', 'format' => 'int32', 'example' => '9800', 'title' => ''],
+ 'BeginTime' => ['description' => 'The start timestamp of the paragraph. Unit: milliseconds.', 'type' => 'integer', 'format' => 'int32', 'example' => '610', 'title' => ''],
+ 'ChannelId' => ['description' => 'The channel ID.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'Text' => ['description' => 'The paragraph text.', 'type' => 'string', 'example' => '化学是一门中学基础学科。从初二开始学习,属于理科功课。', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
+ 'title' => '',
+ 'example' => '',
],
'Sentences' => [
- 'description' => '',
+ 'description' => 'The sentence information list.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
- 'EndTime' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '4300',
- ],
- 'BeginTime' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '610',
- ],
- 'ChannelId' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- ],
- 'EmotionValue' => [
- 'description' => '',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '7.0',
- ],
- 'Text' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '',
- ],
- 'SpeechRate' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '98',
- ],
- 'SpeakerId' => [
- 'description' => '',
- 'type' => 'string',
- ],
- 'SilenceDuration' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- ],
+ 'EndTime' => ['description' => 'The end timestamp of the paragraph. Unit: milliseconds.', 'type' => 'integer', 'format' => 'int32', 'example' => '4300', 'title' => ''],
+ 'BeginTime' => ['description' => 'The start timestamp of the paragraph. Unit: milliseconds.', 'type' => 'integer', 'format' => 'int32', 'example' => '610', 'title' => ''],
+ 'ChannelId' => ['description' => 'The channel ID.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => ''],
+ 'EmotionValue' => ['description' => 'The emotion energy value.', 'type' => 'number', 'format' => 'float', 'example' => '7.0', 'title' => ''],
+ 'Text' => ['description' => 'The transcribed content.', 'type' => 'string', 'example' => '化学是一门中学基础学科。', 'title' => ''],
+ 'SpeechRate' => ['description' => 'The speech rate.', 'type' => 'integer', 'format' => 'int32', 'example' => '98', 'title' => ''],
+ 'SpeakerId' => ['description' => 'The speaker ID. The value is the channel ID plus 1.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'SilenceDuration' => ['description' => 'The silence duration before the sentence.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
+ 'title' => '',
+ 'example' => '',
],
],
+ 'title' => '',
+ 'example' => '',
],
- 'RequestTime' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1735956700661',
- ],
+ 'RequestTime' => ['description' => 'The request time.', 'type' => 'integer', 'format' => 'int64', 'example' => '1735956700661', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"TaskId\\": \\"4321c5c1c9834384b9d3d6a10bxxxxxx\\",\\n \\"RequestId\\": \\"CA4939D7-5D7B-5B74-AD17-XXXXXXXXXXXX\\",\\n \\"StatusText\\": \\"SUCCESS\\",\\n \\"BizDuration\\": 267500,\\n \\"SolveTime\\": 12345,\\n \\"StatusCode\\": 21050000,\\n \\"Result\\": {\\n \\"Words\\": [\\n {\\n \\"EndTime\\": 610,\\n \\"Word\\": \\"化学\\",\\n \\"BeginTime\\": 1180,\\n \\"ChannelId\\": 0\\n }\\n ],\\n \\"Paragraphs\\": [\\n {\\n \\"EndTime\\": 9800,\\n \\"BeginTime\\": 610,\\n \\"ChannelId\\": 0,\\n \\"Text\\": \\"化学是一门中学基础学科。从初二开始学习,属于理科功课。\\"\\n }\\n ],\\n \\"Sentences\\": [\\n {\\n \\"EndTime\\": 4300,\\n \\"BeginTime\\": 610,\\n \\"ChannelId\\": 0,\\n \\"EmotionValue\\": 7,\\n \\"Text\\": \\"化学是一门中学基础学科。\\",\\n \\"SpeechRate\\": 98,\\n \\"SpeakerId\\": \\"\\",\\n \\"SilenceDuration\\": 0\\n }\\n ]\\n },\\n \\"RequestTime\\": 1735956700661\\n}","type":"json"}]',
+ 'title' => 'Query task result',
+ 'changeSet' => [
+ ['createdAt' => '2021-05-19T12:36:23.000Z', 'description' => 'OpenAPI offline'],
+ ['createdAt' => '2021-05-19T12:36:23.000Z', 'description' => 'Response parameters changed'],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'nls:GetTaskResult',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'NLS', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'SubmitTask' => [
+ 'summary' => 'Submits a file to the scheduling system and generates the corresponding task.',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ [
+ 'BearerToken' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREnls90XY1V'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Task',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The task information.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '{\\"app_key\\":\\"kOxdqg6xwqvRg8zc\\",\\"file_link\\":\\"https://xxxx-cn.oss-cn-chengdu.aliyuncs.com/2025/5/20/16257504630/xxxxxx.m4a\\"}', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'TaskId' => ['description' => 'The task ID.', 'type' => 'string', 'example' => '45b9130064944a7086a51e30671exxxxx', 'title' => ''],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '9347BDEF-069C-5A8F-8024-XXXXXXXXXX', 'title' => ''],
+ 'StatusText' => ['description' => 'The task status text.', 'type' => 'string', 'example' => 'SUCCESS', 'title' => ''],
+ 'StatusCode' => ['description' => 'The status code.', 'type' => 'integer', 'format' => 'int32', 'example' => '21050000', 'title' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"TaskId\\": \\"45b9130064944a7086a51e30671exxxxx\\",\\n \\"RequestId\\": \\"9347BDEF-069C-5A8F-8024-XXXXXXXXXX\\",\\n \\"StatusText\\": \\"SUCCESS\\",\\n \\"StatusCode\\": 21050000\\n}","type":"json"}]',
+ 'title' => 'Submit task',
+ 'changeSet' => [
+ ['createdAt' => '2021-05-19T12:36:23.000Z', 'description' => 'OpenAPI offline'],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'nls:SubmitTask',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'NLS', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
],
],
'endpoints' => [
+ ['regionId' => 'cn-beijing', 'regionName' => 'China (Beijing)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'nls-filetrans.cn-beijing.aliyuncs.com', 'endpoint' => 'nls-filetrans.cn-beijing.aliyuncs.com', 'vpc' => 'filetrans-vpc.cn-beijing.aliyuncs.com'],
+ ['regionId' => 'cn-shanghai', 'regionName' => 'China (Shanghai)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'nls-filetrans.cn-shanghai.aliyuncs.com', 'endpoint' => 'nls-filetrans.cn-shanghai.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-shenzhen', 'regionName' => 'China (Shenzhen)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'nls-filetrans.cn-shenzhen.aliyuncs.com', 'endpoint' => 'nls-filetrans.cn-shenzhen.aliyuncs.com', 'vpc' => 'filetrans-vpc.cn-shenzhen.aliyuncs.com'],
+ ],
+ 'errorCodes' => [],
+ 'changeSet' => [
[
- 'regionId' => 'cn-beijing',
- 'endpoint' => 'nls-filetrans.cn-beijing.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'GetTaskResult'],
+ ],
+ 'createdAt' => '2022-04-21T08:47:46.000Z',
+ 'description' => '增加request_time字段',
],
[
- 'regionId' => 'cn-shanghai',
- 'endpoint' => 'nls-filetrans.cn-shanghai.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'OpenAPI offline', 'api' => 'GetTaskResult'],
+ ['description' => 'OpenAPI offline', 'api' => 'SubmitTask'],
+ ],
+ 'createdAt' => '2021-05-19T12:36:46.000Z',
+ 'description' => '完成',
],
- [
- 'regionId' => 'cn-shenzhen',
- 'endpoint' => 'nls-filetrans.cn-shenzhen.aliyuncs.com',
+ ],
+ 'ram' => [
+ 'productCode' => 'NLS',
+ 'productName' => 'Intelligent Speech Interaction',
+ 'ramCodes' => ['nls'],
+ 'ramLevel' => 'OPERATION',
+ 'ramConditions' => [],
+ 'ramActions' => [
+ [
+ 'apiName' => 'GetTaskResult',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'nls:GetTaskResult',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'NLS', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'SubmitTask',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'nls:SubmitTask',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'NLS', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'resourceTypes' => [],
],
];
diff --git a/data/en_us/nls-filetrans/2019-08-23/api-docs.php b/data/en_us/nls-filetrans/2019-08-23/api-docs.php
index ca82b0a..3e9acf6 100644
--- a/data/en_us/nls-filetrans/2019-08-23/api-docs.php
+++ b/data/en_us/nls-filetrans/2019-08-23/api-docs.php
@@ -1,19 +1,12 @@
<?php return [
'version' => '1.0',
- 'info' => [
- 'style' => 'RPC',
- 'product' => 'nls-filetrans',
- 'version' => '2019-08-23',
- ],
+ 'info' => ['style' => 'RPC', 'product' => 'nls-filetrans', 'version' => '2019-08-23'],
'directories' => [
[
'id' => 0,
'title' => '其它',
'type' => 'directory',
- 'children' => [
- 'GetTaskResult',
- 'SubmitTask',
- ],
+ 'children' => ['GetTaskResult', 'SubmitTask'],
],
],
'components' => [
@@ -22,13 +15,8 @@
'apis' => [
'GetTaskResult' => [
'summary' => '文件转写国际版',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -39,21 +27,13 @@
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREnls90XY1V',
- ],
+ 'abilityTreeNodes' => ['FEATUREnls90XY1V'],
],
'parameters' => [
[
'name' => 'TaskId',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => '4321c5c1c9834384b9d3d6a10bxxxxxx',
- ],
+ 'schema' => ['description' => '', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '4321c5c1c9834384b9d3d6a10bxxxxxx'],
],
],
'responses' => [
@@ -61,39 +41,12 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'TaskId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '4321c5c1c9834384b9d3d6a10bxxxxxx',
- ],
- 'RequestId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'CA4939D7-5D7B-5B74-AD17-XXXXXXXXXXXX',
- ],
- 'StatusText' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'SUCCESS',
- ],
- 'BizDuration' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '11230',
- ],
- 'SolveTime' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '12345',
- ],
- 'StatusCode' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '21050000',
- ],
+ 'TaskId' => ['description' => '', 'type' => 'string', 'example' => '4321c5c1c9834384b9d3d6a10bxxxxxx'],
+ 'RequestId' => ['description' => '', 'type' => 'string', 'example' => 'CA4939D7-5D7B-5B74-AD17-XXXXXXXXXXXX'],
+ 'StatusText' => ['description' => '', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'BizDuration' => ['description' => '', 'type' => 'integer', 'format' => 'int32', 'example' => '11230'],
+ 'SolveTime' => ['description' => '', 'type' => 'integer', 'format' => 'int64', 'example' => '12345'],
+ 'StatusCode' => ['description' => '', 'type' => 'integer', 'format' => 'int32', 'example' => '21050000'],
'Result' => [
'description' => '',
'type' => 'object',
@@ -104,29 +57,10 @@
'items' => [
'type' => 'object',
'properties' => [
- 'EndTime' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '610',
- ],
- 'Word' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '',
- ],
- 'BeginTime' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1180',
- ],
- 'ChannelId' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '0',
- ],
+ 'EndTime' => ['description' => '', 'type' => 'integer', 'format' => 'int32', 'example' => '610'],
+ 'Word' => ['description' => '', 'type' => 'string', 'example' => ''],
+ 'BeginTime' => ['description' => '', 'type' => 'integer', 'format' => 'int32', 'example' => '1180'],
+ 'ChannelId' => ['description' => '', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
],
],
],
@@ -136,29 +70,10 @@
'items' => [
'type' => 'object',
'properties' => [
- 'EndTime' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '9800',
- ],
- 'BeginTime' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '610',
- ],
- 'ChannelId' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '0',
- ],
- 'Text' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '',
- ],
+ 'EndTime' => ['description' => '', 'type' => 'integer', 'format' => 'int32', 'example' => '9800'],
+ 'BeginTime' => ['description' => '', 'type' => 'integer', 'format' => 'int32', 'example' => '610'],
+ 'ChannelId' => ['description' => '', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
+ 'Text' => ['description' => '', 'type' => 'string', 'example' => ''],
],
],
],
@@ -168,52 +83,14 @@
'items' => [
'type' => 'object',
'properties' => [
- 'EndTime' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '4300',
- ],
- 'BeginTime' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '610',
- ],
- 'ChannelId' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '0',
- ],
- 'EmotionValue' => [
- 'description' => '',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '7.0',
- ],
- 'Text' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '',
- ],
- 'SpeechRate' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '98',
- ],
- 'SpeakerId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '1',
- ],
- 'SilenceDuration' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '610',
- ],
+ 'EndTime' => ['description' => '', 'type' => 'integer', 'format' => 'int32', 'example' => '4300'],
+ 'BeginTime' => ['description' => '', 'type' => 'integer', 'format' => 'int32', 'example' => '610'],
+ 'ChannelId' => ['description' => '', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
+ 'EmotionValue' => ['description' => '', 'type' => 'number', 'format' => 'float', 'example' => '7.0'],
+ 'Text' => ['description' => '', 'type' => 'string', 'example' => ''],
+ 'SpeechRate' => ['description' => '', 'type' => 'integer', 'format' => 'int32', 'example' => '98'],
+ 'SpeakerId' => ['description' => '', 'type' => 'string', 'example' => '1'],
+ 'SilenceDuration' => ['description' => '', 'type' => 'integer', 'format' => 'int32', 'example' => '610'],
],
],
],
@@ -228,13 +105,8 @@
],
'SubmitTask' => [
'summary' => '文件转写国际版',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -248,21 +120,13 @@
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREnls90XY1V',
- ],
+ 'abilityTreeNodes' => ['FEATUREnls90XY1V'],
],
'parameters' => [
[
'name' => 'Task',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => '{"appkey":"xxxxxx","file_link":"https://test.oss-cn-hangzhou.aliyuncs.com/cp/2025-05-20/ww6227ace11382caf7/mp3/xxxxxx.mp3","version":"4.0"}',
- ],
+ 'schema' => ['description' => '', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '{"appkey":"xxxxxx","file_link":"https://test.oss-cn-hangzhou.aliyuncs.com/cp/2025-05-20/ww6227ace11382caf7/mp3/xxxxxx.mp3","version":"4.0"}'],
],
],
'responses' => [
@@ -270,27 +134,10 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'TaskId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '45b9130064944a7086a51e30671exxxxx',
- ],
- 'RequestId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '9347BDEF-069C-5A8F-8024-XXXXXXXXXX',
- ],
- 'StatusText' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'SUCCESS',
- ],
- 'StatusCode' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '21050000',
- ],
+ 'TaskId' => ['description' => '', 'type' => 'string', 'example' => '45b9130064944a7086a51e30671exxxxx'],
+ 'RequestId' => ['description' => '', 'type' => 'string', 'example' => '9347BDEF-069C-5A8F-8024-XXXXXXXXXX'],
+ 'StatusText' => ['description' => '', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'StatusCode' => ['description' => '', 'type' => 'integer', 'format' => 'int32', 'example' => '21050000'],
],
],
],
@@ -300,17 +147,8 @@
],
],
'endpoints' => [
- [
- 'regionId' => 'cn-beijing',
- 'endpoint' => 'nls-filetrans.cn-beijing.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-shanghai',
- 'endpoint' => 'nls-filetrans.cn-shanghai.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-shenzhen',
- 'endpoint' => 'nls-filetrans.cn-shenzhen.aliyuncs.com',
- ],
+ ['regionId' => 'cn-beijing', 'endpoint' => 'nls-filetrans.cn-beijing.aliyuncs.com'],
+ ['regionId' => 'cn-shanghai', 'endpoint' => 'nls-filetrans.cn-shanghai.aliyuncs.com'],
+ ['regionId' => 'cn-shenzhen', 'endpoint' => 'nls-filetrans.cn-shenzhen.aliyuncs.com'],
],
];