Spaces:
Sleeping
Sleeping
Pass wav_type="ref" to assess_pronunciation_quality
Browse files
app.py
CHANGED
|
@@ -52,7 +52,7 @@ def check_pronunciation(reference_audio, input_audio, threshold, wavlm_layer, la
|
|
| 52 |
dist_matrix, path = PronunciationChecker.compute_dtw(ref_features, input_features)
|
| 53 |
log_timing("DTW Computation")
|
| 54 |
|
| 55 |
-
quality_score, needs_repeat = assess_pronunciation_quality(dist_matrix, path, threshold)
|
| 56 |
log_timing("Quality Assessment")
|
| 57 |
|
| 58 |
# Check if DTW path is valid
|
|
|
|
| 52 |
dist_matrix, path = PronunciationChecker.compute_dtw(ref_features, input_features)
|
| 53 |
log_timing("DTW Computation")
|
| 54 |
|
| 55 |
+
quality_score, needs_repeat = assess_pronunciation_quality(dist_matrix, path, threshold, "ref")
|
| 56 |
log_timing("Quality Assessment")
|
| 57 |
|
| 58 |
# Check if DTW path is valid
|