OpenAI-compatible speech API adapter #14
Labels
No labels
NaNs
area/audio
area/build
area/docs
area/dsh
area/engine
area/security
area/ui
needs-operator
priority/later
priority/next
priority/now
type/bug
type/task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
dsh-plugins/dsh-whale-noises#14
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
A cloud engine that works against any OpenAI-compatible
/v1/audio/speechendpoint — OpenAI today, and LM Studio / vLLM / LocalAI / Groq / a proxy tomorrow.Scope
fetch(baseURL + '/v1/audio/speech', { method: 'POST', headers: { Authorization, Content-Type }, body: JSON.stringify({ model, input, voice, response_format, speed }) });response_format: 'wav'(orpcm24 kHz) preferred over mp3 for latency/gapless.https://api.openai.com), key, model, voice; model list is free-text + known suggestions, because compatible servers differ.speedmaps to the queue's rate where possible.fetch: success, 401 opaque, 429, abort, oversized input.Acceptance
api.openai.comwith an operator-provided key, and through a local OpenAI-compatible server with no key configured.tts-1shutdown by configuration alone.Notes
docs/research/tts-engines.md§6 (4096 cap, CORS preflight OK, 401 has no ACAO, models deprecated 2027-01-06).dsh referenced this issue2026-10-25 14:58:56 +00:00
Deferred 2026-10-25 by operator decision (see #22): cloud TTS is out of the initial scope — focus on the JS/WASM voices first. The adapter is not cancelled; the design (OpenAI-compatible,
baseURLoverride, client-side key) stays indocs/dev-plan.md§7.3 andAGENTS.mdD8 for when it comes back. Reopen when the local engines are solid.Related research:
tts-1/tts-1-hd/gpt-4o-mini-ttsare deprecated and shut down 2027-01-06, so the generic-compatible design is the only durable one.