PodcastTaskSubmit
Submits an AI podcast generation task.
Debug
You can call this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After the call succeeds, OpenAPI Explorer can automatically generate SDK code examples.
Authorization information
The following table describes the authorization information for this API. You can use the Action element in RAM permission policy statements to grant RAM users or RAM roles the permission to call this API. Details are as follows:
-
Operation: the specific permission point.
-
Access level: the access level of each operation. Valid values: Write, Read, or List.
-
Resource type: the resource types that support authorization for the operation. Details are as follows:
- Required resource types are marked with a leading asterisk (*).
- For operations that do not support resource-level authorization,
All Resourcesis used.
-
Condition key: the condition keys defined by the cloud product itself.
-
Dependent operation: other permissions required to successfully perform the operation. The caller must have the permissions of all dependent operations for the operation to succeed.
| Operation | Access level | Resource type | Condition key | Dependent operation |
|---|---|---|---|---|
| aipodcast:PodcastTaskSubmit | none | *All Resources * |
| None |
Request syntax
POST /podcast/task/submit HTTP/1.1
Request parameters
| Name | Type | Required | Description | Example value |
|---|---|---|---|---|
| workspaceId | string | Yes | The ID of the Model Studio workspace used for the current request. | llm-ep8ba0dr6seiddxx |
| fileUrls | array | No | The accessible URLs of the files used for podcast task generation. | |
| string | No | The accessible URL of a file. | http://xxx-ai-file.oss-cn-beijing.aliyuncs.com/202503241702148295/script.txt?OSSAccessKeyId=YOUR_ACCESS_KEY_ID****&Expires=1742810622&Signature=YOUR_SIGNATURE | |
| topic | string | No | The topic for podcast content generation. | Influenza A outbreak: how should we respond? |
| counts | integer | No | The number of speakers. Valid values:
| 2 |
| voices | array | No | The voices for podcast generation. The first voice in the array is the voice of the first speaker. Valid values:
| |
| string | No | A voice. | news_female | |
| text | string | No | The source text. | Recently, influenza A seems to have become a hot topic of discussion. But do you really understand influenza A? What is the difference between it and a common cold? Why do the symptoms look so severe? More importantly, how should we prevent and treat it? In this episode, we will delve into how influenza A spreads, who is most susceptible, and scientific protective measures to help you protect yourself and your family's health during peak flu season. |
| sourceLang | string | No | The language of the podcast generation results (including the podcast script and podcast audio). Currently only Chinese and English are supported, and the default language is Chinese. | zh |
Response parameters
| Name | Type | Description | Example value |
|---|---|---|---|
| object | Schema of Response | ||
| code | string | The response status code. | "success" |
| message | string | The response message. | "success" |
| requestId | string | The request ID, used to trace the API call. | 9CE5B91A-6E6B-55FB-A1AF-037DF01C84B3 |
| success | boolean | true indicates that the API call succeeded, and false indicates that the API call failed. | True |
| httpStatusCode | string | The HTTP status code. | 200 |
| data | object | The response data. | |
| taskId | string | The unique task ID. | 63c4e0eaab3b4c0db208ecafa990e8d1 |
| taskStatus | string | The task status.
| SUCCEEDED |
Examples
Normal response example
JSON format
{
"code": "success",
"message": "success",
"requestId": "9CE5B91A-6E6B-55FB-A1AF-037DF01C84B3",
"success": true,
"httpStatusCode": 200,
"data": {
"taskId": "63c4e0eaab3b4c0db208ecafa990e8d1",
"taskStatus": "SUCCEEDED"
}
}
Error codes
Visit the Error Center to view more error codes.