mirror of
https://github.com/m-bain/whisperX.git
synced 2025-07-01 18:17:27 -04:00
Merge pull request #1006 from tan90xx/main
chore: fix variable naming inconsistency from `segments` to `segments_list`
This commit is contained in:
@ -53,7 +53,7 @@ class Silero(Vad):
|
||||
return audio
|
||||
|
||||
@staticmethod
|
||||
def merge_chunks(segments,
|
||||
def merge_chunks(segments_list,
|
||||
chunk_size,
|
||||
onset: float = 0.5,
|
||||
offset: Optional[float] = None,
|
||||
@ -63,4 +63,4 @@ class Silero(Vad):
|
||||
print("No active speech found in audio")
|
||||
return []
|
||||
assert segments_list, "segments_list is empty."
|
||||
return Vad.merge_chunks(segments, chunk_size, onset, offset)
|
||||
return Vad.merge_chunks(segments_list, chunk_size, onset, offset)
|
||||
|
Reference in New Issue
Block a user