CreateTask - Create an offline meeting minutes task
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.
NoteTo 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
https://dashscope.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generation
Request method
This operation uses the POST method.
Request headers
Authorization: Bearer {api-key} // Replace {api-key} with your actual API key.
Content-Type: application/json
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 |
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 |
input.type | string | Yes | The type of meeting minutes task to create. For an offline meeting minutes task, set the value to | 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 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. The default value is | |
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 themodel 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.
| General |
parameters.analysis.autoChapterTitleLengthLevel | string | No | The length of chapter titles.
| 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
| default |
parameters.analysis.customPromptContent | string | Yes | The custom prompt entered by the user. Note: Place the | 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.
curl --location 'https://dashscope.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generation' \
--header 'Authorization: Bearer sk-***' \
--header 'Content-Type: application/json' \
--data '{
"model": "tingwu-meeting",
"input": {
"task": "createTask",
"type": "offline",
"appId": "tw_AxlVSM**",
"fileUrl": "",
"phraseId": "z4p5EVXof***"
},
"parameters": {
"transcription": {
"model": "cn",
"diarizationEnabled": true,
"diarizationSpeakerCount": 0,
"translationEnabled": true,
"translationTargetLang": [
"en"
]
},
"analysis": {
"model": "default",
"keyInformationEnabled": true,
"actionsEnabled": true,
"fullSummaryEnabled": true,
"fullSummaryFormat": "markdown",
"conversationalEnabled": true,
"questionsAnsweringEnabled": true,
"mindMapEnabled": true,
"mindMapFormat": "timestamp",
"pptExtractionEnabled": true,
"autoChaptersEnabled": true,
"autoChapterGranularity": "Coarse",
"autoChapterTitleLengthLevel": "Short",
"textPolishEnabled": true,
"customPromptEnabled": true,
"customPromptModel": "tingwu-turbo",
"customPromptTransType": "default",
"customPromptContent": "{Transcription}Guess how many people are in the preceding conversation."
}
}
}'
Response example
{
"output": {
"dataId": "z4p***"
},
"usage": {},
"request_id": "1e92069c-e1e6-4a5a-97aa-19c3d880140d"
}