podcast-generation
Generate podcast-style audio narratives with Azure OpenAI's GPT Realtime Mini model over WebSocket, for text-to-speech features.
- Kind
- Skill
- Works with
- GitHub Copilot
- Source
- microsoft/skills @ 2130750147de
- Path
- .github/skills/podcast-generation/SKILL.md
- Jobs
- Implementation
- Topics
- Voice & audio
Credit
- Made by
- microsoft
- Original
- github.com/microsoft/skills/blob/2130750147dee0311215099ddf36…
- License
- MIT
Listed by Skill Manifest; not made by us.
InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
Install factsScanned 3 Nov 2026
- Adds
- .claude/skills/podcast-generation/ (the skill folder)
- 3 file(s) the skill refers to
- 3 other files in the folder: references/architecture.md, references/code-examples.md, scripts/pcm_to_wav.py
- Runs scripts
- Yes
- scripts/pcm_to_wav.py
- script file in the folder (scripts/pcm_to_wav.py)
- Uses the network
- None found
- Needs secrets
- Yes
- AZURE_OPENAI_AUDIO_API_KEY
- Reads environment variables
- AZURE_OPENAI_AUDIO_API_KEY
- Reads outside the project
- /usr/bin/env (scripts/pcm_to_wav.py)
- Calls other skills
- /audio
- /stream
- /button
- /div
- Value without its scripts
- High
- The main file never tells the agent to run a bundled script, so the text works without them.
- scripts/pcm_to_wav.py: Convert raw PCM audio data to WAV format.
- Source revision
- 2130750147de
- Licence
- MIT
- Last activity
- 26 Nov 2026
- Source changed after the scan
- Yes
- Last push 26 Nov 2026, scanned 3 Nov 2026; read it again before you rely on this scan
- Review
- Reviewed
Found by a static scan of the stored text; nothing is run. “None found” is not a guarantee, so read what you install before you run it.
# Podcast Generation with GPT Realtime Mini
Generate real audio narratives from text content using Azure OpenAI's Realtime API.
## Quick Start
1. Configure environment variables for Realtime API
2. Connect via WebSocket to Azure OpenAI Realtime endpoint
3. Send text prompt, collect PCM audio chunks + transcript
4. Convert PCM to WAV format
5. Return base64-encoded audio to frontend for playback
## Environment Configuration
```env
AZURE_OPENAI_AUDIO_API_KEY=your_realtime_api_key
AZURE_OPENAI_AUDIO_ENDPOINT=https://your-resource.cognitiveservices.azure.com
AZURE_OPENAI_AUDIO_DEPLOYMENT=gpt-realtime-mini
```
**Note**: Endpoint should NOT include `/openai/v1/` - just the base URL.
## Core Workflow
### Backend Audio Generation
```python
from openai import AsyncOpenAI
import base64
# Convert HTTPS endpoint to WebSocket URL
ws_url = endpoint.replace("https://", "wss://") + "/openai/v1"
client = AsyncOpenAI(
websocket_base_url=ws_url,
api_key=api_key
)
audio_chunks = []
transcript_parts = []
async with client.realtime.connect(model="gpt-realtime-mini") as conn:
# Configure for audio-only output
await conn.session.update(session={
…