Update paddlespeech_client.py

pull/1632/head
liangym 3 years ago committed by GitHub
parent 390a3d1b83
commit 21c4132eda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -150,7 +150,7 @@ class TTSClientExecutor(BaseExecutor):
res = requests.post(url, json.dumps(request)) res = requests.post(url, json.dumps(request))
response_dict = res.json() response_dict = res.json()
if not output: if output is not None:
self.postprocess(response_dict["result"]["audio"], output) self.postprocess(response_dict["result"]["audio"], output)
return res return res

Loading…
Cancel
Save