mirror of
https://github.com/QuentinFuxa/WhisperLiveKit.git
synced 2026-03-07 22:33:36 +00:00
sep for mlx is also ""
This commit is contained in:
@@ -164,7 +164,7 @@ class MLXWhisper(ASRBase):
|
||||
Significantly faster than faster-whisper (without CUDA) on Apple M1.
|
||||
"""
|
||||
|
||||
sep = " "
|
||||
sep = "" # In my experience in french it should also be no space.
|
||||
|
||||
def load_model(self, modelsize=None, cache_dir=None, model_dir=None):
|
||||
"""
|
||||
|
||||
@@ -175,7 +175,13 @@ class OnlineASRProcessor:
|
||||
if (
|
||||
len(self.audio_buffer) / self.SAMPLING_RATE > self.buffer_trimming_sec
|
||||
): # longer than this
|
||||
|
||||
logger.debug("chunking sentence")
|
||||
self.chunk_completed_sentence()
|
||||
|
||||
|
||||
else:
|
||||
logger.debug("not enough audio to trim as a sentence")
|
||||
|
||||
if self.buffer_trimming_way == "segment":
|
||||
s = self.buffer_trimming_sec # trim the completed segments longer than s,
|
||||
@@ -286,7 +292,7 @@ class OnlineASRProcessor:
|
||||
"""
|
||||
o = self.transcript_buffer.complete()
|
||||
f = self.to_flush(o)
|
||||
logger.debug(f"last, noncommited: {f}")
|
||||
logger.debug(f"last, noncommited: {f[0]*1000:.0f}-{f[1]*1000:.0f}: {f[2]}")
|
||||
self.buffer_time_offset += len(self.audio_buffer) / 16000
|
||||
return f
|
||||
|
||||
|
||||
Reference in New Issue
Block a user