feat: client sends new parameters to server

This commit is contained in:
giubots
2025-04-28 17:21:33 +02:00
parent 0abf8693ef
commit a2271806c3
2 changed files with 50 additions and 3 deletions
+12
View File
@@ -168,6 +168,10 @@ class TranscriptionServer:
client_uid=options["uid"],
model=whisper_tensorrt_path,
single_model=self.single_model,
send_last_n_segments=options.get("send_last_n_segments", 10),
no_speech_thresh=options.get("no_speech_thresh", 0.45),
clip_audio=options.get("clip_audio", False),
same_output_threshold=options.get("same_output_threshold", 10),
)
logging.info("Running TensorRT backend.")
except Exception as e:
@@ -191,6 +195,10 @@ class TranscriptionServer:
client_uid=options["uid"],
model=options["model"],
single_model=self.single_model,
send_last_n_segments=options.get("send_last_n_segments", 10),
no_speech_thresh=options.get("no_speech_thresh", 0.45),
clip_audio=options.get("clip_audio", False),
same_output_threshold=options.get("same_output_threshold", 10),
)
logging.info("Running OpenVINO backend.")
except Exception as e:
@@ -220,6 +228,10 @@ class TranscriptionServer:
vad_parameters=options.get("vad_parameters"),
use_vad=self.use_vad,
single_model=self.single_model,
send_last_n_segments=options.get("send_last_n_segments", 10),
no_speech_thresh=options.get("no_speech_thresh", 0.45),
clip_audio=options.get("clip_audio", False),
same_output_threshold=options.get("same_output_threshold", 10),
)
logging.info("Running faster_whisper backend.")