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