Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'Pipeline' from 'pyannote.audio' #62

Open
walidbou6 opened this issue Apr 5, 2022 · 3 comments
Open

Comments

@walidbou6
Copy link

walidbou6 commented Apr 5, 2022

tried to run the example of speaker segmentation got the following error:

ImportError: cannot import name 'Pipeline' from 'pyannote.audio'

pyannote.audio @ https://github.com/pyannote/pyannote-audio/archive/develop.zip
pyannote.core==4.4
pyannote.database==4.1.3
pyannote.metrics==3.2
pyannote.pipeline==2.2
@hbredin
Copy link
Member

hbredin commented Apr 7, 2022

Would you mind sharing a minimum reproducible example in Google Colab?

@walidbou6
Copy link
Author

I just run the first line of this code:

from pyannote.audio import Pipeline
pipeline = Pipeline.from_pretrained("pyannote/speaker-segmentation")
output = pipeline("audio.wav")

for turn, _, speaker in output.itertracks(yield_label=True):
    # speaker speaks between turn.start and turn.end

@hbredin
Copy link
Member

hbredin commented Apr 8, 2022

Please share a notebook on Google Colab where the error actually happens because I cannot reproduce it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants