Skip to content

feat: add translation support to transcription API#3640

Open
raviteja83 wants to merge 13 commits intomainfrom
feat-translation-sdk
Open

feat: add translation support to transcription API#3640
raviteja83 wants to merge 13 commits intomainfrom
feat-translation-sdk

Conversation

@raviteja83
Copy link
Copy Markdown
Collaborator

@raviteja83 raviteja83 commented Apr 8, 2026

Summary

  • Add translation field to HMSTranscriptionInfo for room state
  • Add TranslationConfig and TranscriptionConfigUpdate interfaces
  • Add updateTranscriptionConfig() action for runtime translation toggle
  • Handle on-transcription-config-update notification to update store
  • Fix frozen store object mutation in config update handler
  • Add ISO 639-1/BCP 47 language format documentation

Test plan

  • Start captions with translation enabled, verify room.transcriptions[].translation in store
  • Toggle translation mid-session via updateTranscriptionConfig
  • Late joiner sees translation state in room state

🤖 Generated with Claude Code

- Add language and translation params to startTranscription()
- Add updateTranscriptionConfig() action for runtime translation toggle
- Add TranslationConfig and TranscriptionConfigUpdate interfaces
- Add transcription-config-update signal method

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 8, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dashboard-app Ready Ready Preview Apr 9, 2026 2:22pm

Request Review

raviteja83 and others added 2 commits April 8, 2026 09:58
…interfaces

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Allows SDK consumers to read translation state from room state
when biz broadcasts it (requires biz-side change to populate).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Maps translation field from TranscriptionNotification to
HMSTranscriptionInfo so SDK consumers can read current
translation state (enabled, roleLanguages) from room.transcriptions.

Requires biz to include translation in room state broadcast.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Checkbox to enable translation on caption start
- JSON textbox for roleLanguages mapping
- Enable/Disable Translation buttons when captions are running
- Uses updateTranscriptionConfig for runtime toggle

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Append ?qa to the URL to use QA endpoints instead of prod.
e.g., http://localhost:3000/meeting/abc-def?qa

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…signal

Only send language and translation when explicitly provided to avoid
sending undefined values over the wire.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Merge translation state into room transcriptions when config update
notification is received, so store.getState() stays in sync.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Store objects are immutable (frozen by Immer). Use spread to create
new transcription objects instead of mutating in place.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Remove QA-specific endpoint hardcoding and testing-only translation
toggle UI. These were for internal testing only.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
cyril-k-031225
cyril-k-031225 previously approved these changes Apr 8, 2026
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Cherry-pick CI workflow fixes and yarn.lock from ci/release-abdca1f00.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

2 participants