The vibe coding loop
This is how you will work throughout this tutorial: Describe. Preview. Refine. Repeat until you love it — then render.Generate your voiceover audio
- Personal Brand Intro
- Event Invitation
- Portfolio Showcase
- Gemini CLI (Free)
- Claude Code (Paid)
public/voiceover.mp3.What just happened?
What just happened?
- Sent your voiceover text to ElevenLabs’ text-to-speech API
- Received audio data back from ElevenLabs’ servers
- Saved it as an MP3 file in your project’s
public/folder
I want to use a different voice
I want to use a different voice
ElevenLabs API returns an error
ElevenLabs API returns an error
- Invalid API key: Double-check that you copied the full key with no extra spaces.
- Free tier limit reached: Check your usage at elevenlabs.io under Profile. The free tier is 10,000 characters per month.
- Network error: Make sure you have an internet connection. Try again in a few seconds.
Generate a sound effect
- Gemini CLI (Free)
- Claude Code (Paid)
Sound effect ideas for different video types
Sound effect ideas for different video types
Create your video composition
- Gemini CLI (Free)
- Claude Code (Paid)
What did the AI just create?
What did the AI just create?
src/ folder:- A React component (
.tsxfile) that defines the video’s visual layout — text, colours, animations - Uses Remotion’s
<Audio>component to include your voiceover and sound effects - Uses Remotion’s animation utilities (
useCurrentFrame,interpolate,spring) for smooth transitions - Registered the new composition in
src/Root.tsxso Remotion knows about it
Review and refine
Render your final video
- Gemini CLI (Free)
- Claude Code (Paid)
out/ folder inside your project.Watch your video
- Windows
- macOS
out/ folder, then double-click my-promo-video.mp4. Or run:What just happened?
Let’s recap what you did:- Generated a voiceover — AI called the ElevenLabs API to turn your script into professional audio
- Created a sound effect — AI generated a custom swoosh transition from a text description
- Built a video composition — AI created animated text, backgrounds, and integrated your audio files
- Refined the design — You described changes and AI updated the video in real time
- Rendered to MP4 — AI ran the render command and produced a video file you can share anywhere
Troubleshooting
The preview is blank or shows an error
The preview is blank or shows an error
Audio is not playing in the preview
Audio is not playing in the preview
ElevenLabs API returns an error
ElevenLabs API returns an error
- Invalid API key: Double-check your key — no extra spaces or missing characters.
- Free tier limit: You may have used your monthly quota. Check usage at elevenlabs.io.
- Rate limit: Wait a few seconds and try again.
Render fails or produces a broken video
Render fails or produces a broken video
The video is too long or too short
The video is too long or too short
My voice input has errors
My voice input has errors