You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Lint: flag data-volume values that are not numbers or fall outside 0 to 3.98 #7274
The documented range for data-volume is 0 to 3.98 (+12 dB) (docs/reference/html-schema.mdx). Values outside it are clamped silently (packages/core/src/audioGain.ts, around line 25), and non-numbers fall back to 1. So data-volume="80" (someone writing a percent) plays as a +12 dB boost, and data-volume="loud" plays at normal volume. Lint reports neither.
Scope
Warn when data-volume isn't a finite number, or is below 0 or above 3.98.
The lint package doesn't depend on core, so add a test that keeps the 3.98 limit in sync with audioGain.ts.
Hi, I'd like to take this one — I'll add the data-volume lint warnings in packages/lint/src/rules/media.ts with tests for 80, -1, loud (warn) and 0, 1, 3.98 (no warn), plus the limit-sync test against audioGain.ts.
Activity
wanjinhao1 commentedon Nov 6, 2026
Hi, I'd like to take this one — I'll add the
data-volumelint warnings inpackages/lint/src/rules/media.tswith tests for80,-1,loud(warn) and0,1,3.98(no warn), plus the limit-sync test againstaudioGain.ts.Fix heygen-com#7274: describe out-of-range data-volume clamping to th…