diff options
Diffstat (limited to 'data/zh_cn/nls-filetrans/2019-08-23/api-docs.php')
| -rw-r--r-- | data/zh_cn/nls-filetrans/2019-08-23/api-docs.php | 240 |
1 files changed, 39 insertions, 201 deletions
diff --git a/data/zh_cn/nls-filetrans/2019-08-23/api-docs.php b/data/zh_cn/nls-filetrans/2019-08-23/api-docs.php index 5409e6a..75eac16 100644 --- a/data/zh_cn/nls-filetrans/2019-08-23/api-docs.php +++ b/data/zh_cn/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' => '任务id。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '4321c5c1c9834384b9d3d6a10bxxxxxx', - ], + 'schema' => ['description' => '任务id。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '4321c5c1c9834384b9d3d6a10bxxxxxx'], ], ], 'responses' => [ @@ -61,39 +41,12 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'TaskId' => [ - 'description' => '任务id。', - 'type' => 'string', - 'example' => '4321c5c1c9834384b9d3d6a10bxxxxxx', - ], - 'RequestId' => [ - 'description' => '请求id。', - 'type' => 'string', - 'example' => 'CA4939D7-5D7B-5B74-AD17-XXXXXXXXXXXX', - ], - 'StatusText' => [ - 'description' => '任务状态text。', - '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' => '任务id。', 'type' => 'string', 'example' => '4321c5c1c9834384b9d3d6a10bxxxxxx'], + 'RequestId' => ['description' => '请求id。', 'type' => 'string', 'example' => 'CA4939D7-5D7B-5B74-AD17-XXXXXXXXXXXX'], + 'StatusText' => ['description' => '任务状态text。', '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' => '任务对应的channelid。', - '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' => '任务对应的channelid。', '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' => '声道id。', - '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' => '声道id。', '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' => '声道id', - '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' => '声道id + 1', - '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' => '声道id', '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' => '声道id + 1', 'type' => 'string', 'example' => '1'], + 'SilenceDuration' => ['description' => '句前的静音时长', 'type' => 'integer', 'format' => 'int32', 'example' => '610'], ], ], ], @@ -229,13 +106,8 @@ ], 'SubmitTask' => [ 'summary' => '文件转写国际版。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -249,21 +121,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' => [ @@ -271,27 +135,10 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'TaskId' => [ - 'description' => '任务id。', - 'type' => 'string', - 'example' => '45b9130064944a7086a51e30671exxxxx', - ], - 'RequestId' => [ - 'description' => '请求id。', - 'type' => 'string', - 'example' => '9347BDEF-069C-5A8F-8024-XXXXXXXXXX', - ], - 'StatusText' => [ - 'description' => '任务状态text。', - 'type' => 'string', - 'example' => 'SUCCESS', - ], - 'StatusCode' => [ - 'description' => '状态码。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '21050000', - ], + 'TaskId' => ['description' => '任务id。', 'type' => 'string', 'example' => '45b9130064944a7086a51e30671exxxxx'], + 'RequestId' => ['description' => '请求id。', 'type' => 'string', 'example' => '9347BDEF-069C-5A8F-8024-XXXXXXXXXX'], + 'StatusText' => ['description' => '任务状态text。', 'type' => 'string', 'example' => 'SUCCESS'], + 'StatusCode' => ['description' => '状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '21050000'], ], ], ], @@ -302,17 +149,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'], ], ]; |
