From 47844e2bcc7f31d8f1c0dde85eb6e4e218295a87 Mon Sep 17 00:00:00 2001 From: IrvingGao <1729854488@qq.com> Date: Thu, 23 May 2024 22:37:37 +0800 Subject: [PATCH] [bug] board --- takway/clients/web_socket_client_utils.py | 1 - ws_client.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/takway/clients/web_socket_client_utils.py b/takway/clients/web_socket_client_utils.py index cd763ee..b466b61 100644 --- a/takway/clients/web_socket_client_utils.py +++ b/takway/clients/web_socket_client_utils.py @@ -157,7 +157,6 @@ class WebSocketClinet: last_short_power_status = ~recorder.hardware.short_power_status else: last_short_power_status = recorder.hardware.short_power_status - except: pass else: diff --git a/ws_client.py b/ws_client.py index 347c408..bb53fde 100644 --- a/ws_client.py +++ b/ws_client.py @@ -118,7 +118,7 @@ if __name__ == '__main__': parser.add_argument('--IN_frames_per_buffer', type=int, default=512, help='Frames per buffer') parser.add_argument('--min_stream_record_time', type=float, default=0.5, help='Min stream record time, sec') parser.add_argument('--max_slience_time', type=int, default=10, help='Max slient time when recording, sec') - parser.add_argument('--min_act_time', type=float, default=0.3, help='Min inactive time, sec') # 等待多少秒沉默就发送音频 + parser.add_argument('--min_act_time', type=float, default=0.6, help='Min inactive time, sec') # 等待多少秒沉默就发送音频 parser.add_argument('--mircophone_device', type=int, default=mircophone_device, help='Microphone device index') # player paramters