mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1207] [MERGED] Fix refactor TTS provider voice model hint #4981
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#4981
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1207
Author: @cha1latte
Created: 5/25/2026
Status: ✅ Merged
Merged: 5/25/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/refactor-issue-1131-tts-voices-model📝 Commits (2)
84e68f9Fix refactor TTS provider voice model hint5ce3713Document TTS voice model URL helper📊 Changes
1 file changed (+129 additions, -1 deletions)
View changed files
📝
src-tauri/src/commands/storage/integrations/tts.rs(+129 -1)📄 Description
Linked issue
Closes #1131
Why this change
OpenAI-compatible TTS providers can host multiple voice models behind the same
baseUrl. On the refactor branch, the native TTS voice lookup still requested{baseUrl}/audio/voiceswithout passing the saved model, so model-specific providers such as mlx-audio could return the wrong catalog or reject the request and force Marinara back to the built-in OpenAI voice list.This ports the staging PR's intended behavior into the refactor branch's Tauri/Rust TTS integration path.
What changed
openai_voices_url()insrc-tauri/src/commands/storage/integrations/tts.rsto append the trimmed configured model as?model=...for OpenAI-compatible voice discovery.{baseUrl}/audio/voicesrequest.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Codex verification performed:
cargo test --manifest-path src-tauri/Cargo.toml openai_compatible_voice_lookup_passes_configured_model; the local model-gated voice endpoint rejected the request without?model=, and Marinara returnedfromProvider: false.cargo test --manifest-path src-tauri/Cargo.toml storage_commands::integrations::tts::tests; all 3 TTS integration tests passed.pnpm check; architecture, frontend typecheck, Rust cargo check, and docs check passed.git diff --check; no whitespace errors.scratch/bugfix-verification.json; it passed.Not manually verified against a real external OpenAI-compatible TTS server or api.openai.com from this environment.
Docs and release impact
No docs or version files changed.
UI evidence (if applicable)
No UI code changed. This is a native TTS command/provider request change verified with a Rust integration harness.
Summary by CodeRabbit
Bug Fixes
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.