summaryrefslogtreecommitdiff
path: root/data/en_us/nls-filetrans/2019-08-23/api-docs.php
diff options
context:
space:
mode:
authorZhineng Li <im@zhineng.li>2026-07-12 17:11:17 +0800
committerZhineng Li <im@zhineng.li>2026-07-12 17:11:17 +0800
commit1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634 (patch)
tree5f0857666365b7e40cdaa3733ebe1f3ba9e13c67 /data/en_us/nls-filetrans/2019-08-23/api-docs.php
parent7347bac4ab7e136157fc94777e6cf87ef9e08599 (diff)
downloadafterglow-metadata-full-1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634.tar.gz
afterglow-metadata-full-1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634.zip
update APIs 20260712
Diffstat (limited to 'data/en_us/nls-filetrans/2019-08-23/api-docs.php')
-rw-r--r--data/en_us/nls-filetrans/2019-08-23/api-docs.php240
1 files changed, 39 insertions, 201 deletions
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'],
],
];