Spaces:
Runtime error
Runtime error
Update app_utils.py
Browse files- 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 |
-
|
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)
|