yujuanqin's picture
add asr test
db0d138
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)