From 89457b273afacc94fa8e9cefa470e62e3c3a45b9 Mon Sep 17 00:00:00 2001 From: lym0302 Date: Thu, 10 Mar 2022 18:58:27 +0800 Subject: [PATCH] modify, test=doc --- demos/speech_server/README.md | 2 +- demos/speech_server/README_cn.md | 2 +- paddlespeech/server/bin/paddlespeech_client.py | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/demos/speech_server/README.md b/demos/speech_server/README.md index 37a01698..10489e71 100644 --- a/demos/speech_server/README.md +++ b/demos/speech_server/README.md @@ -225,7 +225,7 @@ wget -c https://paddlespeech.bj.bcebos.com/PaddleAudio/zh.wav https://paddlespee server_ip="127.0.0.1", port=8090, topk=1) - print(res.jaon()) + print(res.json()) ``` Output: diff --git a/demos/speech_server/README_cn.md b/demos/speech_server/README_cn.md index 2a18fb40..2bd8af6c 100644 --- a/demos/speech_server/README_cn.md +++ b/demos/speech_server/README_cn.md @@ -228,7 +228,7 @@ wget -c https://paddlespeech.bj.bcebos.com/PaddleAudio/zh.wav https://paddlespee server_ip="127.0.0.1", port=8090, topk=1) - print(res.jaon()) + print(res.json()) ``` diff --git a/paddlespeech/server/bin/paddlespeech_client.py b/paddlespeech/server/bin/paddlespeech_client.py index c13aadeb..40f17c63 100644 --- a/paddlespeech/server/bin/paddlespeech_client.py +++ b/paddlespeech/server/bin/paddlespeech_client.py @@ -73,7 +73,6 @@ class TTSClientExecutor(BaseExecutor): '--output', type=str, default=None, help='Synthesized audio file') def postprocess(self, wav_base64: str, outfile: str) -> float: - #wav_base64 = response_dict["result"]["audio"] audio_data_byte = base64.b64decode(wav_base64) # from byte samples, sample_rate = soundfile.read( -- GitLab