summaryrefslogtreecommitdiff
path: root/data/en_us/tingwu/2022-09-30/api-docs.php
diff options
context:
space:
mode:
authorZhineng Li <[email protected]>2026-02-13 10:54:11 +0800
committerZhineng Li <[email protected]>2026-02-13 10:54:11 +0800
commit7347bac4ab7e136157fc94777e6cf87ef9e08599 (patch)
tree0dec367dac6e152161a6f7cc0dba6ebbef1f34a2 /data/en_us/tingwu/2022-09-30/api-docs.php
downloadacs-metadata-full-7347bac4ab7e136157fc94777e6cf87ef9e08599.tar.gz
acs-metadata-full-7347bac4ab7e136157fc94777e6cf87ef9e08599.zip
Diffstat (limited to 'data/en_us/tingwu/2022-09-30/api-docs.php')
-rw-r--r--data/en_us/tingwu/2022-09-30/api-docs.php900
1 files changed, 900 insertions, 0 deletions
diff --git a/data/en_us/tingwu/2022-09-30/api-docs.php b/data/en_us/tingwu/2022-09-30/api-docs.php
new file mode 100644
index 0000000..ede4249
--- /dev/null
+++ b/data/en_us/tingwu/2022-09-30/api-docs.php
@@ -0,0 +1,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',
+ ],
+ ],
+];