mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1131] TTS voice list: pass the configured model to OpenAI-compatible provider voices endpoint #559
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#559
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 @etherious1804 on GitHub (May 24, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1131
Originally assigned to: @cha1latte on GitHub.
Problem
When the TTS source is
openaibut thebaseUrlpoints at a local or third-party OpenAI-compatible TTS server (e.g. mlx-audio, openedai-speech, LocalAI), the voice dropdown silently falls back to OpenAI's hardcoded 9 voices instead of showing what the configured server actually supports.Root cause
fetchProviderVoicesinpackages/server/src/routes/tts.routes.tsalready fetches${base}/audio/voicesfor the openai source and falls back gracefully on 404. But it does not pass the configured model as a query parameter.Multi-model OAI-compatible TTS servers cannot know which voice catalog to return without that hint. mlx-audio in particular can host Kokoro (54 voices), Higgs Audio (3 sample voices + reference cloning), Chatterbox, etc. side-by-side — each with very different catalogs. Without
?model=, those servers either 400 the request or return the wrong list.The result: even if your local server has the right endpoint, Marinara won't show the voices, so per-character voice mode (
voiceMode: "per-character") is effectively unusable against a local TTS server — users can only assign characters to OpenAI's 9 cloud voices.Repro
source: openai,baseUrl: http://127.0.0.1:8081/v1,model: mlx-community/Kokoro-82M-bf16./v1/audio/voices?model=<id>.GET /api/tts/voicesreturns{ fromProvider: false, voices: [alloy, ash, coral, ...] }— the OpenAI fallback, not the 54 Kokoro voices.Proposed fix
Include
cfg.modelas a?model=query param when fetching${base}/audio/voices. Vanillaapi.openai.comignores unknown query params, so the change is safe for the default OpenAI endpoint. Local/multi-model servers can now disambiguate.The fix is 4 lines, no behavior change for OpenAI-hosted users.
PR
I'll open a draft PR with the change linked to this issue.
@cha1latte commented on GitHub (May 25, 2026):
Closed in #1207