Docs: clarify OpenAI-compatible TTS endpoints

This commit is contained in:
Vincent Koc
2026-03-05 16:57:51 -05:00
parent 1d3962a000
commit 6b2c115167

View File

@@ -93,6 +93,7 @@ Full schema is in [Gateway configuration](/gateway/configuration).
}, },
openai: { openai: {
apiKey: "openai_api_key", apiKey: "openai_api_key",
baseUrl: "https://api.openai.com/v1",
model: "gpt-4o-mini-tts", model: "gpt-4o-mini-tts",
voice: "alloy", voice: "alloy",
}, },
@@ -216,6 +217,9 @@ Then run:
- `prefsPath`: override the local prefs JSON path (provider/limit/summary). - `prefsPath`: override the local prefs JSON path (provider/limit/summary).
- `apiKey` values fall back to env vars (`ELEVENLABS_API_KEY`/`XI_API_KEY`, `OPENAI_API_KEY`). - `apiKey` values fall back to env vars (`ELEVENLABS_API_KEY`/`XI_API_KEY`, `OPENAI_API_KEY`).
- `elevenlabs.baseUrl`: override ElevenLabs API base URL. - `elevenlabs.baseUrl`: override ElevenLabs API base URL.
- `openai.baseUrl`: override the OpenAI TTS endpoint.
- Resolution order: `messages.tts.openai.baseUrl` -> `OPENAI_TTS_BASE_URL` -> `https://api.openai.com/v1`
- Non-default values are treated as OpenAI-compatible TTS endpoints, so custom model and voice names are accepted.
- `elevenlabs.voiceSettings`: - `elevenlabs.voiceSettings`:
- `stability`, `similarityBoost`, `style`: `0..1` - `stability`, `similarityBoost`, `style`: `0..1`
- `useSpeakerBoost`: `true|false` - `useSpeakerBoost`: `true|false`