API reference for creating an offline meeting minutes task.
Prerequisites
Activate the service and obtain and configure an API key. To prevent security risks from code leaks, configure the API key as an environment variable instead of hard coding it in your code.
To grant temporary access permissions to third-party applications or users, or want to strictly control risky operations such as accessing or deleting sensitive data, you can use a temporary authentication token.Compared to a long-term API key, a temporary authentication token is valid for only a short period (60 seconds) and offers higher security. It is suitable for temporary call scenarios and can effectively reduce the risk of API key leaks.Usage: In your code, replace the API key used for authentication with the obtained temporary authentication token.
Endpoint URL
Request method
This operation uses the POST method.
Request headers
Create a task
Creates an offline meeting minutes task.
Request parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| model | string | Yes | Defines the business type. Set the value to tingwu-meeting. | tingwu-meeting |
| input | object | Yes | Pass the relevant business parameters | |
| input.fileUrl | string | One of three | The OSS URL of the file to analyze. | https://.oss-cn-hangzhou.aliyuncs.com/%E8%AF%95%E9%A9%BE%E6%A1%88%E4%BE%8Bsmall.wav?OSSAccessKeyId=YOUR_ACCESS_KEY_ID&Expires=&Signature=YOUR_SIGNATURE |
| input.text | string | The text to analyze. | Each line must be in the following format:${Speaker Name}: ${Speaker Content}Example: | |
| input.dataId | string | Associates a task that has been uploaded and parsed. | j0oS1XbbT*** | |
| input.appId | string | Yes | The application ID. | tw_YrN4Ss9o5*** |
| input.task | string | Yes | Defines the task type. Set the value to createTask to create a task. | createTask |
| input.type | string | Yes | The type of meeting minutes task to create. For an offline meeting minutes task, set the value to offline. | offline |
| input.phraseId | string | Yes | The ID of the hotword list. You can obtain this ID from the Hotwords page in the console.This parameter is required when you create a meeting task but is optional when you end the meeting and generate minutes. | z4p5EVXof*** |
| parameters | object | No | The control parameters for the offline meeting minutes. | |
| parameters.transcription | object | Yes | The parameters required for transcription. | |
| parameters.transcription.model | string | Yes | The transcription model:
| cn |
| parameters.transcription.languageHints | string[ ] | No | This parameter is valid only when model is set to multilingual. The selectable languages. Pass the selected languages from the multi-selection box:Chinese (cn), English (en), Cantonese (yue), Japanese (ja), Korean (ko), German (de), French (fr), and Russian (ru).Example: ["cn", "en", "yue", "ko"] | ["cn"] |
| parameters.transcription.diarizationEnabled | boolean | Yes | Specifies whether to enable speaker diarization. | true |
| parameters.transcription.diarizationSpeakerCount | int | No | The number of speakers to separate when speaker diarization is enabled. 0: The number of speakers is indefinite. 2: The number of speakers is two.The default value is 0. | |
| parameters.transcription.translationEnabled | boolean | Yes | Specifies whether to enable translation. | true |
| parameters.transcription.translationTargetLang | string[ ] | No | If translation is enabled, set the target language:Chinese (cn), English (en), Japanese (ja), Korean (ko), German (de), French (fr), or Russian (ru).Only a single language is supported. Example: ["cn"].Note that the value of this parameter must be different from the value of the model parameter. Otherwise, the task fails to be created. | ["cn"] |
| parameters.audio | object | No | The parameters related to audio input. | ? |
| parameters.audio.audioChannelMode | string | No | The multi-channel audio settings.
| "" |
| parameters.analysis | object | Yes | The LLM analysis parameters. | |
| parameters.analysis.model | string | Yes | The global analysis model:
| default |
| parameters.analysis.keyInformationEnabled | boolean | Yes | Specifies whether to enable keyword extraction. | true |
| parameters.analysis.actionsEnabled | boolean | Yes | Is the To-Do List enabled? | true |
| parameters.analysis.fullSummaryEnabled | boolean | Yes | Specifies whether to enable full text summarization. | true |
| parameters.analysis.fullSummaryFormat | string | No | The format of the full text summary:
| default |
| parameters.analysis.conversationalEnabled | boolean | Yes | Specifies whether to enable speaker summaries. | true |
| parameters.analysis.questionsAnsweringEnabled | boolean | Yes | Enable review of Q&A pairs | true |
| parameters.analysis.mindMapEnabled | boolean | Yes | Specifies whether to enable mind map generation. | true |
| parameters.analysis.mindMapFormat | string | No | The format of the mind map:
| timestamp |
| parameters.analysis.pptExtractionEnabled | boolean | Yes | Specifies whether to enable PPT extraction. | true |
| parameters.analysis.autoChaptersEnabled | boolean | Yes | Enable chapter preview? | true |
| parameters.analysis.autoChapterGranularity | string | No | The granularity of chapters.Coarse: Approximately 4 chapters per hour of audio or video.General: Approximately 6 chapters per hour of audio or video.Meticulous: Approximately 12 to 15 chapters per hour of audio or video. | General |
| parameters.analysis.autoChapterTitleLengthLevel | string | No | The length of chapter titles.Short: 6 to 25 characters, with an average of 13 characters.Normal: 10 to 28 characters, with an average of 16 characters.Long: 10 to 30 characters, with an average of 20 characters. | Short |
| parameters.analysis.textPolishEnabled | boolean | Yes | Specifies whether to convert spoken language to written language. | true |
| parameters.analysis.customPromptEnabled | boolean | Yes | Specifies whether to enable custom prompts. | true |
| parameters.analysis.customPromptModel | string | No | If custom prompts are enabled, select a model:
| tingwu-turbo |
| parameters.analysis.customPromptTransType | string | No | The format of the text that replaces the {Transcription} placeholder in the prompt. The protocols are as follows:
| default |
| parameters.analysis.customPromptContent | string | Yes | The custom prompt entered by the user. Note: Place the {Transcription} placeholder where the original text is needed in the prompt. When the prompt runs, the placeholder is replaced with the transcribed text in the format defined by parameters.analysis.customPromptTransType. | Please summarize the following content:{Transcription} |
Response parameters
Name | Type | Description | Example |
|---|---|---|---|
output | object | ||
output.dataId | string | The task ID. | lsA*** |
usage | object | The usage. The return value is an empty object: `{}`. | {} |
code | string | The error code. | InvalidParameter |
message | string | The error message. | Agent Input text format error. |
request_id | string | The request ID. | f97ee37d-0f9c-9b93-b6bf-bd263a232bf9 |
Request example
Replace sk-*** in the Authorization request header with your Alibaba Cloud Model Studio API key. For more information about how to obtain an API key, see Prerequisites.