From 1bb7e33b933dde488a17fd556a1114ee0d58d34b Mon Sep 17 00:00:00 2001 From: Guillaume Klein Date: Wed, 24 May 2023 18:22:44 +0200 Subject: [PATCH] Reformat code snippet in README --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ed40e09..f32ed90 100644 --- a/README.md +++ b/README.md @@ -109,7 +109,11 @@ segments, _ = model.transcribe("audio.mp3", vad_filter=True) The default behavior is conservative and only removes silence longer than 2 seconds. See the available VAD parameters and default values in the [source code](https://github.com/guillaumekln/faster-whisper/blob/master/faster_whisper/vad.py). They can be customized with the dictionary argument `vad_parameters`: ```python -segments, _ = model.transcribe("audio.mp3", vad_filter=True, vad_parameters=dict(min_silence_duration_ms=500)) +segments, _ = model.transcribe( + "audio.mp3", + vad_filter=True, + vad_parameters=dict(min_silence_duration_ms=500), +) ``` ### Logging