n8nflow.net logo

Convert RSS Feeds into a Podcast with Google Gemini, Kokoro TTS, and FFmpeg

by Jonasβ€’Updated: Last update 2 months agoβ€’Source: n8n.io
Loading workflow viewer...

Getting Started

🎧 Daily RSS Digest & Podcast Generation

This workflow automates the creation of a daily sports podcast from your favorite news sources. It fetches articles, uses AI to write a digest and a two-person dialogue, and produces a single, merged audio file with KOKORO TTS ready for listening.

✨ How it works:

πŸ“° Fetch & Filter Daily News: The workflow triggers daily, fetches articles from your chosen RSS feeds, and filters them to keep only the most recent content.

✍️ Generate AI Digest & Script:

Using Google Gemini, it first creates a written summary of the day's news. A second AI agent then transforms this news into an engaging, conversational podcast script between two distinct AI speakers.

πŸ—£οΈ Generate Voices in Chunks:

The script is split into individual lines of dialogue. The workflow then loops through each line, calling a Text-to-Speech (TTS) API to generate a separate audio file (an MP3 chunk) for each part of the conversation.

πŸŽ›οΈ Merge Audio with FFmpeg:

After all the audio chunks are created and saved locally, a command-line script generates a list of all the files and uses FFmpeg to losslessly merge them into a single, seamless MP3 file. All temporary files are then deleted.

πŸ“€ Send the Final Podcast:

The final, merged MP3 is read from the server and delivered directly to your Telegram chat with a dynamic, dated filename.

You can modify:

  • πŸ“° The RSS Feeds to any news source you want.
  • πŸ€– The AI Prompts to change the tone, language, or style of the digest and podcast.
  • πŸŽ™οΈ The TTS Voices used for the two speakers.
  • πŸ“« The Final Delivery Method (e.g., send to Discord, save to Google Drive, etc.).

Perfect for creating a personalized, hands-free news briefing to listen to on your commute.

Inspired by: https://n8n.io/workflows/6523-convert-newsletters-into-ai-podcasts-with-gpt-4o-mini-and-elevenlabs/