PronunciationAssessmentGranularity.Phoneme,
                true
            );

            // Apply pronunciation assessment config to speech recognizer
            pronunciationConfig.applyTo(speechRecognizer);
            const res = await new Promise((resolve, reject) => {
                speechRecognizer.recognizeOnceAsync(
                    (result) => {
                        const referenceWords = [];
                        if (result.reason == SpeechSDK.ResultReason.RecognizedSpeech) {
       