Update README.md

I assume most people want seconds, so it's useful to show example to return seconds in README file.
This commit is contained in:
EarningsCall
2024-10-12 09:22:39 -05:00
committed by GitHub
parent 2c43391b17
commit 867a067bee

View File

@@ -66,7 +66,11 @@ If you are planning to run the VAD using solely the `onnx-runtime`, it will run
from silero_vad import load_silero_vad, read_audio, get_speech_timestamps
model = load_silero_vad()
wav = read_audio('path_to_audio_file')
speech_timestamps = get_speech_timestamps(wav, model)
speech_timestamps = get_speech_timestamps(
wav,
model,
return_seconds=True, # Return speech timestamps in seconds (default is samples)
)
```
**Using torch.hub**: