~/Projects/faster-whisper
git clone https://code.lsong.org/faster-whisper
Commit
- Commit
- 687db319e0ba10f47239415dd74e8bfbd480d433
- Author
- KH <[email protected]>
- Date
- 2023-07-18 23:03:01 +0900 +0900
- Diffstat
faster_whisper/transcribe.py | 3 ---
Remove duplicate code (#359)
diff --git a/faster_whisper/transcribe.py b/faster_whisper/transcribe.py index 538bb93fe5194fb996e8eddc652536e44811d862..e4cf90437a0230841f3c3eee17d9a5a76c718193 100644 --- a/faster_whisper/transcribe.py +++ b/faster_whisper/transcribe.py @@ -723,9 +723,6 @@ # hack: truncate long words at sentence boundaries. # a better segmentation algorithm based on VAD should be able to replace this. if len(word_durations) > 0: - all_language_probs: Optional[List[Tuple[str, float]]] - max_duration = median_duration * 2 - vad_options: VadOptions # ensure words at sentence boundaries # are not longer than twice the median word duration.