Spaces:
Runtime error
Runtime error
Update speech.py
Browse files
speech.py
CHANGED
@@ -161,9 +161,9 @@ def run_results():
|
|
161 |
for i in range(29):
|
162 |
print("第",i+1,"段音频:")
|
163 |
if i<9:
|
164 |
-
filename="
|
165 |
else:
|
166 |
-
filename="
|
167 |
audio = wav.read(filename)
|
168 |
text,score=speech_score(audio)
|
169 |
print(score)
|
|
|
161 |
for i in range(29):
|
162 |
print("第",i+1,"段音频:")
|
163 |
if i<9:
|
164 |
+
filename="02020004-HC/0"+str(i+1)+".wav"
|
165 |
else:
|
166 |
+
filename="02020004-HC/"+str(i+1)+".wav"
|
167 |
audio = wav.read(filename)
|
168 |
text,score=speech_score(audio)
|
169 |
print(score)
|