mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1221] [MERGED] feat(tts): stream autoplay audio per sentence #4991
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#4991
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/1221
Author: @cha1latte
Created: 5/26/2026
Status: ✅ Merged
Merged: 5/26/2026
Merged by: @cha1latte
Base:
refactor← Head:port/pr-1142-refactor📝 Commits (3)
cc166edfeat(tts): stream autoplay audio per sentence9712254test(tts): cover streaming autoplay queue84ac2a1test(tts): cover pockettts speak smoke📊 Changes
13 files changed (+847 additions, -29 deletions)
View changed files
📝
src-tauri/src/commands/storage/integrations/tts.rs(+73 -0)📝
src/engine/contracts/types/tts.ts(+1 -0)📝
src/features/modes/conversation/components/ConversationModeRoute.tsx(+1 -0)📝
src/features/modes/roleplay/components/RoleplayModeRoute.tsx(+1 -0)📝
src/features/modes/shared/chat-ui/components/ChatMessage.tsx(+23 -8)📝
src/features/modes/shared/chat-ui/hooks/use-chat-tts-autoplay.ts(+67 -11)➕
src/features/modes/shared/chat-ui/hooks/use-streaming-tts.test.tsx(+145 -0)➕
src/features/modes/shared/chat-ui/hooks/use-streaming-tts.ts(+272 -0)📝
src/features/modes/shared/chat-ui/index.ts(+1 -0)📝
src/features/shell/settings/components/settings/TTSConfigCard.tsx(+11 -0)➕
src/shared/lib/sentence-chunker.test.ts(+39 -0)➕
src/shared/lib/sentence-chunker.ts(+140 -0)📝
src/shared/lib/tts-dialogue.ts(+73 -10)📄 Description
Linked issue
Closes #1142
Why this change
What changed
autoplayStreamingTTS setting and surfaced it in the TTS settings card.Refactor impact
Primary owner:
Shared mode UI / TTS configuration
Impact areas reviewed:
Boundary notes:
ttsService.generateAudiopath.Pressure points touched:
use-chat-tts-autoplay,use-streaming-tts,ChatMessageModeSurface,GameSurface, orsrc-tauri/src/lib.rscommand-registration changesValidation
pnpm checkpasses locallypnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallyManual verification notes
pnpm test -- src/shared/lib/sentence-chunker.test.ts; 4 tests passed.pnpm typecheck; passed.pnpm check; passed, including architecture, frontend, Rust, and docs checks.pnpm build; passed. Vite emitted existing chunk/import warnings.cargo check --manifest-path src-tauri/Cargo.toml --workspace; passed.http://127.0.0.1:4174; the app loaded asMarinara Enginewith no console warnings/errors captured.Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdNo docs or release metadata changed. This is an opt-in TTS setting on the refactor branch.
UI evidence
No GitHub-renderable UI evidence is attached yet. Codex did run a local Playwright app-shell smoke on this worktree's Vite server with no console warnings/errors, but real provider-audio behavior still needs manual verification before ready-for-review.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.