-
Hi, I'm having issues with getting the timestamps of this video. Here is my code and output: import torch
torch.set_num_threads(1)
model, utils = torch.hub.load(repo_or_dir="snakers4/silero-vad", model="silero_vad")
(get_speech_timestamps, _, read_audio, _, _) = utils
wav = read_audio(
r"C:\Users\Sha Roze\Downloads\Videos\httpswww.youtube.comwatchv=oM5hNuAmWs0.wav"
)
speech_timestamps = get_speech_timestamps(
wav,
model,
return_seconds=True, # Return speech timestamps in seconds (default is samples)
)
print(speech_timestamps) Using cache found in C:\Users\Sha Roze/.cache\torch\hub\snakers4_silero-vad_master
[{'start': 3.2, 'end': 4.5}] |
Beta Was this translation helpful? Give feedback.
Answered by
snakers4
Nov 19, 2024
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
snakers4
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
v5
has problems with singing, butv3.1
works: