Liusuthu commited on
Commit
c90abc7
1 Parent(s): 5d7113b

Update speech.py

Browse files
Files changed (1) hide show
  1. speech.py +3 -3
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="02020004-HC/0"+str(i+1)+".wav"
176
  else:
177
- filename="02020004-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
  #处理完毕后
 
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
  #处理完毕后