[PR #1744] [MERGED] Add configurable OpenAI TTS voice lookup path #5255

Closed
opened 2026-10-22 04:14:38 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1744
Author: @cha1latte
Created: 5/31/2026
Status: ✅ Merged
Merged: 5/31/2026
Merged by: @cha1latte

Base: refactor ← Head: fix/issue-1592-tts-voices-path


📝 Commits (1)

  • 22b0b88 Add configurable TTS voice lookup path

📊 Changes

5 files changed (+96 additions, -11 deletions)

View changed files

📝 src-tauri/src/commands/storage/integrations/tts.rs (+66 -8)
📝 src/engine/contracts/types/tts.ts (+2 -0)
📝 src/features/modes/shared/chat-ui/hooks/use-streaming-tts.test.tsx (+1 -0)
📝 src/features/shell/settings/components/settings/TTSConfigCard.tsx (+23 -0)
📝 src/shared/hooks/use-tts.ts (+4 -3)

📄 Description

Linked issue

Closes #1592

Why this change

  • OpenAI-compatible TTS providers do not share a standard voice-list endpoint. Marinara hardcoded /audio/voices, so self-hosted or custom-compatible providers using paths like /voices or /v1/voices could not return live voice catalogs.

What changed

  • Added optional voicesPath to the TTS config contract, defaulting to blank so existing configs keep /audio/voices.
  • Updated OpenAI-compatible voice lookup to use the configured path when present while preserving model query handling.
  • Added a Connections panel input for the OpenAI-compatible voice lookup path.
  • Added focused Rust regression coverage for default and configured voice lookup routes.

Refactor impact

Primary owner:

Rust storage integrations / TTS configuration.

Impact areas reviewed:

  • src-tauri TTS voice lookup
  • shared TTS config schema
  • Connections TTS settings card
  • TTS voice query cache key
  • existing streaming TTS config test fixture

Boundary notes:

  • Engine contract remains React-free.
  • Feature UI continues through shared TTS hooks/API wrappers.
  • Provider URL construction remains in the Rust TTS integration boundary.

Pressure points touched:

  • Connections panel TTS settings card
  • tts_voices Rust command path

Validation

  • Matching validation command passes locally (for example pnpm typecheck, pnpm build, pnpm check:architecture, pnpm check:docs, or full pnpm check when warranted)
  • pnpm check passes locally before PR push/handoff, including the unused-code check
  • pnpm typecheck passes locally
  • pnpm build passes locally
  • pnpm check:architecture passes locally
  • pnpm check:docs passes locally
  • cargo check --manifest-path src-tauri/Cargo.toml --workspace passes locally
  • Rust clippy/tests were run for Rust behavior changes
  • Browser or Tauri app manual verification completed
  • Browser screenshot/recording evidence added when UI/browser state is the claim
  • Remote runtime smoke checked when relevant

Manual verification notes

Codex verification run:

  • cargo test --manifest-path src-tauri/Cargo.toml openai_compatible_voice_lookup -- --nocapture
  • cargo test --manifest-path src-tauri/Cargo.toml openai_voices_url -- --nocapture
  • pnpm test -- src\features\modes\shared\chat-ui\hooks\use-streaming-tts.test.tsx
  • pnpm typecheck
  • cargo check --manifest-path src-tauri\Cargo.toml
  • node scratch\issue-1592-ui-proof.mjs
  • pnpm check
  • node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.json

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

UI evidence

Local Playwright proof captured the OpenAI-compatible TTS settings card showing the new Voice Lookup Path field with /audio/voices placeholder at scratch/issue-1592-tts-voices-path.png. Not embedded here because local scratch files are not GitHub-renderable PR evidence.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/1744 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/31/2026 **Status:** ✅ Merged **Merged:** 5/31/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `fix/issue-1592-tts-voices-path` --- ### 📝 Commits (1) - [`22b0b88`](https://github.com/Pasta-Devs/Marinara-Engine/commit/22b0b88a72c801130ce0328c85beb8322084a303) Add configurable TTS voice lookup path ### 📊 Changes **5 files changed** (+96 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `src-tauri/src/commands/storage/integrations/tts.rs` (+66 -8) 📝 `src/engine/contracts/types/tts.ts` (+2 -0) 📝 `src/features/modes/shared/chat-ui/hooks/use-streaming-tts.test.tsx` (+1 -0) 📝 `src/features/shell/settings/components/settings/TTSConfigCard.tsx` (+23 -0) 📝 `src/shared/hooks/use-tts.ts` (+4 -3) </details> ### 📄 Description ## Linked issue Closes #1592 ## Why this change - OpenAI-compatible TTS providers do not share a standard voice-list endpoint. Marinara hardcoded `/audio/voices`, so self-hosted or custom-compatible providers using paths like `/voices` or `/v1/voices` could not return live voice catalogs. ## What changed - Added optional `voicesPath` to the TTS config contract, defaulting to blank so existing configs keep `/audio/voices`. - Updated OpenAI-compatible voice lookup to use the configured path when present while preserving model query handling. - Added a Connections panel input for the OpenAI-compatible voice lookup path. - Added focused Rust regression coverage for default and configured voice lookup routes. ## Refactor impact Primary owner: Rust storage integrations / TTS configuration. Impact areas reviewed: - `src-tauri` TTS voice lookup - shared TTS config schema - Connections TTS settings card - TTS voice query cache key - existing streaming TTS config test fixture Boundary notes: - Engine contract remains React-free. - Feature UI continues through shared TTS hooks/API wrappers. - Provider URL construction remains in the Rust TTS integration boundary. Pressure points touched: - Connections panel TTS settings card - `tts_voices` Rust command path ## Validation - [ ] Matching validation command passes locally (for example `pnpm typecheck`, `pnpm build`, `pnpm check:architecture`, `pnpm check:docs`, or full `pnpm check` when warranted) - [ ] `pnpm check` passes locally before PR push/handoff, including the unused-code check - [ ] `pnpm typecheck` passes locally - [ ] `pnpm build` passes locally - [ ] `pnpm check:architecture` passes locally - [ ] `pnpm check:docs` passes locally - [ ] `cargo check --manifest-path src-tauri/Cargo.toml --workspace` passes locally - [ ] Rust clippy/tests were run for Rust behavior changes - [ ] Browser or Tauri app manual verification completed - [ ] Browser screenshot/recording evidence added when UI/browser state is the claim - [ ] Remote runtime smoke checked when relevant ### Manual verification notes Codex verification run: - `cargo test --manifest-path src-tauri/Cargo.toml openai_compatible_voice_lookup -- --nocapture` - `cargo test --manifest-path src-tauri/Cargo.toml openai_voices_url -- --nocapture` - `pnpm test -- src\features\modes\shared\chat-ui\hooks\use-streaming-tts.test.tsx` - `pnpm typecheck` - `cargo check --manifest-path src-tauri\Cargo.toml` - `node scratch\issue-1592-ui-proof.mjs` - `pnpm check` - `node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.json` ## Docs and release impact - [ ] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [ ] Confirmed this PR does not restore old staging/package-workspace/release claims ## UI evidence Local Playwright proof captured the OpenAI-compatible TTS settings card showing the new `Voice Lookup Path` field with `/audio/voices` placeholder at `scratch/issue-1592-tts-voices-path.png`. Not embedded here because local scratch files are not GitHub-renderable PR evidence. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:14:38 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#5255
No description provided.