File size: 370 Bytes
db0d138 |
1 2 3 4 5 6 7 8 9 10 11 12 |
from pathlib import Path
from silero_vad import load_silero_vad, read_audio, get_speech_timestamps
model = load_silero_vad()
audio = "/Users/jeqin/Downloads/daily_20251117.wav"
wav = read_audio(audio)
speech_timestamps = get_speech_timestamps(
wav,
model,
return_seconds=True, # Return speech timestamps in seconds (default is samples)
)
print(speech_timestamps) |