Repository navigation
feat(ai.tts): add paxa input streaming - #312
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 38 minutes. View limit details
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to This change adds incremental Paxa speech controls (append, flush, end). No concrete merge-blocking risk was identified in the reviewed portion. Pre-merge checks |
|
There was a problem hiding this comment.
🔇 Additional comments (15)
docs/design-docs/specs/196-paxa-text-to-speech.md (1)
1-33: LGTM!server/go.mod (1)
5-8: LGTM!server/main.go (1)
36-39: LGTM!server/paxa_live.go (1)
45-55: LGTM!server/paxa_live_test.go (1)
1-124: LGTM!ui/src/objects/ai.tts/schema.ts (1)
11-13: LGTM!Also applies to: 23-25, 46-54
ui/src/objects/ai.tts/live-session.test.ts (1)
1-166: LGTM!ui/src/objects/ai.tts/useLiveSpeech.svelte.ts (1)
32-95: LGTM!ui/src/objects/ai.tts/useLiveSpeech.test.ts (1)
1-118: LGTM!ui/src/objects/ai.tts/AiSpeechNode.svelte (1)
93-110: LGTM!Also applies to: 223-225, 333-333, 346-346
ui/src/objects/ai.tts/prompt.ts (1)
1-35: LGTM!ui/src/lib/ai/object-descriptions-types.ts (1)
141-141: LGTM!Also applies to: 276-276
ui/src/lib/ai/object-prompts/index.ts (1)
6-6: LGTM!Also applies to: 91-91
ui/static/content/objects/ai.tts.md (1)
58-90: LGTM!ui/src/objects/ai.tts/live-session.ts (1)
74-81: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value
⚠️ Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.Detach socket handlers in
stop().
stop()closes the socket but keeps theonopen,onmessage,onerror, andonclosehandlers attached. Theclosedguards stop late events from doing anything, so this does not change behavior. Clearing the handlers releases the closures that captureoptions. This follows the learning to remove WebSocket listeners when a socket closes.♻️ Proposed change
this.pending.length = 0; + this.socket.onopen = this.socket.onmessage = this.socket.onerror = this.socket.onclose = null; this.socket.close();Based on learnings: "explicitly remove all registered event listeners (open, message, error, close) before/while closing".
Source: Learnings
ℹ️ Review info
⚙️ Run configuration
- Configuration used: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
6ece97eb-b255-4120-954d-f23f7d7c5978
📒 Files selected for processing (16)
docs/design-docs/specs/187-gemini-text-to-speech.mddocs/design-docs/specs/196-paxa-text-to-speech.mdserver/go.modserver/main.goserver/paxa_live.goserver/paxa_live_test.goui/src/lib/ai/object-descriptions-types.tsui/src/lib/ai/object-prompts/index.tsui/src/objects/ai.tts/AiSpeechNode.svelteui/src/objects/ai.tts/live-session.test.tsui/src/objects/ai.tts/live-session.tsui/src/objects/ai.tts/prompt.tsui/src/objects/ai.tts/schema.tsui/src/objects/ai.tts/useLiveSpeech.svelte.tsui/src/objects/ai.tts/useLiveSpeech.test.tsui/static/content/objects/ai.tts.md
💤 Files with no reviewable changes (1)
- docs/design-docs/specs/187-gemini-text-to-speech.md
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.
162c5e2 to
27a4934
Compare
27a4934 to
c84f592
Compare
Add input streaming for
paxaSummary by CodeRabbit