mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1592] [Issue] feat: make TTS voice-lookup path configurable per provider #824
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#824
Loading…
Add table
Add a link
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?
Originally created by @Gunterlie on GitHub (May 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1592
Originally assigned to: @cha1latte on GitHub.
feat: make TTS voice-lookup path configurable per provider
Summary
Marinara hardcodes
/audio/voicesas the path for OpenAI-compatible voice discovery. Servers that implement an OpenAI-style TTS API but expose their voice list under a different path (e.g./v1/voices,/voices, or a completely custom route) cannot be used for voice lookup without forking the binary. Adding a singlevoicesPathconfig field — defaulting to/audio/voices— unblocks every such server at zero cost to users who never change the default.OpenAI's official API does not define a voice-listing endpoint at all. Their TTS voices (alloy, echo, fable, onyx, nova, shimmer) are documented as a fixed enum — there is no published
GET /audio/voicesroute in the OpenAI spec. The path/audio/voicesis a de-facto convention adopted by OpenAI-compatible servers (LocalAI and others), not an OpenAI standard. Because there is no standard, implementations vary — making the path hardcoded is the wrong default.Expected behavior
A user running a custom or self-hosted OpenAI-compatible TTS server can enter the path their server uses for voice listing (e.g.
/voices) in the TTS settings. Marinara uses that path instead of the hardcoded one. Users who leave the field blank get the current behavior unchanged.Actual behavior
The voices path is hardcoded in
openai_voices_url():Any server that exposes its voice catalog under a different path returns a 404 or an unexpected response. Marinara falls back to a static hardcoded list and the user sees no provider voices — with no indication of why.
Steps to reproduce
GET /v1/voices(no/audio/segment)GET /v1/audio/voicesEnvironment
source: "openai", NanoGPT, and any custombaseUrl)Proposed fix
Part A — Add
voicesPathto the TTS config schemaNew optional field, validated the same way as
baseUrl(trimmed, leading slash normalized). Empty string = use the default.Part B — Read
voicesPathinopenai_voices_url()Part C — Expose
voicesPathinTTSConfigCardAdd a text input below the existing
baseUrlfield. Placeholder:/audio/voices. Only shown whensourceis"openai"or a custom provider (hide for ElevenLabs and PocketTTS, which have fixed paths).Part D — Persist via
tts_configmutationvoicesPathgets written and read through the existing"app-settings"/"tts"store — no new storage key required.Scope
voicesPath)openai_voices_urlgains avoices_path: &strparameter)TTSConfigCard.tsxTemplate check
@cha1latte commented on GitHub (May 29, 2026):
Triage note: labeling this as
normal-scopebecause it adds a provider-specific voice lookup path while preserving/audio/voicesas the default.A good first slice is a single optional config field plus voice-discovery validation.
@cha1latte commented on GitHub (May 31, 2026):
closed in #1744