PodcastTaskSubmit

Updated at:

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.

Debug

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 Resources is 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.

OperationAccess levelResource typeCondition keyDependent operation
aipodcast:PodcastTaskSubmitnone
*All Resources
*
    None
None

Request syntax

POST /podcast/task/submit HTTP/1.1

Request parameters

NameTypeRequiredDescriptionExample value
workspaceIdstringYes

The ID of the Model Studio workspace used for the current request.

llm-ep8ba0dr6seiddxx
fileUrlsarrayNo

The accessible URLs of the files used for podcast task generation.

stringNo

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
topicstringNo

The topic for podcast content generation.

Influenza A outbreak: how should we respond?
countsintegerNo

The number of speakers.

Valid values:
  • 1: One speaker.
  • 2: Two speakers.
2
voicesarrayNo

The voices for podcast generation. The first voice in the array is the voice of the first speaker.

Valid values:
  • Dylan: Beijing dialect - Male.
  • en_female: Female.
  • Cherry: Female.
  • Ethan: Male.
  • news_male: Male.
  • Jada: Wu dialect - Female.
  • Chelsie: Female.
  • en_male: Male.
  • news_female: Female.
  • Serena: Female.
  • Sunny: Sichuan dialect - Female.
stringNo

A voice.

news_female
textstringNo

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.
sourceLangstringNo

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

NameTypeDescriptionExample value
object

Schema of Response

codestring

The response status code.

"success"
messagestring

The response message.

"success"
requestIdstring

The request ID, used to trace the API call.

9CE5B91A-6E6B-55FB-A1AF-037DF01C84B3
successboolean

true indicates that the API call succeeded, and false indicates that the API call failed.

True
httpStatusCodestring

The HTTP status code.

200
dataobject

The response data.

taskIdstring

The unique task ID.

63c4e0eaab3b4c0db208ecafa990e8d1
taskStatusstring

The task status.

  • PENDING: awaiting execution
  • RUNNING: executing
  • SUCCEEDED: succeeded
  • INVALID: invalid
  • FAILED: failed
  • UNKNOWN: unknown
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.