v1.0.0-beta.14
diffusionstudio/corev1.0.0-beta.14Aug 30, 2024by k9p5
AI Summary
A new `VerdantCaptionPreset` has been added to the library, enabling users to easily apply stylized captions to media clips using AI-generated transcripts.
Key Highlights
- New `VerdantCaptionPreset`
- AI transcript support
- Caption generation via `create` method
New Features
- VerdantCaptionPreset
Full Release Notes
### Added `VerdantCaptionPreset`
example usage:
```typescript
import * as core from '@diffusionstudio/core';
const composition = new core.Composition();
const transcript = await core.Transcript.from('https://diffusion-studio-public.s3.eu-central-1.amazonaws.com/docs/ai_ft_coding_captions.json');
await composition.appendTrack(core.CaptionTrack)
.from(new core.MediaClip({ transcript: transcript.optimize() }))
.create(core.VerdantCaptionPreset)
```