From a5605978fad194e6877f6d74349c3d8ee2d89e54 Mon Sep 17 00:00:00 2001 From: xiongxinlei Date: Wed, 25 May 2022 13:07:56 +0800 Subject: [PATCH] update the acs note, test=doc --- paddlespeech/server/bin/paddlespeech_client.py | 1 + paddlespeech/server/engine/acs/python/acs_engine.py | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/paddlespeech/server/bin/paddlespeech_client.py b/paddlespeech/server/bin/paddlespeech_client.py index 74e7ce3fe..fb521b309 100644 --- a/paddlespeech/server/bin/paddlespeech_client.py +++ b/paddlespeech/server/bin/paddlespeech_client.py @@ -752,6 +752,7 @@ class VectorClientExecutor(BaseExecutor): res = handler.run(enroll_audio, test_audio, audio_format, sample_rate) logger.info(f"The vector score is: {res}") + return res else: logger.error(f"Sorry, we have not support such task {task}") diff --git a/paddlespeech/server/engine/acs/python/acs_engine.py b/paddlespeech/server/engine/acs/python/acs_engine.py index d52852dcf..3eb47e86d 100644 --- a/paddlespeech/server/engine/acs/python/acs_engine.py +++ b/paddlespeech/server/engine/acs/python/acs_engine.py @@ -118,12 +118,6 @@ class ACSEngine(BaseEngine): msg = ws.recv() msg = json.loads(msg) logger.info(f"audio result: {msg}") - # samples, sample_rate = soundfile.read(audio_data, dtype='int16') - - # ws.send_binary(samples.tobytes()) - # msg = ws.recv() - # msg = json.loads(msg) - # logger.info(f"audio result: {msg}") # 3. send chunk audio data to engine logger.info("send the end signal")