uracyScores) / accuracyScores.length).toFixed(2));

            // Re-calculate the prosody score by averaging
            let prosodyScore = NaN;
            if (prosodyScores.length !== 0) {
                prosodyScore = Number((_.sum(prosodyScores) / prosodyScores.length).toFixed(2));
            }

            // Re-calculate fluency score
            let fluencyScore = 0;
            if (startOffset > 0) {
                fluencyScore = Number((_.sum(durations) / (endOffset - startOffset) * 100).toFix