From 201ca095e7104727c0f7a34bb29e1122f36a2453 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Fri, 22 May 2026 21:39:18 +0400 Subject: [PATCH] =?UTF-8?q?v77:=20=D1=84=D0=B8=D0=BA=D1=81=20playTrimmed?= =?UTF-8?q?=20=E2=80=94=20await=20getAudioCtx()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/index.html | 4 ++-- js/audio.js | 2 +- js/main.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/index.html b/dist/index.html index c1061ac..321454a 100644 --- a/dist/index.html +++ b/dist/index.html @@ -395,7 +395,7 @@ function stopRecording() { // ---------- Воспроизведение (с обрезкой тишины) ---------- async function playTrimmed(blob) { const t = await trimSilence(blob); - const ctx = getAudioCtx(); + const ctx = await getAudioCtx(); let buf; if (t) { const offline = new OfflineAudioContext(1, t.data.length, t.sr); @@ -744,7 +744,7 @@ async function doCompare(blob, originalText, duration) {