           let lastWords = [];
            if (enableMiscue && !unscriptedScenario) {
                // align the reference words basing on recognized words.
                referenceWords = alignListsWithDiffHandling(
                    referenceWords,
                    allWords.map(x => x.Word.toLowerCase())
                );
                // For continuous pronunciation assessment mode, the service won't return the words with `Insertion` or `Omission`
                // We need to compare with the