Liusuthu commited on
Commit
75037e7
·
verified ·
1 Parent(s): 11ea14f

Update app_utils.py

Browse files
Files changed (1) hide show
  1. app_utils.py +1 -2
app_utils.py CHANGED
@@ -114,8 +114,7 @@ def text_score(text):
114
  def speech_score(audio):
115
  print(type(audio))
116
  print(audio)
117
- Audio = wav.read(audio)
118
- sample_rate, signal = Audio # 这是语音的输入
119
  signal = signal.astype(np.float32)
120
  signal /= np.max(np.abs(signal))
121
  sf.write("data/a.wav", signal, sample_rate)
 
114
  def speech_score(audio):
115
  print(type(audio))
116
  print(audio)
117
+ sample_rate, signal = audio # 这是语音的输入
 
118
  signal = signal.astype(np.float32)
119
  signal /= np.max(np.abs(signal))
120
  sf.write("data/a.wav", signal, sample_rate)