Learn

What is an OpenAI-compatible local speech gateway?

A local speech gateway gives scripts, apps and AI agents one local address for speech and language models, using API shapes they already know.

Direct answer

An OpenAI-compatible local speech gateway is an HTTP service on your own computer that follows familiar OpenAI API conventions while the models run locally. EdgeSpeak's gateway serves transcription, speaker diarization, forced alignment, text to speech, LLM chat, translation and a Realtime WebSocket from one base URL: http://127.0.0.1:1117/v1 when the desktop app is open, or http://127.0.0.1:1118/v1 from the standalone CLI service.

Why compatibility matters

Many tools and SDKs already speak the OpenAI API. Pointing their base URL at the local gateway lets them reuse that code while audio, transcripts and prompts are processed on your computer. Supported endpoints and field differences are listed in the API docs, so check them before switching an existing integration.

What EdgeSpeak exposes

One gateway covers the speech and language stack: /v1/audio/transcriptions and /v1/speaker/diarizations for transcription and speakers, /v1/audio/alignments for forced alignment, /v1/audio/speech and /v1/audio/voices for text to speech, /v1/responses, /v1/chat/completions and /v1/messages for local LLMs, translation and vision, /v1/realtime for realtime voice, and /mcp for agent tools.

Two ways to run it

Open the desktop app and the gateway runs at 127.0.0.1:1117. Without the desktop app, run edgespeak-cli serve to start the headless service at 127.0.0.1:1118; it uses the same gateway implementation and request formats. The headless service can also serve other trusted machines on your network with an API key.

Who should use it

Scripts, local apps, automation and AI agents that need speech or language models without sending media to a cloud API, on the same computer or on trusted machines you control.

Realtime voice sessions

/v1/realtime is a WebSocket endpoint available on both the desktop gateway (1117) and the headless service (1118). Use it for transcription only, or load a local language model for spoken conversation and live interpreting. When the headless service is at its session limit, new sessions wait in a queue. This is separate from stream=true on the HTTP transcription endpoint, which is desktop-only. Event formats and compatibility are in the Realtime docs.

FAQ

Is EdgeSpeak a hosted transcription API?

No. EdgeSpeak is a desktop app with a local speech gateway. It is not positioned as another cloud transcription service.

Why use an OpenAI-compatible shape?

Compatibility makes it easier for existing tools to send files and receive transcripts without learning a completely new integration pattern.

Does the gateway require the desktop app?

No. The desktop app runs it at port 1117, and edgespeak-cli serve runs the same gateway as a headless service at port 1118 without the desktop app. Streaming transcription and local file paths are desktop-only; the headless service accepts uploaded data.

Can I use this for automation?

Yes. The gateway, CLI and 13 MCP tools are designed for scripts, automation and agent workflows such as Claude Code.

Evidence links