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.
- Enter a topic — type any subject (e.g. "Open Source Models", "Quantum Computing")
- Pick voices & duration — choose host and guest voices, set episode length (1–5 min)
- Generate — DeepSeek writes a structured HOST ↔ GUEST script, streamed live as it's produced
- Listen — all lines are synthesised in parallel via Inworld TTS-2; playback starts as soon as the first 3 lines are ready
- Follow along — a word-level transcript syncs to audio in real time
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
| 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) |
- Node.js 18+
- A GMI Cloud API key
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 startOpen http://localhost:3000.
| Variable | Description |
|---|---|
GMI_API_KEY |
GMI Cloud API key (used for both LLM and TTS) |
PORT |
Server port (default: 3000) |
Male: Alex · Dennis · Carter · Blake
Female: Luna · Ashley · Sarah · Elena · Julia
| 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 |
| 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: "…" } |
