Project.generate_speech#

Project.generate_speech(speech_generation_settings: SpeechGenerationSettings | dict, timecode: str) MediaPoolItem[source]#

Generates an audio MediaPoolItem from the given speech generation settings.

Adds the generated clip to the timeline at timecode when the settings’ AddToTimeline is True. Studio-only (requires the AI Speech Generator Extras download); returns the API’s result unwrapped if requirements are not met.

Parameters:
  • speech_generation_settings (SpeechGenerationSettings | dict) – Speech generation settings. A SpeechGenerationSettings model or a raw dict.

  • timecode (str) – Timecode at which to add the generated clip to the timeline.

Returns:

The newly generated audio MediaPoolItem.

Return type:

MediaPoolItem

Raises:

APIVersionError – If Resolve version < 21.0.2

Version:

Added in DaVinci Resolve 21.0.2