Skip to content

About

The user's topic, voice selection, and duration are sent to DeepSeek-V4-Flash via GMI's LLM API. Inworld TTS-2 returns wordAlignment arrays: words[], wordStartTimeSeconds[], wordEndTimeSeconds[]. A requestAnimationFrame loop compares audio.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

AI Podcast

A browser-based AI podcast generator that writes, voices, and plays a fully produced episode from a single topic prompt — in under 10 seconds.

Built on GMI Cloud: DeepSeek-V4-Flash for script generation and Inworld TTS-2 for voice synthesis.

AI Podcast screenshot


How it works

  1. Enter a topic — type any subject (e.g. "Open Source Models", "Quantum Computing")
  2. Pick voices & duration — choose host and guest voices, set episode length (1–5 min)
  3. Generate — DeepSeek writes a structured HOST ↔ GUEST script, streamed live as it's produced
  4. Listen — all lines are synthesised in parallel via Inworld TTS-2; playback starts as soon as the first 3 lines are ready
  5. Follow along — a word-level transcript syncs to audio in real time

Pipeline

Topic prompt
    │
    ▼
DeepSeek-V4-Flash  (GMI LLM API, streaming)
    │  generates: company · guest name/title · script JSON
    ▼
Inworld TTS-2  ×N  (GMI Cloud, parallel)
    │  returns: MP3 audio URL · word-level timestamps
    ▼
Browser player  (Web Audio + RAF sync)
    │  plays audio · highlights words · scrolls transcript
    ▼
Live episode

Stack

Layer Technology
Runtime Node.js (no framework)
LLM DeepSeek-V4-Flash via GMI Serving API
TTS Inworld TTS-2 via GMI Cloud
Transport Server-Sent Events (streaming)
Frontend Vanilla JS + CSS (no build step)

Setup

Prerequisites

Install & run

git clone https://github.com/GMISWE/ai-podcast.git
cd ai-podcast
npm install
cp .env.example .env
# add your GMI_API_KEY to .env
npm start

Open http://localhost:3000.

Environment variables

Variable Description
GMI_API_KEY GMI Cloud API key (used for both LLM and TTS)
PORT Server port (default: 3000)

Available voices

Male: Alex · Dennis · Carter · Blake
Female: Luna · Ashley · Sarah · Elena · Julia


API endpoints

Endpoint Description
GET /api/generate?topic=…&duration=…&host_voice=…&guest_voice=… SSE stream — produces script then TTS lines
GET /api/voices Returns available voice lists and defaults
GET /api/preview-voice?voice_id=… Returns a short audio preview for a voice

SSE event types

Event Payload
stage { stage: "script"|"tts", status: "start"|"done", index?, speaker? }
token { t: "<token>" } — live LLM output
meta { company, guest_name, guest_title, total }
line { index, speaker, text, audio_url, words[] }
done { ok: true }
fail { error: "…" }

About

The user's topic, voice selection, and duration are sent to DeepSeek-V4-Flash via GMI's LLM API. Inworld TTS-2 returns wordAlignment arrays: words[], wordStartTimeSeconds[], wordEndTimeSeconds[]. A requestAnimationFrame loop compares audio.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages