What you’ll build
A Voxray server that handles end-to-end voice conversations entirely through OpenAI’s APIs:- STT: OpenAI Whisper (
gpt-4o-mini-transcribe) — streaming transcription - LLM: GPT-4o Mini — fast, capable chat completions with streaming
- TTS: OpenAI TTS (
novavoice) — natural-sounding speech synthesis
Prerequisites
- Voxray binary built (
go build -o voxray ./cmd/voxray) or downloaded - An OpenAI API key with active billing credits (platform.openai.com/api-keys)
- No other accounts or keys required
Steps
Available models
Use the tables below to tune the trade-off between cost, speed, and quality.LLM models (model)
STT models (stt_model)
TTS voices (tts_voice)
Cost estimate
Upgrading to GPT-4o Realtime
OpenAI’s Realtime API replaces the separate STT → LLM → TTS chain with a single WebSocket, cutting latency significantly (typically under 500ms TTFR) at a higher per-minute cost. Voxray supports it viarunner_transport + the realtime integration. See OpenAI Realtime integration for setup instructions.