[PR #1178] [MERGED] Port TTS speed fallback to refactor #4961

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

📋 Pull Request Information

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

Base: refactor ← Head: fix/refactor-pr-1141-tts-speed


📝 Commits (1)

  • b80fce5 Port TTS speed fallback to refactor

📊 Changes

5 files changed (+36 additions, -5 deletions)

View changed files

📝 src/features/modes/shared/chat-ui/components/ChatMessage.tsx (+11 -3)
📝 src/features/modes/shared/chat-ui/hooks/use-chat-tts-autoplay.ts (+10 -2)
📝 src/features/shell/settings/components/settings/TTSConfigCard.tsx (+2 -0)
📝 src/shared/lib/tts-dialogue.ts (+9 -0)
📝 src/shared/lib/tts-service.ts (+4 -0)

📄 Description

What?

Ports the local OpenAI-compatible TTS speed fallback from #1141 onto the refactor branch layout.

This keeps OpenAI cloud and non-OpenAI providers at the provider-owned speed behavior, while local OpenAI-compatible TTS servers apply the configured speed slider through the browser audio element.

Why?

#1141 targets staging, but the same fix needs to land on refactor. A straight retarget conflicts because the TTS call sites moved in the refactor branch.

How?

  • Added clientSidePlaybackRate() in the shared TTS dialogue helpers.
  • Applied non-default playback rates inside ttsService.speak().
  • Passed the computed playback rate from chat autoplay, per-message speak, and settings preview.

Testing?

  • pnpm check passed.
  • Scratch Vitest proof passed: 1 file, 4 tests.
  • Bunny pass completed for the focused refactor diff.

Screenshots

N/A, non-visual TTS playback behavior.

Anything Else?

Source PR: #1141.

Manual verification to consider: test the speed slider against a real local OpenAI-compatible TTS server, since Codex verified the client-side playback path but did not play audio through a real local TTS provider.


🔄 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/1178 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/24/2026 **Status:** ✅ Merged **Merged:** 5/24/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `fix/refactor-pr-1141-tts-speed` --- ### 📝 Commits (1) - [`b80fce5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b80fce5ef77f158c31d394e013e655d3990b034e) Port TTS speed fallback to refactor ### 📊 Changes **5 files changed** (+36 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `src/features/modes/shared/chat-ui/components/ChatMessage.tsx` (+11 -3) 📝 `src/features/modes/shared/chat-ui/hooks/use-chat-tts-autoplay.ts` (+10 -2) 📝 `src/features/shell/settings/components/settings/TTSConfigCard.tsx` (+2 -0) 📝 `src/shared/lib/tts-dialogue.ts` (+9 -0) 📝 `src/shared/lib/tts-service.ts` (+4 -0) </details> ### 📄 Description ## What? Ports the local OpenAI-compatible TTS speed fallback from #1141 onto the refactor branch layout. This keeps OpenAI cloud and non-OpenAI providers at the provider-owned speed behavior, while local OpenAI-compatible TTS servers apply the configured speed slider through the browser audio element. ## Why? #1141 targets staging, but the same fix needs to land on refactor. A straight retarget conflicts because the TTS call sites moved in the refactor branch. ## How? - Added `clientSidePlaybackRate()` in the shared TTS dialogue helpers. - Applied non-default playback rates inside `ttsService.speak()`. - Passed the computed playback rate from chat autoplay, per-message speak, and settings preview. ## Testing? - `pnpm check` passed. - Scratch Vitest proof passed: 1 file, 4 tests. - Bunny pass completed for the focused refactor diff. ## Screenshots N/A, non-visual TTS playback behavior. ## Anything Else? Source PR: #1141. Manual verification to consider: test the speed slider against a real local OpenAI-compatible TTS server, since Codex verified the client-side playback path but did not play audio through a real local TTS provider. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:12:03 +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#4961
No description provided.