summaryrefslogtreecommitdiff
path: root/data/tingwu/2023-09-30
diff options
context:
space:
mode:
authorZhineng Li <im@zhineng.li>2026-07-12 16:56:35 +0800
committerZhineng Li <im@zhineng.li>2026-07-12 16:56:35 +0800
commit814ec806c22e2782390af5a4a05cb6281aabd5e1 (patch)
tree29e1692a067b17e56886a7d246d2b9521b2b7777 /data/tingwu/2023-09-30
parenteccd5cd5a067f5659982685afdeea209b1888efb (diff)
downloadafterglow-metadata-814ec806c22e2782390af5a4a05cb6281aabd5e1.tar.gz
afterglow-metadata-814ec806c22e2782390af5a4a05cb6281aabd5e1.zip
update APIs 20260712
Diffstat (limited to 'data/tingwu/2023-09-30')
-rw-r--r--data/tingwu/2023-09-30/api-docs.php588
1 files changed, 144 insertions, 444 deletions
diff --git a/data/tingwu/2023-09-30/api-docs.php b/data/tingwu/2023-09-30/api-docs.php
index 174f827..8bbb274 100644
--- a/data/tingwu/2023-09-30/api-docs.php
+++ b/data/tingwu/2023-09-30/api-docs.php
@@ -1,50 +1,32 @@
<?php return [
'version' => '1.0',
- 'info' => [
- 'style' => 'ROA',
- 'product' => 'tingwu',
- 'version' => '2023-09-30',
- ],
+ 'info' => ['style' => 'ROA', 'product' => 'tingwu', 'version' => '2023-09-30'],
'components' => [
'schemas' => [],
],
'apis' => [
'CreateTask' => [
'path' => '/openapi/tingwu/v2/tasks',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['put'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'type',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'operation',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'body',
@@ -54,67 +36,31 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'AppKey' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'AppKey' => ['type' => 'string', 'required' => false],
'Input' => [
'type' => 'object',
'required' => false,
'properties' => [
- 'SourceLanguage' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'FileUrl' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'TaskKey' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Format' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'SourceLanguage' => ['type' => 'string', 'required' => true],
+ 'FileUrl' => ['type' => 'string', 'required' => false],
+ 'TaskKey' => ['type' => 'string', 'required' => false],
+ 'Format' => ['type' => 'string', 'required' => false],
'SampleRate' => [
'type' => 'integer',
'format' => 'int32',
'required' => false,
- 'enum' => [
- '16000',
- '8000',
- ],
- ],
- 'ProgressiveCallbacksEnabled' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'MultipleStreamsEnabled' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'TaskId' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'OutputPath' => [
- 'type' => 'string',
- 'required' => false,
+ 'enum' => ['16000', '8000'],
],
+ 'ProgressiveCallbacksEnabled' => ['type' => 'boolean', 'required' => false],
+ 'MultipleStreamsEnabled' => ['type' => 'boolean', 'required' => false],
+ 'TaskId' => ['type' => 'string', 'required' => false],
+ 'OutputPath' => ['type' => 'string', 'required' => false],
'LanguageHints' => [
'type' => 'array',
'required' => false,
- 'items' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- 'AudioChannelMode' => [
- 'type' => 'string',
- 'required' => false,
+ 'items' => ['type' => 'string', 'required' => false],
],
+ 'AudioChannelMode' => ['type' => 'string', 'required' => false],
],
],
'Parameters' => [
@@ -128,76 +74,36 @@
'TargetAudioFormat' => [
'type' => 'string',
'required' => false,
- 'enum' => [
- 'mp3',
- ],
+ 'enum' => ['mp3'],
],
'TargetVideoFormat' => [
'type' => 'string',
'required' => false,
- 'enum' => [
- 'mp4',
- ],
- ],
- 'VideoThumbnailEnabled' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'SpectrumEnabled' => [
- 'type' => 'boolean',
- 'required' => false,
+ 'enum' => ['mp4'],
],
+ 'VideoThumbnailEnabled' => ['type' => 'boolean', 'required' => false],
+ 'SpectrumEnabled' => ['type' => 'boolean', 'required' => false],
],
],
'Transcription' => [
'type' => 'object',
'required' => false,
'properties' => [
- 'AudioEventDetectionEnabled' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'DiarizationEnabled' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
+ 'AudioEventDetectionEnabled' => ['type' => 'boolean', 'required' => false],
+ 'DiarizationEnabled' => ['type' => 'boolean', 'required' => false],
'Diarization' => [
'type' => 'object',
'required' => false,
'properties' => [
- 'SpeakerCount' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
+ 'SpeakerCount' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
],
],
- 'OutputLevel' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
- 'AdditionalStreamOutputLevel' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
- 'PhraseId' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Model' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'RealtimeDiarizationEnabled' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'ProfanityFilterEnabled' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
+ 'OutputLevel' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
+ 'AdditionalStreamOutputLevel' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
+ 'PhraseId' => ['type' => 'string', 'required' => false],
+ 'Model' => ['type' => 'string', 'required' => false],
+ 'RealtimeDiarizationEnabled' => ['type' => 'boolean', 'required' => false],
+ 'ProfanityFilterEnabled' => ['type' => 'boolean', 'required' => false],
],
],
'Translation' => [
@@ -207,35 +113,15 @@
'TargetLanguages' => [
'type' => 'array',
'required' => false,
- 'items' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- 'OutputLevel' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
- 'AdditionalStreamOutputLevel' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
+ 'items' => ['type' => 'string', 'required' => false],
],
+ 'OutputLevel' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
+ 'AdditionalStreamOutputLevel' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
],
],
- 'TranslationEnabled' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'AutoChaptersEnabled' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'MeetingAssistanceEnabled' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
+ 'TranslationEnabled' => ['type' => 'boolean', 'required' => false],
+ 'AutoChaptersEnabled' => ['type' => 'boolean', 'required' => false],
+ 'MeetingAssistanceEnabled' => ['type' => 'boolean', 'required' => false],
'MeetingAssistance' => [
'type' => 'object',
'required' => false,
@@ -243,18 +129,12 @@
'Types' => [
'type' => 'array',
'required' => false,
- 'items' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'items' => ['type' => 'string', 'required' => false],
'minItems' => 1,
],
],
],
- 'SummarizationEnabled' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
+ 'SummarizationEnabled' => ['type' => 'boolean', 'required' => false],
'Summarization' => [
'type' => 'object',
'required' => false,
@@ -262,37 +142,19 @@
'Types' => [
'type' => 'array',
'required' => false,
- 'items' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'items' => ['type' => 'string', 'required' => false],
],
],
],
- 'PptExtractionEnabled' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'TextPolishEnabled' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'ServiceInspectionEnabled' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
+ 'PptExtractionEnabled' => ['type' => 'boolean', 'required' => false],
+ 'TextPolishEnabled' => ['type' => 'boolean', 'required' => false],
+ 'ServiceInspectionEnabled' => ['type' => 'boolean', 'required' => false],
'ServiceInspection' => [
'type' => 'object',
'required' => false,
'properties' => [
- 'SceneIntroduction' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'InspectionIntroduction' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'SceneIntroduction' => ['type' => 'string', 'required' => false],
+ 'InspectionIntroduction' => ['type' => 'string', 'required' => false],
'InspectionContents' => [
'type' => 'array',
'required' => false,
@@ -300,27 +162,15 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'Title' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Content' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'Title' => ['type' => 'string', 'required' => false],
+ 'Content' => ['type' => 'string', 'required' => false],
],
],
],
- 'SpeakerMap' => [
- 'type' => 'object',
- 'required' => false,
- ],
+ 'SpeakerMap' => ['type' => 'object', 'required' => false],
],
],
- 'CustomPromptEnabled' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
+ 'CustomPromptEnabled' => ['type' => 'boolean', 'required' => false],
'CustomPrompt' => [
'type' => 'object',
'required' => false,
@@ -332,22 +182,10 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'Name' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'Prompt' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'Model' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'TransType' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'Name' => ['type' => 'string', 'required' => true],
+ 'Prompt' => ['type' => 'string', 'required' => true],
+ 'Model' => ['type' => 'string', 'required' => false],
+ 'TransType' => ['type' => 'string', 'required' => false],
],
],
],
@@ -357,45 +195,27 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'NfixEnabled' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'MaxKeywords' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
- 'DomainEducationEnabled' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'OcrAuxiliaryEnabled' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'TranslateLlmSceneEnabled' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'FullTextSummaryFormat' => [
- 'type' => 'string',
- 'required' => false,
+ 'NfixEnabled' => ['type' => 'boolean', 'required' => false],
+ 'MaxKeywords' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
+ 'DomainEducationEnabled' => ['type' => 'boolean', 'required' => false],
+ 'OcrAuxiliaryEnabled' => ['type' => 'boolean', 'required' => false],
+ 'TranslateLlmSceneEnabled' => ['type' => 'boolean', 'required' => false],
+ 'FullTextSummaryFormat' => ['type' => 'string', 'required' => false],
+ 'TranslationHotwordMap' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'bizUserId' => ['type' => 'string'],
+ 'bizType' => ['type' => 'string'],
+ ],
],
],
],
- 'ContentExtractionEnabled' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
+ 'ContentExtractionEnabled' => ['type' => 'boolean', 'required' => false],
'ContentExtraction' => [
'type' => 'object',
'required' => false,
'properties' => [
- 'SceneIntroduction' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'SceneIntroduction' => ['type' => 'string', 'required' => false],
'ExtractionContents' => [
'type' => 'array',
'required' => false,
@@ -403,39 +223,21 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'Title' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Content' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Identity' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'Title' => ['type' => 'string', 'required' => false],
+ 'Content' => ['type' => 'string', 'required' => false],
+ 'Identity' => ['type' => 'string', 'required' => false],
],
],
],
- 'SpeakerMap' => [
- 'type' => 'object',
- 'required' => false,
- ],
+ 'SpeakerMap' => ['type' => 'object', 'required' => false],
],
],
- 'IdentityRecognitionEnabled' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
+ 'IdentityRecognitionEnabled' => ['type' => 'boolean', 'required' => false],
'IdentityRecognition' => [
'type' => 'object',
'required' => false,
'properties' => [
- 'SceneIntroduction' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'SceneIntroduction' => ['type' => 'string', 'required' => false],
'IdentityContents' => [
'type' => 'array',
'required' => false,
@@ -443,14 +245,8 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'Name' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Description' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'Name' => ['type' => 'string', 'required' => false],
+ 'Description' => ['type' => 'string', 'required' => false],
],
],
],
@@ -460,20 +256,11 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'ChapterGranularity' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'ChapterGranularity' => ['type' => 'string', 'required' => false],
],
],
- 'Model' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'LlmOutputLanguage' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'Model' => ['type' => 'string', 'required' => false],
+ 'LlmOutputLanguage' => ['type' => 'string', 'required' => false],
],
],
],
@@ -481,53 +268,17 @@
],
],
],
- 'GetTaskInfo' => [
- 'path' => '/openapi/tingwu/v2/tasks/{TaskId}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
- ],
- ],
- 'produces' => [
- 'application/json',
- ],
- 'deprecated' => false,
- 'parameters' => [
- [
- 'name' => 'TaskId',
- 'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- ],
- ],
'CreateTranscriptionPhrases' => [
'path' => '/openapi/tingwu/v2/resources/phrases',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
@@ -538,174 +289,123 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'Name' => [
- 'type' => 'string',
- 'required' => true,
- 'minLength' => 1,
- 'maxLength' => 50,
- ],
- 'Description' => [
- 'type' => 'string',
- 'required' => false,
- 'minLength' => 1,
- 'maxLength' => 250,
- ],
- 'WordWeights' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'Name' => ['type' => 'string', 'required' => true, 'minLength' => 1, 'maxLength' => 50],
+ 'Description' => ['type' => 'string', 'required' => false, 'minLength' => 1, 'maxLength' => 250],
+ 'WordWeights' => ['type' => 'string', 'required' => true],
],
],
],
],
],
- 'GetTranscriptionPhrases' => [
+ 'DeleteTranscriptionPhrases' => [
'path' => '/openapi/tingwu/v2/resources/phrases/{PhraseId}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['delete'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'PhraseId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
],
],
- 'UpdateTranscriptionPhrases' => [
- 'path' => '/openapi/tingwu/v2/resources/phrases/{PhraseId}',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'GetTaskInfo' => [
+ 'path' => '/openapi/tingwu/v2/tasks/{TaskId}',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'PhraseId',
+ 'name' => 'TaskId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- [
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'Name' => [
- 'type' => 'string',
- 'required' => true,
- 'minLength' => 1,
- 'maxLength' => 50,
- ],
- 'Description' => [
- 'type' => 'string',
- 'required' => false,
- 'minLength' => 1,
- 'maxLength' => 250,
- ],
- 'WordWeights' => [
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
],
],
- 'DeleteTranscriptionPhrases' => [
+ 'GetTranscriptionPhrases' => [
'path' => '/openapi/tingwu/v2/resources/phrases/{PhraseId}',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'PhraseId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
],
],
'ListTranscriptionPhrases' => [
'path' => '/openapi/tingwu/v2/resources/phrases',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [],
],
+ 'UpdateTranscriptionPhrases' => [
+ 'path' => '/openapi/tingwu/v2/resources/phrases/{PhraseId}',
+ 'methods' => ['put'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'deprecated' => false,
+ 'parameters' => [
+ [
+ 'name' => 'PhraseId',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'Name' => ['type' => 'string', 'required' => true, 'minLength' => 1, 'maxLength' => 50],
+ 'Description' => ['type' => 'string', 'required' => false, 'minLength' => 1, 'maxLength' => 250],
+ 'WordWeights' => ['type' => 'string', 'required' => true],
+ ],
+ ],
+ ],
+ ],
+ ],
],
'endpoints' => [
- [
- 'regionId' => 'cn-beijing',
- 'endpoint' => 'tingwu.cn-beijing.aliyuncs.com',
- ],
+ ['regionId' => 'cn-beijing', 'regionName' => '华北2(北京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'tingwu.cn-beijing.aliyuncs.com', 'endpoint' => 'tingwu.cn-beijing.aliyuncs.com', 'vpc' => 'tingwu-vpc.cn-beijing.aliyuncs.com'],
],
];