Skip to content

feat: Phase 2 Real-time Integration & Jargon Detection#5

Open
hello-caleb wants to merge 4 commits into
feat/phase-1-scaffoldingfrom
feat/phase-2-realtime
Open

feat: Phase 2 Real-time Integration & Jargon Detection#5
hello-caleb wants to merge 4 commits into
feat/phase-1-scaffoldingfrom
feat/phase-2-realtime

Conversation

@hello-caleb

Copy link
Copy Markdown
Owner

Summary

Completes Phase 2 (Real-time Integration) and Phase 3 Jargon Detection.

Changes

  • Live API Connection: Fixed model to gemini-2.5-flash-native-audio-preview-12-2025
  • Blob Handling: WebSocket messages are now correctly parsed as Blob data
  • Jargon Detection: Added gemini-3-service.ts using Gemini 3 Flash Preview REST API
  • Polling Loop: Medical terms extracted every 3s from live transcript
  • Hydration Fix: Added suppressHydrationWarning to layout

Testing

  • WebSocket connects successfully
  • Live transcription works
  • Medical terms detected and displayed in Clarifications panel

Next Steps

  • Phase 3: Video Integration

- Fix Live API model to gemini-2.5-flash-native-audio-preview-12-2025
- Handle Blob data parsing from WebSocket messages
- Add gemini-3-service.ts for REST API jargon detection
- Implement polling loop for medical term extraction
- Add suppressHydrationWarning to layout.tsx
- Update dependencies for @google/generative-ai SDK
- Add use-video-stream.ts hook for local camera preview
- Add camera toggle button to Patient Feed
- Add caption size toggle (A/A+/A++) in Live Captions
- Add MedicalTerm timestamp field
- Add exponential backoff retry for Gemini 3 API 503 errors
- Add livekit-client, livekit-server-sdk, @livekit/components-react
- Create /api/livekit-token API route for JWT generation
- Create use-livekit.ts hook for token management
- Create DoctorVideoRoom component for remote video display
- Create /doctor page for Doctor to join with camera
- Update Dashboard with Join Video Room button and embedded feed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant