Ir para o conteúdo

Audio

AudioClipMaker

Bases: BaseClipMaker[AudioAsset]

A clip maker for audio assets.

The audio clip maker performs these transformations:

  1. Loads raw audio data into PyDub format
  2. Crops if needed to match clip duration
  3. Exports audio to temporary MP3 file

Examples:

# Create a basic audio clip
maker = AudioClipMaker(duration=5.0)
clip = maker.make_clip(audio_asset)

# Create clip with custom duration
clip = maker.make_clip(audio_asset, duration=10.0)