Files
VoiceStudio/docs/integration-directory.md
Palash Debnath 039e8fa11d feat(api): ElevenLabs-compatible API under /elevenlabs (#4467)
* feat(api): ElevenLabs-compatible API under /elevenlabs

Apps and SDKs built for ElevenLabs work with VoiceStudio by changing the
base URL. Text to speech (whole and streamed, mp3/opus/wav/pcm/ulaw/alaw at
the requested rate), speech to text with ElevenLabs word items, voices,
default voice settings and models, mapped onto the OpenAI-compatible
handlers so routing, licence gates, pronunciation and the watermark are
shared. xi-api-key is accepted as the API key on /elevenlabs routes only.

* docs(changelog): ElevenLabs-compatible API (#4467)

* feat(api): ElevenLabs voice changer and sound effects routes

* feat(api): ElevenLabs speaker labels and voice isolation

* style: drop unused imports

* feat(integrations): ElevenLabs Python SDK snippet on the VoiceStudio API page

* docs(structure): 47 routers

* fix(api): review findings on the ElevenLabs-compatible API (#4467)

- mp3/opus/wav deliver the rate and bitrate output_format names; other
  combinations are a 422
- audio routes declare audio, not JSON, in the API contract
- isolation never starts a Demucs weight download: it needs the model
  cached by an in-app separation first
- transcription uploads (OpenAI and ElevenLabs routes) stream to disk in
  chunks under a 2 GB cap instead of a whole-file read; the temp file no
  longer leaks when reading fails
- upload writes leave the event loop; isolation cleans up if its work dir
  cannot be created
- the ElevenLabs snippet sends no placeholder key
- no traceback in the model-list warning

* fix(api): ElevenLabs API review findings and CI (#4467)

- Route both WAV writes through the audited _safe_soundfile_write helper.
- Accept only MP3 bitrates libmp3lame encodes exactly for the rate (MPEG-1
  at 32 kHz and above, MPEG-2/2.5 below); list the six PCM rates in the docs.
- Remove the staged upload when cancellation interrupts a transcription
  upload, and keep the cancellation.
- Close the diarization copy through an ExitStack; explain best-effort
  unlink excepts.
- The local OpenAI snippet reads OMNIVOICE_API_KEY like the ElevenLabs one,
  so a Docker backend on 127.0.0.1 accepts it.
- The nested-ASR owner test's fake upload reads in chunks like the route.

* fix(elevenlabs): close review findings on the compat API

- pcm_32000, the SDK's /v1/voice-changer path and /stream forms are served
- voice isolation accepts Demucs 4.1's Hugging Face cache and runs Demucs
  offline, so the request never downloads a model
- the voice changer refuses video, whose swap path can fetch a model
- oversized uploads are refused while they arrive, before multipart spooling
- staged uploads close off the event loop after a cancelled write, and an
  abandoned diarization worker keeps its audio until it lets go
- Opus is encoded at a constant bitrate; MP3 tests read frame headers

* test(api): record the ElevenLabs voice-changer routes in the route inventory

* chore(licensing): record the Hugging Face htdemucs weights voice isolation checks for
2026-11-25 22:24:16 +05:30

7.5 KiB

Integration directory

Directory entries are not paid sponsors or endorsements. The app lists only entries with a completed built-in setup block or setup panel. Each carries the Works with VoiceStudio badge and capability chips (MCP server, Speech API, Transcription API, Workflow template, Self-hosted, Local language model, Phone calls). Catalog metadata alone never creates a card or a routable detail page. Setup blocks and panels live in one registry keyed by the catalog slug (electron/src/renderer/src/features/integrations/setup-registry.ts), so a connector becomes visible only when its wiring is added there. The provider's website opens from the detail page's Website card. Icons are bundled locally so viewing the directory sends no logo requests to providers. Brand marks belong to their respective owners. Every visible entry must ship a real brand mark; a test fails if one falls back to the generic placeholder.

The sidebar's Integrations entry opens the directory. Each visible detail page offers the provider's website as a separate action. Featured sponsors without completed integration wiring do not receive placeholder detail pages.

Company Official source Icon source
Twilio Website Bundled site icon
n8n Website Bundled site icon
GitHub Container Registry Website Bundled GitHub icon
Docker Website Simple Icons 15.0.0 mark (CC0), Docker blue
Model Context Protocol Website Bundled site icon
OpenAI Agents Guide Simple Icons 15.0.0 OpenAI mark (CC0) on a black tile
Claude Code Guide Simple Icons 15.0.0 Claude mark (CC0), Claude orange
Cursor Website Official site icon (cursor.com/marketing-static/favicon.svg)
Codex CLI Repository Simple Icons 15.0.0 OpenAI mark (CC0) on a black tile
VoiceStudio API Repository VoiceStudio app icon (voicestudio.svg, a copy of electron/public/favicon.svg)

Connect coding agents

The Claude Code, Cursor and Codex CLI detail pages include a copyable MCP configuration for VoiceStudio's current backend address and port. Merge the entry into .mcp.json (Claude Code), .cursor/mcp.json (Cursor) or the [mcp_servers.voicestudio] table into ~/.codex/config.toml (Codex CLI), preserving your other servers. Keep VoiceStudio running, then enable the server in your client. Use Settings → Sharing → MCP voice bindings to bind claude-code, cursor or codex-cli to a saved voice.

The Model Context Protocol page gives the generic Streamable HTTP URL and client-ID header for any other MCP client, plus a stdio configuration for the bundled python -m backend.mcp_shim proxy (needs a source checkout; see MCP).

These configurations use Streamable HTTP and the client-ID header; they do not install another backend or read/write agent configuration files. Exported configurations never contain a key: for a remote https backend they reference OMNIVOICE_API_KEY from your environment (${OMNIVOICE_API_KEY} in Claude Code, ${env:OMNIVOICE_API_KEY} in Cursor, bearer_token_env_var in Codex, and $OMNIVOICE_API_KEY in the curl/Python snippets). A remote plain-http backend gets no key at all, because it would cross the network in clear text; put it behind https first (see API authentication). Copying configuration does not prove the client is connected; use its MCP tools/status view to confirm the connection.

The schemas follow the official Claude Code MCP guide, Cursor MCP guide and Codex MCP guide. The catalog has one card per route, retaining bundled logos and the correct category when entries overlap.

Each detail page leads with the integration's category and a one-line summary. Visible detail pages add a single Learn more link to the integration guide and link to the provider's website. On wide windows the setup sits beside a side panel with status, capabilities and the website; on narrow windows the panel's status comes first and its details follow the setup.

Call the API or run the container

The VoiceStudio API page shows the current backend's OpenAI-compatible base URL with copyable curl and OpenAI Python SDK snippets for /v1/audio/speech and /v1/audio/transcriptions, plus an ElevenLabs Python SDK snippet. Loopback requests need no key; remote ones need the backend's API key (see API authentication).

Apps built for ElevenLabs can use the ElevenLabs-compatible API at <backend>/elevenlabs instead.

The Docker and GitHub Container Registry pages give a docker run (POSIX shell and Windows PowerShell) and a Compose snippet for palashdeb/omnivoice-studio:stable and ghcr.io/debpalash/voicestudio:stable. :stable is the latest tagged release; :latest is the rolling preview built from main. See the Docker install guide for GPU flags and the ROCm tags.

Automate speech with n8n

The n8n detail page exports an inactive, manual workflow that calls the current backend's OpenAI-compatible speech endpoint and returns WAV audio. Edit the text and voice in n8n, then run it yourself. See n8n setup for container networking, credentials and validation. No credentials or automatic background requests are exported.

Voice for OpenAI Agents

The OpenAI Agents detail page shows a copyable Python snippet that points the OpenAI Agents SDK voice pipeline at the current backend's OpenAI-compatible API (<backend>/v1) for both speech recognition and speech. For a remote https backend the API key is read from OMNIVOICE_API_KEY when the script runs and is never written into the snippet; loopback needs no key, and a remote plain-http backend is never given one (put it behind https first); tracing is switched off so nothing is uploaded. The agent's language model must be set explicitly (AGENT_LLM_BASE_URL, AGENT_LLM_MODEL, for a local OpenAI-compatible server); the snippet never falls back to a hosted model. See Agentic voice → OpenAI Agents SDK.

Answer phone calls with Twilio

The Twilio detail page is a guided setup (account, tunnel, phone number, voice) with a live readiness checklist; it answers calls to your Twilio number with a saved voice: VoiceStudio speaks a greeting over a Twilio Media Stream, then hangs up. It is off by default. When enabled, a separate loopback listener that your own HTTPS tunnel (cloudflared, ngrok) forwards to serves only Twilio's endpoints: the voice and status webhooks, which must carry a valid Twilio signature, and the Media Stream, which must present a single-use per-call token. The main API is never exposed. Play phone-quality preview plays the greeting as a caller hears it, without Twilio. See Twilio setup for the tunnel, Twilio Console configuration, security model and limits.

The call agent uses the same setup to place a call from your request (for example, booking a table) or answer one, and holds the conversation in your verified or designed voice. It opens with an editable AI disclosure and records nothing unless you turn recording on.