snakers4 / silero-vad

Silero VAD: pre-trained enterprise-grade Voice Activity Detector
MIT License
4.46k stars 435 forks source link

NameError: name 'pd' is not defined #79

Closed Gorodecki closed 3 years ago

Gorodecki commented 3 years ago

When i run this code speech_timestamps = get_speech_ts_adaptive(wav, model, visualize_probs=True) this error: image

May be add lines import pandas as pd above this string? https://github.com/snakers4/silero-vad/blob/24e0d408abeb83bc8180603b418d453a9248fa38/utils_vad.py#L153

snakers4 commented 3 years ago

I guess you were pointing to a line in a different function, not get_speech_ts_adaptive but get_speech_ts.

Anyway:

https://github.com/snakers4/silero-vad/commit/588e459a00bf60b5a032f6ff42209340234ad996

Try now

Gorodecki commented 3 years ago

Thanks!