v77: фикс playTrimmed — await getAudioCtx()
This commit is contained in:
+1
-1
@@ -93,7 +93,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);
|
||||
|
||||
Reference in New Issue
Block a user