WIP feat(moshi): subtitle Topic bus, TTS gating, and refactoring#93
Open
ChengyuSun wants to merge 2 commits into
Open
WIP feat(moshi): subtitle Topic bus, TTS gating, and refactoring#93ChengyuSun wants to merge 2 commits into
ChengyuSun wants to merge 2 commits into
Conversation
added 2 commits
June 21, 2026 12:19
…eepseek-v4-pro Phase 2a/2b implementation + code refactoring: ## Features - Add SubtitleTopic for cross-process subtitle via Zenoh Topic bus - Add SubtitleTopicConfig with 3-layer fallback (ConfigStore → mode import → HTTP bypass) - Extend subtitle_callback signature to (text, is_final, batch_id) - Add AudioRuntimeTopic gating to advance_point for TTS playback sync - Add LectureBrain state machine for lecture flow control ## Refactor - Split moss_in_reflex.py (1052→385 lines) into 5 modules: state.py, subtitle.py, channel_commands.py, http_endpoints.py - moss() function: 592→60 lines pure orchestration ## Chore - Remove .moss_ws/assets/courses/ from git tracking, add to .gitignore via claude code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
讲课翻章不再抢话
之前 Ghost 讲完第一段立刻翻章,新旧音频重叠。现在
advance_point会等 TTS 完全播完再推进,确保"说完再走"。句级字幕通道(代码已就绪,未通)
实现了从 TTS 引擎逐句拿字幕 → Zenoh 跨进程 → 前端显示的完整链路。字幕随语音同步出现,而非整段一起出。
讲课状态追踪
新增
LectureBrain状态机,讲到哪里、讲了多少、是否暂停,服务端全程可查。代码重构
moss_in_reflex.py从 1000+ 行的单文件拆成了 5 个模块,找代码、加功能不再大海捞针。已知问题
下一步
先修 #24 让讲课跑通,再修 #23 让字幕出来。'