Spaces:
Sleeping
Sleeping
zhuowen
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -73,7 +73,7 @@ def tts_new(text,path,voice='zh-CN-XiaoxiaoMultilingualNeural',rate=-8):
|
|
73 |
"t":text,
|
74 |
"v":voice
|
75 |
}
|
76 |
-
response = requests.post(url,
|
77 |
with open(path, "wb") as f:
|
78 |
f.write(response.content)
|
79 |
print(f"文件路径:{edge_output_filename}")
|
|
|
73 |
"t":text,
|
74 |
"v":voice
|
75 |
}
|
76 |
+
response = requests.post(url, json=payload)
|
77 |
with open(path, "wb") as f:
|
78 |
f.write(response.content)
|
79 |
print(f"文件路径:{edge_output_filename}")
|