Start customizing voices and background music via the API
/podcast/scripted
endpoint instead. The payload for that request
looks slightly different. You will provide script segemnts, where each segment contains the text and the voice id for the
speaker.
music_spec
field in the GenerateAiScriptedEpisodeRequest
to add
background music to podcast episodes.
The music_spec
field is an optional component of the requests to /podcast
and /podcast/scripted
that allows you to add a background music track to the generated podcast.
This field uses the MusicTrackSpec
model, which provides fine-grained control over the music playback.
music_id
(Required)
fade_in_ms
(Optional)
"fade_in_ms": 3000
fades in the music over the first 3 seconds.fade_out_ms
(Optional)
"fade_out_ms": 2000
fades out the music over the last 2 seconds.playback_start
(Optional)
"playback_start": 5000
starts the playback 5 seconds into the music track.playback_end
(Optional)
"playback_end": 30000
stops playback 30 seconds into the music track.volume
(Optional)
"volume": 0.01
- makes the volume of the music 1%