Update README.md

update again
This commit is contained in:
EarningsCall
2024-10-12 09:23:29 -05:00
committed by GitHub
parent 867a067bee
commit 9db72c35bd

View File

@@ -82,7 +82,11 @@ model, utils = torch.hub.load(repo_or_dir='snakers4/silero-vad', model='silero_v
(get_speech_timestamps, _, read_audio, _, _) = utils
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)
)
```
<br/>