Audio
AudioClipMaker
Bases: BaseClipMaker[AudioAsset]
A clip maker for audio assets.
The audio clip maker performs these transformations:
- Loads raw audio data into PyDub format
- Crops if needed to match clip duration
- 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)