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
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
|
<?php return [
'version' => '1.0',
'info' => [
'style' => 'ROA',
'product' => 'tingwu',
'version' => '2022-09-30',
],
'directories' => [
[
'id' => 172030,
'title' => null,
'type' => 'directory',
'children' => [
'CreateMeetingTrans',
'GetMeetingTrans',
'StopMeetingTrans',
],
],
[
'id' => 172031,
'title' => null,
'type' => 'directory',
'children' => [
'CreateFileTrans',
'GetFileTrans',
],
],
],
'components' => [
'schemas' => [],
],
'apis' => [
'CreateMeetingTrans' => [
'summary' => '创建实时会议',
'path' => '/openapi/meeting-trans',
'methods' => [
'put',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'consumes' => [
'application/json',
],
'produces' => [
'application/json',
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'title' => '请求body。',
'description' => '',
'type' => 'object',
'properties' => [
'AppKey' => [
'title' => '管控台创建的项目AppKey。',
'description' => '',
'type' => 'string',
'required' => true,
'example' => 'JV1sRTisRMi****',
],
'MeetingKey' => [
'title' => '用户设置的会议标识,在会中查询或会后结束回调时会原样返回。',
'description' => '',
'type' => 'string',
'required' => false,
'example' => 'meeting_123',
],
'AudioFormat' => [
'title' => '音频编码格式,PCM(无压缩的PCM文件或WAV文件)或OPUS(压缩的OPUS文件)。',
'description' => '',
'type' => 'string',
'required' => true,
'example' => 'pcm',
'enum' => [],
],
'AudioPackage' => [
'title' => '音频打包方式,基于听悟约定的Protobuf格式封装多路音频流时设置为multi。',
'description' => '',
'type' => 'string',
'required' => false,
'example' => 'multi',
],
'AudioSampleRate' => [
'title' => '音频采样率,当前支持:16000。',
'description' => '',
'type' => 'integer',
'format' => 'int32',
'required' => true,
'example' => '16000',
'enum' => [],
],
'AudioBitRate' => [
'title' => '会议上传音频采样位数,当前支持:16。',
'description' => '',
'type' => 'integer',
'format' => 'int32',
'required' => true,
'example' => '16',
'enum' => [],
],
'AudioLanguage' => [
'title' => '音频转写使用的语言模型。'."\n"
.'cn:中文。'."\n"
.'en:英文。'."\n"
.'yue:粤语。'."\n"
.'fspk:中英文自由说。'."\n"
.'multi:动态语言切换。',
'description' => '',
'type' => 'string',
'required' => true,
'example' => 'cn',
'enum' => [],
],
'RealtimeResultEnabled' => [
'title' => '是否开启会中实时结果返回,默认是true。',
'description' => '',
'type' => 'boolean',
'required' => false,
'example' => 'true',
'default' => 'false',
],
'RealtimeResultLevel' => [
'title' => '开启会中实时结果返回时,设置识别结果返回等级,默认是1。'."\n"
.'0:不返回识别结果。'."\n"
.'1:识别出完整句子时返回识别结果。'."\n"
.'2:识别出中间结果及完整句子时返回识别结果。',
'description' => '',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '2',
'default' => '1',
'enum' => [],
],
'RealtimeActiveResultLevel' => [
'title' => '开启会中实时结果返回且音频打包方式为multi时,设置发言人识别结果返回等级,默认是1。'."\n"
.'0:不返回识别结果。'."\n"
.'1:识别出完整句子时返回识别结果。'."\n"
.'2:识别出中间结果及完整句子时返回识别结果。',
'description' => '',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '2',
'default' => '1',
'enum' => [],
],
'AudioOutputEnabled' => [
'title' => '是否开启mp3格式音频同步转码,默认是false。',
'description' => '',
'type' => 'boolean',
'required' => false,
'example' => 'false',
'default' => 'false',
],
'AudioOutputOssBucket' => [
'title' => '开启音频同步转码时,转码音频写入到的OSS Bucket,需要与管控台项目配置的OSS Bucket一致。',
'description' => '',
'type' => 'string',
'required' => false,
'example' => 'bucket',
],
'AudioOutputOssPath' => [
'title' => '开启音频同步转码时,转码音频写入到的OSS文件路径,需要以"tingwu/"为前缀。',
'description' => '',
'type' => 'string',
'required' => false,
'example' => 'tingwu/dir/filename',
],
'MeetingResultEnabled' => [
'title' => '是否开启会后智能提取,默认是false。',
'description' => '',
'type' => 'boolean',
'required' => false,
'example' => 'false',
'default' => 'false',
],
'MeetingResultOssBucket' => [
'title' => '开启会后智能提取时,提取结果写入到的OSS Bucket,需要与管控台项目配置的OSS Bucket一致。',
'description' => '',
'type' => 'string',
'required' => false,
'example' => 'bucket',
],
'MeetingResultOssPath' => [
'title' => '开启会后智能提取时,提取结果写入到的OSS文件路径,需要以"tingwu/"为前缀。',
'description' => '',
'type' => 'string',
'required' => false,
'example' => 'tingwu/dir/filename',
],
'DocResultEnabled' => [
'title' => '开启会后智能提取时,是否会中识别结果写入,默认是false。',
'description' => '',
'type' => 'boolean',
'required' => false,
'example' => 'false',
'default' => 'false',
],
'AudioSegmentsEnabled' => [
'title' => '开启会后智能提取时,是否开启有效音频片断检测结果写入,默认是false。',
'description' => '',
'type' => 'boolean',
'required' => false,
'example' => 'false',
'default' => 'false',
],
'TranslateResultEnabled' => [
'title' => '是否开启会中翻译,默认是false。',
'description' => '',
'type' => 'boolean',
'required' => false,
'example' => 'false',
'default' => 'false',
],
'TranslateLanguages' => [
'title' => '翻译目标语言集合,多个语言间用英文逗号","分隔,当前支持cn、en。',
'description' => '',
'type' => 'string',
'required' => false,
'example' => 'cn,en',
],
'TranslateResultLevel' => [
'title' => '单通道识别或多通道mix流识别结果翻译等级。0:不返回翻译结果。 1:识别出完整句子时返回翻译结果。 2:识别出中间结果及完整句子时返回翻译结果。默认是1。',
'description' => '',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '2',
'default' => '1',
],
'TranslateActiveResultLevel' => [
'title' => '多通道Active流识别结果翻译等级。0:不返回翻译结果。 1:识别出完整句子时返回翻译结果。 2:识别出中间结果及完整句子时返回翻译结果。默认是1。',
'description' => '',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '2',
'default' => '1',
],
'RealtimeResultWordsEnabled' => [
'title' => '会中识别消息是否包含words信息,默认是true。',
'description' => '',
'type' => 'boolean',
'required' => false,
'example' => 'true',
'default' => 'true',
],
'RealtimeResultMeetingInfoEnabled' => [
'title' => '会中识别消息结果header中是否包含MeetingKey、MeetingId,默认是false。',
'description' => '',
'type' => 'boolean',
'required' => false,
'example' => 'true',
'default' => 'false',
],
'Tags' => [
'type' => 'object',
'required' => false,
],
'AsrParams' => [
'type' => 'object',
'required' => false,
],
'LabParams' => [
'type' => 'object',
'required' => false,
],
'AbilityParams' => [
'type' => 'object',
'required' => false,
],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => [
'title' => '请求ID,仅用于联调。',
'description' => '',
'type' => 'string',
'example' => '35124E1C-AE99-5D6C-A52E-BD689D8D****',
],
'Code' => [
'title' => '状态码。',
'description' => '',
'type' => 'string',
'example' => '0',
],
'Message' => [
'title' => '状态说明。',
'description' => '',
'type' => 'string',
'example' => 'Success.',
],
'Data' => [
'title' => '返回对象。',
'description' => '',
'type' => 'object',
'properties' => [
'MeetingId' => [
'title' => '会议ID。',
'description' => '',
'type' => 'string',
'example' => 'f7de74778d94422283534102dfc0****',
],
'MeetingJoinUrl' => [
'title' => '会议语音推流地址。',
'description' => '',
'type' => 'string',
'example' => 'wss://tingwu-realtime-cn-beijing.aliyuncs.com/api/ws/v1?mc=****',
],
'MeetingKey' => [
'title' => '用户创建会议时设置的会议标识。',
'description' => '',
'type' => 'string',
'example' => 'meeting_123',
],
],
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"35124E1C-AE99-5D6C-A52E-BD689D8D****\\",\\n \\"Code\\": \\"0\\",\\n \\"Message\\": \\"Success.\\",\\n \\"Data\\": {\\n \\"MeetingId\\": \\"f7de74778d94422283534102dfc0****\\",\\n \\"MeetingJoinUrl\\": \\"wss://tingwu-realtime-cn-beijing.aliyuncs.com/api/ws/v1?mc=****\\",\\n \\"MeetingKey\\": \\"meeting_123\\"\\n }\\n}","type":"json"}]',
],
'GetMeetingTrans' => [
'summary' => '查询实时会议信息',
'path' => '/openapi/meeting-trans/{MeetingId}',
'methods' => [
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'consumes' => [],
'produces' => [
'application/json',
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
],
'parameters' => [
[
'name' => 'MeetingId',
'in' => 'path',
'schema' => [
'title' => '会议ID。',
'description' => '',
'type' => 'string',
'required' => true,
'example' => 'meeting_123',
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => [
'title' => '请求ID,仅用于联调。',
'description' => '',
'type' => 'string',
'example' => '35124E1C-AE99-5D6C-A52E-BD689D8D****',
],
'Code' => [
'title' => '状态码。',
'description' => '',
'type' => 'string',
'example' => '0',
],
'Message' => [
'title' => '状态说明。',
'description' => '',
'type' => 'string',
'example' => 'Success.',
],
'Data' => [
'title' => '返回对象。',
'description' => '',
'type' => 'object',
'properties' => [
'MeetingId' => [
'title' => '会议ID。',
'description' => '',
'type' => 'string',
'example' => 'f7de74778d94422283534102dfc0****',
],
'MeetingStatus' => [
'title' => '会议状态。'."\n"
.'NEW:新会议。'."\n"
.'ONGOING:会议转写中。'."\n"
.'PAUSED:会议转写暂停。'."\n"
.'PRE_COMPLETE:会议转写结束后,进行会后智能提取。'."\n"
.'COMPLETED:会议完成。'."\n"
.'FAILED:会议转写结束后,会后智能提取失败。'."\n"
.'INVALID:无效会议。',
'description' => '',
'type' => 'string',
'example' => 'COMPLETED',
],
'MeetingKey' => [
'title' => '用户创建会议时设置的会议标识。',
'description' => '',
'type' => 'string',
'example' => 'meeting_123',
],
],
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"35124E1C-AE99-5D6C-A52E-BD689D8D****\\",\\n \\"Code\\": \\"0\\",\\n \\"Message\\": \\"Success.\\",\\n \\"Data\\": {\\n \\"MeetingId\\": \\"f7de74778d94422283534102dfc0****\\",\\n \\"MeetingStatus\\": \\"COMPLETED\\",\\n \\"MeetingKey\\": \\"meeting_123\\"\\n }\\n}","type":"json"}]',
],
'StopMeetingTrans' => [
'summary' => '结束实时会议',
'path' => '/openapi/meeting-trans/{MeetingId}/stop',
'methods' => [
'post',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'consumes' => [
'application/json',
],
'produces' => [
'application/json',
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'MeetingId',
'in' => 'path',
'schema' => [
'title' => '会议ID。',
'description' => '',
'type' => 'string',
'required' => true,
'example' => 'meeting_123',
],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '',
'type' => 'object',
'properties' => [
'MeetingRoleNum' => [
'title' => '会后进行识别结果角色区分人数,在AudioOutputEnabled=true、MeetingResultEnabled=true且DocResultEnabled=true 时生效,默认是1。'."\n"
.'0:按多人进行角色区分。'."\n"
.'1:按1人进行角色区分,即不区分。'."\n"
.'2:按2人进行角色区分。',
'description' => '',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '1',
'default' => '1',
],
'OnlyRoleSplitResult' => [
'title' => '会后结果中docResult字段是否只存储角色时间戳映射信息,即不带转写文字结果,默认是false。',
'description' => '',
'type' => 'boolean',
'required' => false,
'example' => 'false',
'default' => 'false',
],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'headers' => [],
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => [
'title' => '请求ID,仅用于联调。',
'description' => '',
'type' => 'string',
'example' => '35124E1C-AE99-5D6C-A52E-BD689D8D****',
],
'Code' => [
'title' => '状态码。',
'description' => '',
'type' => 'string',
'example' => '0',
],
'Message' => [
'title' => '状态说明。',
'description' => '',
'type' => 'string',
'required' => false,
'example' => 'Success.',
],
'Data' => [
'title' => '返回对象。',
'description' => '',
'type' => 'object',
'properties' => [
'MeetingId' => [
'title' => '会议ID。',
'description' => '',
'type' => 'string',
'example' => 'f7de74778d94422283534102dfc0****',
],
'MeetingStatus' => [
'title' => '会议状态。'."\n"
.'NEW:新会议。'."\n"
.'ONGOING:会议转写中。'."\n"
.'PAUSED:会议转写暂停。'."\n"
.'PRE_COMPLETE:会议转写结束后,进行会后智能提取。'."\n"
.'COMPLETED:会议完成。'."\n"
.'FAILED:会议转写结束后,会后智能提取失败。'."\n"
.'INVALID:无效会议。',
'description' => '',
'type' => 'string',
'example' => 'PRE_COMPLETE',
],
'MeetingKey' => [
'title' => '用户创建会议时设置的会议标识。',
'description' => '',
'type' => 'string',
'example' => 'meeting_123',
],
],
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"35124E1C-AE99-5D6C-A52E-BD689D8D****\\",\\n \\"Code\\": \\"0\\",\\n \\"Message\\": \\"Success.\\",\\n \\"Data\\": {\\n \\"MeetingId\\": \\"f7de74778d94422283534102dfc0****\\",\\n \\"MeetingStatus\\": \\"PRE_COMPLETE\\",\\n \\"MeetingKey\\": \\"meeting_123\\"\\n }\\n}","type":"json"}]',
],
'CreateFileTrans' => [
'summary' => '创建音视频转写任务',
'path' => '/openapi/file-trans',
'methods' => [
'put',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'consumes' => [
'application/json',
],
'produces' => [
'application/json',
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'title' => '请求body。',
'description' => '',
'type' => 'object',
'properties' => [
'AppKey' => [
'title' => '管控台创建的项目AppKey。',
'description' => '',
'type' => 'string',
'required' => true,
'example' => 'JV1sRTisRMi****',
],
'TransKey' => [
'title' => '用户设置的任务标识,在任务查询或任务结束回调时会原样返回。',
'description' => '',
'type' => 'string',
'required' => false,
'example' => 'trans_123',
],
'AudioOssBucket' => [
'title' => '需要转写音频所在的OSS Bucket。',
'description' => '',
'type' => 'string',
'required' => false,
'example' => 'bucket',
],
'AudioOssPath' => [
'title' => '需要转写音频所在的OSS文件路径或者自定义可下载文件地址(http|https)。如果AudioOssBucket非空,则需要赋值OSS文件路径(/...../*.mp3);如果AudioOssBucket为空,则需要赋值自定义可下载文件地址(http://……/*.mp3)。',
'description' => '',
'type' => 'string',
'required' => true,
'example' => 'dir1/dir2/filename',
],
'AudioLanguage' => [
'title' => '音频转写使用的语言模型。'."\n"
.'cn:中文。'."\n"
.'en:英文。'."\n"
.'yue:粤语。'."\n"
.'fspk:中英文自由说。',
'description' => '',
'type' => 'string',
'required' => true,
'example' => 'cn',
'enum' => [],
],
'AudioRoleNum' => [
'title' => '是否开启说话人角色区分。注,只对16K及以上采样率生效'."\n"
.'不设置:不使用说话人角色区分。'."\n"
.'0:说话人角色区分结果为不定人数。'."\n"
.'2:说话人角色区分结果为2人。',
'description' => '',
'type' => 'string',
'required' => false,
'example' => '2',
],
'AudioOutputEnabled' => [
'title' => '是否开启mp3格式音频转码,默认是false。',
'description' => '',
'type' => 'boolean',
'required' => false,
'example' => 'false',
'default' => 'false',
],
'AudioOutputOssBucket' => [
'title' => '开启音频转码时,转码音频写入到的OSS Bucket。',
'description' => '',
'type' => 'string',
'required' => false,
'example' => 'bucket',
],
'AudioOutputOssPath' => [
'title' => '开启音频转码时,转码音频写入到的OSS文件路径。',
'description' => '',
'type' => 'string',
'required' => false,
'example' => 'tingwu/dir/filename',
],
'VideoOutputEnabled' => [
'title' => '是否开启mp4格式视频转换,用以将非mp4视频转成mp4格式,默认是false。',
'type' => 'boolean',
'default' => 'false',
],
'VideoOutputOssBucket' => [
'title' => '开启mp4视频转换时,转换后视频写入到的OSS Bucket。',
'type' => 'string',
'example' => 'bucket',
],
'VideoOutputOssPath' => [
'title' => '开启mp4视频转换时,转换后视频写入到的OSS 路径。',
'type' => 'string',
'example' => 'tingwu/dir/filename',
],
'TransResultOssBucket' => [
'title' => '识别及智能提取结果写入到的OSS Bucket。',
'description' => '',
'type' => 'string',
'required' => true,
'example' => 'bucket',
],
'TransResultOssPath' => [
'title' => '识别及智能提取结果写入到的OSS文件路径。'."\n"
.'示例:目录/文件名',
'description' => '',
'type' => 'string',
'required' => true,
'example' => 'tingwu/dir/filename',
],
'AudioSegmentsEnabled' => [
'title' => '是否开启有效音频片断检测结果写入,默认是false。',
'description' => '',
'type' => 'boolean',
'required' => false,
'example' => 'false',
'default' => 'false',
],
'Tags' => [
'type' => 'object',
'required' => false,
],
'AsrParams' => [
'type' => 'object',
'required' => false,
],
'LabParams' => [
'type' => 'object',
'required' => false,
],
'AbilityParams' => [
'type' => 'object',
'required' => false,
],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => [
'title' => '请求ID,仅用于联调。',
'description' => '',
'type' => 'string',
'example' => '35124E1C-AE99-5D6C-A52E-BD689D8D****',
],
'Code' => [
'title' => '状态码。',
'description' => '',
'type' => 'string',
'example' => '0',
],
'Message' => [
'title' => '状态说明。',
'description' => '',
'type' => 'string',
'example' => 'Success.',
],
'Data' => [
'title' => '返回对象。',
'description' => '',
'type' => 'object',
'properties' => [
'TransId' => [
'title' => '任务ID。',
'description' => '',
'type' => 'string',
'example' => 'f7de74778d94422283534102dfc0****',
],
'TransKey' => [
'title' => '用户创建任务时设置的任务标识。',
'description' => '',
'type' => 'string',
'example' => 'trans_123',
],
],
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"35124E1C-AE99-5D6C-A52E-BD689D8D****\\",\\n \\"Code\\": \\"0\\",\\n \\"Message\\": \\"Success.\\",\\n \\"Data\\": {\\n \\"TransId\\": \\"f7de74778d94422283534102dfc0****\\",\\n \\"TransKey\\": \\"trans_123\\"\\n }\\n}","type":"json"}]',
],
'GetFileTrans' => [
'summary' => '查询音视频转写任务信息',
'path' => '/openapi/file-trans/{TransId}',
'methods' => [
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'produces' => [
'application/json',
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
],
'parameters' => [
[
'name' => 'TransId',
'in' => 'path',
'schema' => [
'title' => '任务ID。',
'description' => '',
'type' => 'string',
'required' => true,
'example' => 'trans_123',
],
],
],
'responses' => [
200 => [
'headers' => [],
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => [
'title' => '请求ID,仅用于联调。',
'description' => '',
'type' => 'string',
'example' => '35124E1C-AE99-5D6C-A52E-BD689D8D****',
],
'Code' => [
'title' => '状态码。',
'description' => '',
'type' => 'string',
'example' => '0',
],
'Message' => [
'title' => '状态说明。',
'description' => '',
'type' => 'string',
'example' => 'Success.',
],
'Data' => [
'title' => '返回对象。',
'description' => '',
'type' => 'object',
'properties' => [
'TransId' => [
'title' => '任务ID。',
'description' => '',
'type' => 'string',
'example' => 'f7de74778d94422283534102dfc0****',
],
'TransStatus' => [
'title' => '任务状态。'."\n"
.'ONGOING:任务进行中。'."\n"
.'COMPLETED:任务完成。'."\n"
.'FAILED:任务失败'."\n"
.'INVALID:无效任务。',
'description' => '',
'type' => 'string',
'example' => 'ONGOING',
],
'TransKey' => [
'title' => '用户创建任务时设置的任务标识。',
'description' => '',
'type' => 'string',
'example' => 'trans_123',
],
],
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"35124E1C-AE99-5D6C-A52E-BD689D8D****\\",\\n \\"Code\\": \\"0\\",\\n \\"Message\\": \\"Success.\\",\\n \\"Data\\": {\\n \\"TransId\\": \\"f7de74778d94422283534102dfc0****\\",\\n \\"TransStatus\\": \\"ONGOING\\",\\n \\"TransKey\\": \\"trans_123\\"\\n }\\n}","type":"json"}]',
],
],
'endpoints' => [
[
'regionId' => 'cn-beijing',
'endpoint' => 'tingwu.cn-beijing.aliyuncs.com',
],
],
];
|