mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1414] [CLOSED] Restore TTS audio format config #5079
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#5079
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/1414
Author: @cha1latte
Created: 5/27/2026
Status: ❌ Closed
Base:
refactor← Head:fix/refactor-issue-1360-tts-audio-format📝 Commits (1)
f50dbf9Restore TTS audio format config📊 Changes
5 files changed (+170 additions, -2 deletions)
View changed files
📝
src-tauri/src/commands/storage/integrations/tts.rs(+127 -1)📝
src/engine/contracts/types/tts.ts(+4 -0)📝
src/features/modes/shared/chat-ui/hooks/use-streaming-tts.test.tsx(+1 -0)📝
src/features/shell/settings/components/settings/TTSConfigCard.tsx(+37 -1)📝
src/shared/lib/tts-dialogue.test.ts(+1 -0)📄 Description
Linked issue
Closes #1360
Why this change
audioFormatoption, so imported OpenAI-compatible TTS settings could not preservemp3/wavand native requests always sentresponse_format: "mp3".What changed
audioFormatto the shared TTS contract with legacymp3/wavvalues and anmp3default.mp3for invalid values.wavand invalid-format fallback.Refactor impact
Primary owner:
Rust storage / shared API
Impact areas reviewed:
Boundary notes:
audioFormatfield.mp3/wavformats for OpenAI-compatible requests and falls back tomp3for unsupported persisted values.mp3/wavare intentionally out of scope.Pressure points touched:
Validation
pnpm checkpasses locallypnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallyManual verification notes
node scratch\issue-1360-tts-audio-format-proof.mjspasses.cargo test --manifest-path src-tauri\Cargo.toml openai_compatible_speak_uses_configured_audio_format --workspacepasses.cargo test --manifest-path src-tauri\Cargo.toml openai_compatible_speak_rejects_invalid_audio_format_config --workspacepasses.pnpm checkpasses.git diff --check upstream/refactor...HEADpasses.node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.jsonpasses.wavpersists.spawn EPERM; MCP browser navigation confirmed the app shell loads athttp://localhost:1420/, but the available MCP toolset did not include a click/action primitive to open the settings panel.Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdNo docs or release metadata changes needed; this restores an existing legacy config option.
UI evidence
N/A for request-path proof. Manual browser/Tauri UI verification is listed above because local browser interaction was blocked after app-shell load.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.