🪄Create Podcast with a custom script

Creates a a new podcast based on the given script with the chosen voices.

POST

https://api.autocontentapi.com/content/CreatePodcastCustomScript

{
  "script": "string", //See details below
  "voice1": "string",
  "voice2": "string"
  "callbackData": "string"
}
Field
Possible Values

voice1

Voice ID of the first AI host. Required. See available voices here. You can also clone your own voices here.

voice2

Voice ID of the second AI host. Required. See available voices here. You can also clone your own voices here.

script

Text in the following format: SPEAKER_00: Hello SPEAKER_01: Hi, how are you? SPEAKER_00: I am doing well, thanks! SPEAKER_01: Glad to hear that. Lets get started. Requirements: - Speaker labels are always SPEAKER_00 and SPEAKER_01. - One row per speaker

callbackData

Optional. Contains any custom data that you want to receive with the Get Status response or via webhook

Sample request

curl -X 'POST'
  'https://api.autocontentapi.com/Content/CreatePodcastCustomScript'
  -H 'accept: text/plain'
  -H 'Authorization: Bearer YOUR_TOKEN_HERE'
  -H 'Content-Type: application/json'
  -d '{
    "voice1": 144,
    "voice2": 142,
    "script": "SPEAKER_00: Hello\nSPEAKER_01: Hi, how are you?\nSPEAKER_00: I am doing well, thanks!\nSPEAKER_01: Glad to hear that. Lets get started."
  }'

Response

{
    "request_id": "string",
    "error_message": "string"
}

Last updated