MediaPoolItem.set_transcription#
- MediaPoolItem.set_transcription(transcription: Transcription | dict) bool[source]#
Replaces the transcription of the MediaPoolItem.
Studio-only.
segmentsmust not be empty (useclear_transcription()to remove a transcription), every segment needs a non-emptywordslist and segments must be in ascending, non-overlapping timecode order. Missing word timings are interpolated. A timeline is transcribed as a nested clip. Refer to DaVinci Resolve’s ‘Setting a Transcription’ section for all rules.- Parameters:
transcription (Transcription | dict) – the new transcription, in the format returned by
get_transcription()- Returns:
Returns True if successful, False otherwise
- Return type:
- Raises:
APIVersionError – If Resolve version < 21.1.2
- Version:
Added in DaVinci Resolve 21.1.2