mirror of
https://github.com/snakers4/silero-vad.git
synced 2026-02-05 18:09:22 +08:00
Update README.md
update again
This commit is contained in:
@@ -82,7 +82,11 @@ model, utils = torch.hub.load(repo_or_dir='snakers4/silero-vad', model='silero_v
|
|||||||
(get_speech_timestamps, _, read_audio, _, _) = utils
|
(get_speech_timestamps, _, read_audio, _, _) = utils
|
||||||
|
|
||||||
wav = read_audio('path_to_audio_file')
|
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/>
|
<br/>
|
||||||
|
|||||||
Reference in New Issue
Block a user