zhuowen commited on
Commit
fbabadb
·
verified ·
1 Parent(s): 93b584d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, data=payload)
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}")