Spaces:
Sleeping
Sleeping
Add wav_type argument to assess_pronunciation_quality
Browse files119 unmodified lines120121122123124125126127128119 unmodified linesreturn red_segments, green_segments, wav_distancesdef assess_pronunciation_quality(dist_matrix, path, threshold=0.4):# _ is green_segmentsred_segments, _, wav_distances = get_red_green_segments(dist_matrix, path, wav_type=None, threshold=threshold)# Analyze normalized distancesnum_red_segments = len(red_segments)119 unmodified lines120121122123124125126127128119 unmodified linesreturn red_segments, green_segments, wav_distancesdef assess_pronunciation_quality(dist_matrix, path, threshold=0.4, wav_type="ref"):# _ is green_segmentsred_segments, _, wav_distances = get_red_green_segments(dist_matrix, path, wav_type=wav_type, threshold=threshold)# Analyze normalized distancesnum_red_segments = len(red_segments)
src/audio_preprocessing.py+2-2