Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -194,5 +194,6 @@ with torch.no_grad():
|
|
| 194 |
|
| 195 |
# 保存为WAV文件(16kHz采样率)
|
| 196 |
sf.write("customer_service_response.wav", speech.numpy(), samplerate=16000)
|
|
|
|
|
|
|
| 197 |
|
| 198 |
-
print("语音生成完成,已保存为 customer_service_response.wav")
|
|
|
|
| 194 |
|
| 195 |
# 保存为WAV文件(16kHz采样率)
|
| 196 |
sf.write("customer_service_response.wav", speech.numpy(), samplerate=16000)
|
| 197 |
+
st.text("I wanna tell you that")
|
| 198 |
+
st.audio("customer_service_response.wav")
|
| 199 |
|
|
|