  });
            const pronAssessmentParams = base64Encode(pronAssessmentParamsJson);
            headers["Pronunciation-Assessment"] = pronAssessmentParams;

            return [url, headers, sessionId];
        }

        async function referenceTextHandler() {
            let referenceText = referenceTextField.value;

            // We need to convert the reference text to lower case, and split to words, then remove the punctuations.
            if (["zh-cn"].includes(languageOptions.value.toLowerCase()