Skip to content

fix(translation-demo): preserve audio delay after MoQ update - #82

Merged
Qizot merged 2 commits into
mainfrom
chore/update-translation-moq-dependencies
Aug 26, 2026
Merged

fix(translation-demo): preserve audio delay after MoQ update#82
Qizot merged 2 commits into
mainfrom
chore/update-translation-moq-dependencies

Conversation

@Qizot

Copy link
Copy Markdown
Contributor

Summary

Updates the translation demo to the current MoQ APIs while preserving its configured audio/video delay. The publisher now emits continuous Opus audio through silent periods, preventing DTX from draining the viewer's audio cushion while video remains delayed.

  • Uses @moq/publish 0.4.4 and @moq/watch 0.5.0, with every @moq/net dependency forced to 0.3.1.
  • Migrates connection discovery, capture, encoding, source, decoder, renderer, and sync handling to the new APIs.
  • Updates the translation service lock to moq-ffi 0.2.33.

Why DTX is disabled

The viewer expects continuous timestamped audio to maintain its 4.5-second ring-buffer cushion. Opus DTX suppressed packets during silence, allowing the ring to drain and original audio to resume near the live edge while video stayed delayed. Setting usedtx: false keeps that timeline continuous.

Validation

  • yarn build
  • uv sync --locked
  • .venv/bin/python -m compileall -q translator
  • Confirmed Publish resolves to 0.4.4, Watch to 0.5.0, Net to 0.3.1 throughout the dependency graph, and moq-ffi to 0.2.33.

Post-deploy monitoring & validation

Publish speech with silent intervals and confirm original audio and video retain the configured delay. Roll back if audio returns near the live edge while video remains delayed.

@vercel

vercelBot commented Aug 19, 2026

Copy link
Copy Markdown

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

ProjectDeploymentActionsUpdated (UTC)
moq-demoReadyReadyPreviewAug 25, 2026 7:24pm

Request Review

@Qizot
Qizot merged commit 2ce5be4 into mainAug 26, 2026
3 checks passed
Sign up for freeto 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

@Qizot@Karolk99