'1.0', 'info' => ['style' => 'RPC', 'product' => 'nls-filetrans', 'version' => '2018-08-17'], 'directories' => ['GetTaskResult', 'SubmitTask'], 'components' => [ 'schemas' => [], ], 'apis' => [ 'GetTaskResult' => [ 'summary' => 'Retrieves the task result.', 'methods' => ['get'], 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeNodes' => ['FEATUREnls90XY1V'], ], 'parameters' => [ [ 'name' => 'TaskId', 'in' => 'query', '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' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ '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' => 'The task processing result. Different task types return different information. Refer to the actual response for details.', 'type' => 'object', 'properties' => [ 'Words' => [ 'description' => 'The word list.', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ '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' => 'The paragraph information list.', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ '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' => 'The sentence information list.', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ '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' => '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' => [ [ 'apis' => [ ['description' => 'Response parameters changed', 'api' => 'GetTaskResult'], ], 'createdAt' => '2022-04-21T08:47:46.000Z', 'description' => '增加request_time字段', ], [ 'apis' => [ ['description' => 'OpenAPI offline', 'api' => 'GetTaskResult'], ['description' => 'OpenAPI offline', 'api' => 'SubmitTask'], ], 'createdAt' => '2021-05-19T12:36:46.000Z', 'description' => '完成', ], ], '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' => [], ], ];