diff --git a/dist/index.html b/dist/index.html
index 321454a..5f8aab8 100644
--- a/dist/index.html
+++ b/dist/index.html
@@ -407,7 +407,11 @@ async function playTrimmed(blob) {
}
const src = ctx.createBufferSource();
src.buffer = buf;
- src.connect(ctx.destination);
+ const gain = ctx.createGain();
+ // Fade-in 10мс — убирает щелчок при старте
+ gain.gain.setValueAtTime(0, ctx.currentTime);
+ gain.gain.linearRampToValueAtTime(1, ctx.currentTime + 0.01);
+ src.connect(gain).connect(ctx.destination);
src.start();
return new Promise(resolve => { src.onended = resolve; });
}
@@ -744,7 +748,7 @@ async function doCompare(blob, originalText, duration) {