1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
|
<?php return [
'version' => '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' => [],
],
];
|