mirror of
https://github.com/chidiwilliams/buzz.git
synced 2026-03-17 16:10:08 +01:00
Fix for duplicate segments in whisper.cpp (#891)
This commit is contained in:
parent
12c1ac8b57
commit
5d83950382
1 changed files with 2 additions and 0 deletions
|
|
@ -37,6 +37,8 @@ class WhisperCpp:
|
|||
return False
|
||||
|
||||
def transcribe(self, audio: Union[np.ndarray, str], params: Any):
|
||||
self.segments = []
|
||||
|
||||
if isinstance(audio, str):
|
||||
audio = whisper_audio.load_audio(audio)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue