];
            durations = [];
            jo = {};
            referenceWords = [];
        }

        function getAudioStreamChunked(audioFile, cb, done, chunkSize = 3200) {
            let offset = 0;

            function readNextChunk() {
                const slice = audioFile.slice(offset, offset + chunkSize);
                const fr = new FileReader();

                fr.onload = (e) => {
                    const buf = e.target.result;
                    cb(buf);
                    offset += ch