\p{N}\s]/u.test(char)).join("");
            return segment_word(referenceText, dictionary);
        }

        async function getReferenceWords(referenceText) {
            const response = await fetch("zhcn_short_dummy_sample.wav");  // You need to start the server first. See the README for details.
            const buffer = await response.arrayBuffer();
            const uint8Array = new Uint8Array(buffer);
            const audioConfig = SpeechSDK.AudioConfig.fromWavFileInput(uint8Array);
            c