Intro Example¶
A self-documenting presentation that introduces vac.
Overview¶
This example demonstrates vac by creating a video about vac itself. It includes:
- 13 slides covering features and usage
- Multi-language transcripts (en-US, en-GB, es-ES)
- TTS voice settings optimized for YouTube
Files¶
examples/intro/
├── presentation.md # Marp source (13 slides)
├── transcript.json # Multi-language transcript
└── output.mp4 # Generated video (after running)
Presentation Content¶
The presentation covers:
- Title slide
- What is vac?
- Why use vac?
- Key features
- How it works (pipeline)
- Installation
- Basic usage
- Multi-language support
- Customization options
- Platform presets
- Example use cases
- Getting started
- Thank you / call to action
Running the Example¶
Using Inline Comments (Default Language)¶
Using Transcript (American English)¶
vac \
--input examples/intro/presentation.md \
--transcript examples/intro/transcript.json \
--lang en-US \
--output examples/intro/output_en-US.mp4
Using Transcript (British English)¶
vac \
--input examples/intro/presentation.md \
--transcript examples/intro/transcript.json \
--lang en-GB \
--output examples/intro/output_en-GB.mp4
Using Transcript (Spanish)¶
vac \
--input examples/intro/presentation.md \
--transcript examples/intro/transcript.json \
--lang es-ES \
--output examples/intro/output_es-ES.mp4
Transcript Structure¶
The transcript.json includes three languages:
| Language | Locale | Voice |
|---|---|---|
| American English | en-US | Adam |
| British English | en-GB | Daniel |
| Spanish | es-ES | Adam (multilingual) |
Voice Settings¶
{
"metadata": {
"defaultVoice": {
"provider": "elevenlabs",
"voiceId": "pNInz6obpgDQGcFmaJgB",
"voiceName": "Adam",
"model": "eleven_multilingual_v2",
"stability": 0.5,
"similarityBoost": 0.75,
"style": 0.2
},
"defaultVenue": "youtube"
}
}
Customizing¶
Change Voice¶
Edit the defaultVoice in transcript.json:
Add a Language¶
Add a new locale to each slide's transcripts object:
{
"transcripts": {
"en-US": { ... },
"fr-FR": {
"segments": [
{ "text": "Bienvenue dans vac." }
]
}
}
}
Adjust Timing¶
Add pauses between segments:
{
"segments": [
{ "text": "First point.", "pause": 500 },
{ "text": "Second point.", "pause": 1000 }
]
}
Expected Output¶
After running, you'll have:
output.mp4- Full video with voiceover- Individual slide videos in the working directory (if
--output-individualspecified)
Video specifications:
- Resolution: 1920x1080 (Full HD)
- Frame rate: 30 fps
- Audio: MP3 from ElevenLabs TTS