dotfiles
bugabingas dorkfiles
owned by bugabinga
fix(noko): recover long transcriptions
00b6c71ab5e743790f0f61d3cbb02c850c395293
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
Browse filesCompare with HEAD
Changed files (3)
quickshell/nuguland/Noko.qml
Modified+2 / −1 text lines
252252 listening = false; listening = false; 253253 transcribing = false; transcribing = false; 254254 finished = false; finished = false; 255+ if (phase !== "capture" && phase !== "transcribe") 256257 lastError = String(text || phase).trim() || phase; lastError = String(text || phase).trim() || phase; 257258 status = "error"; status = "error"; quickshell/nuguland/noko.js
Modified+1 / −1 text lines
127127 hangover--; hangover--; 129129 inSpeech = false; inSpeech = false; 130+ pre = [{ frame: list[i], index: i }]; 131131 onset = []; onset = []; 133133 continue; continue; quickshell/nuguland/noko.test.js
Modified+10 / −0 text lines
4545assert.deepStrictEqual(gated.frameIndexes, [0, 1, 2, 3]);assert.deepStrictEqual(gated.frameIndexes, [0, 1, 2, 3]); 4646assert.deepStrictEqual(Array.from(gated.samples), [0, 1, 2, 3]);assert.deepStrictEqual(Array.from(gated.samples), [0, 1, 2, 3]); 49+const twoBursts = N.vadGate([0, 1, 2, 3, 4, 5, 6, 7].map(v => new Float32Array([v])), [0, 0.4, 0.5, 0, 0, 0.4, 0.5, 0], { 55+assert.deepStrictEqual(twoBursts.frameIndexes, [0, 1, 2, 3, 4, 5, 6, 7]); 56+assert.deepStrictEqual(Array.from(twoBursts.samples), [0, 1, 2, 3, 4, 5, 6, 7]); 4959assert.strictEqual(N.postprocess(' hello <unk> world ', ['<unk>']), 'hello world');assert.strictEqual(N.postprocess(' hello <unk> world ', ['<unk>']), 'hello world');