Remove clip_audio from faster_whisper backend
Signed-off-by: makaveli10 <vineet.suryan@collabora.com>
This commit is contained in:
@@ -28,6 +28,7 @@ class ServeClientBase(object):
|
||||
self.transcript = []
|
||||
self.send_last_n_segments = 10
|
||||
self.no_speech_thresh = 0.45
|
||||
self.clip_audio = False
|
||||
|
||||
# text formatting
|
||||
self.pick_previous_segments = 2
|
||||
@@ -60,7 +61,8 @@ class ServeClientBase(object):
|
||||
if self.frames_np is None:
|
||||
continue
|
||||
|
||||
self.clip_audio_if_no_valid_segment()
|
||||
if self.clip_audio:
|
||||
self.clip_audio_if_no_valid_segment()
|
||||
|
||||
input_bytes, duration = self.get_audio_chunk_for_processing()
|
||||
if duration < 1.0:
|
||||
|
||||
@@ -38,6 +38,7 @@ class ServeClientOpenVINO(ServeClientBase):
|
||||
self.task = "transcribe" if task is None else task
|
||||
self.same_output_threshold = 10
|
||||
self.end_time_for_same_output = None
|
||||
self.clip_audio = True
|
||||
|
||||
core = Core()
|
||||
available_devices = core.available_devices
|
||||
|
||||
Reference in New Issue
Block a user