resemble-ai / Resemblyzer

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

ImportError: cannot import name 'sampling_rate' #39

Closed i-bond closed 3 years ago

i-bond commented 3 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 3 years ago

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

Hope this helps :D

i-bond commented 3 years ago

Oh, it works! Thank you 😄