resemble-ai / Resemblyzer

A python package to analyze and compare voices with deep learning
Apache License 2.0
2.79k stars 429 forks source link

ImportError: cannot import name 'sampling_rate' #39

Closed i-bond closed 4 years ago

i-bond commented 4 years ago

Hello! I'm facing an ImportError: cannot import name 'sampling_rate' when I tried to run the demo02_diarization.py file provided in the example: from resemblyzer import sampling_rate

Could you help me to figure out how to fix this error?

Thierryonre commented 4 years ago

Change from resemblyzer import sampling_rate To from resemblyzer.audio import sampling_rate

Hope this helps :D

i-bond commented 4 years ago

Oh, it works! Thank you 😄