unkSize;
                    if (offset < audioFile.size) {
                        readNextChunk();
                    } else {
                        done && done();
                    }
                };

                fr.readAsArrayBuffer(slice);
            }

            readNextChunk();
        }

        function getAudioConfigFromStream() {
            if (audioFile) {
                let audioFormat = SpeechSDK.AudioStreamFormat.getWaveFormatPCM(16000, 16, 1);
                let audioStream