Spaces:
Runtime error
Runtime error
Update speech.py
Browse files
speech.py
CHANGED
@@ -172,12 +172,12 @@ def run_results():
|
|
172 |
for i in range(29):
|
173 |
print("第",i+1,"段音频:")
|
174 |
if i<9:
|
175 |
-
filename="
|
176 |
else:
|
177 |
-
filename="
|
178 |
audio = wav.read(filename)
|
179 |
text,score=speech_score(audio)
|
180 |
-
print(score)
|
181 |
with open("data.txt",'a', encoding="utf8") as f:
|
182 |
f.write(str(score)+'\n')
|
183 |
#处理完毕后
|
|
|
172 |
for i in range(29):
|
173 |
print("第",i+1,"段音频:")
|
174 |
if i<9:
|
175 |
+
filename="02030010-HC/0"+str(i+1)+".wav"
|
176 |
else:
|
177 |
+
filename="02030010-HC/"+str(i+1)+".wav"
|
178 |
audio = wav.read(filename)
|
179 |
text,score=speech_score(audio)
|
180 |
+
# print(score)
|
181 |
with open("data.txt",'a', encoding="utf8") as f:
|
182 |
f.write(str(score)+'\n')
|
183 |
#处理完毕后
|