Skip to content

Commit

Permalink
Revert "Make vad-related parameters configurable for batched inferenc…
Browse files Browse the repository at this point in the history
…e. (SYSTRAN#923)"

This reverts commit 83a368e.
  • Loading branch information
aligokalppeker committed Jul 29, 2024
1 parent ffc2e42 commit 61e742e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions faster_whisper/transcribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,6 @@ def __init__(
device: Union[int, str, "torch.device"] = -1,
chunk_length: int = 30,
vad_device: Union[int, str, "torch.device"] = "auto",
vad_onset: float = 0.500,
vad_offset: float = 0.363,
framework="pt",
language: Optional[str] = None,
**kwargs,
Expand All @@ -135,8 +133,8 @@ def __init__(
self._batch_size = kwargs.pop("batch_size", None)
self._num_workers = 0
self.use_vad_model = use_vad_model
self.vad_onset = vad_onset
self.vad_offset = vad_offset
self.vad_onset = 0.500
self.vad_offset = 0.363
self.vad_model_path = os.path.join(get_assets_path(), "pyannote_vad_model.bin")
self.vad_model = None

Expand Down

0 comments on commit 61e742e

Please sign in to comment.