Create voiceover MP3s and karaoke subtitles using Edge TTS and FFmpeg
Ready for 3.0What this workflow does
This workflow has 11 nodes and runs when someone submits an n8n form (“Text to voiceover + karaoke subtitles”). It uses only n8n's built-in nodes.
How it runs
Trigger: When someone submits an n8n form (“Text to voiceover + karaoke subtitles”).
- Pick the Edge TTS voice (Code): runs custom JavaScript code
- Prepare file paths for this run (Code): runs custom JavaScript code
- Create the temp folder (Execute Command): runs a shell command on the n8n host
- Turn the text into a file (Code): runs custom JavaScript code
- Save the text file (Read/Write Files from Disk): writes a file to disk
- Speak the text with Edge TTS (Execute Command): runs a shell command on the n8n host
- Measure duration and find the pauses (Execute Command): runs a shell command on the n8n host
- Build word timings from the speech (Code): runs custom JavaScript code
- Build the karaoke subtitle (Code): runs custom JavaScript code
- Save the subtitle file (Read/Write Files from Disk): writes a file to disk
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (4)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Code
n8n-nodes-base.code - Execute Command
n8n-nodes-base.executeCommand - Read/Write Files from Disk
n8n-nodes-base.readWriteFile
From the author
Quick overview This self-hosted workflow takes text and a selected language from an n8n form, generates an MP3 voiceover using the Edge TTS CLI, analyzes the audio with FFmpeg/FFprobe to detect real pauses, and outputs a matching .ass karaoke subtitle file…