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

Whisper and pyannote 3.1 : AttributeError: 'list' object has no attribute 'get' #1600

Open
Maldoror1900 opened this issue Dec 29, 2023 · 9 comments
Labels

Comments

@Maldoror1900
Copy link

Maldoror1900 commented Dec 29, 2023

I'm using this script to diarize then transcribe speach using pyannote.audio and whisper. Using pyannote 2.1, it works perfectly, but then, when I change the version used to the latest (3.1), I get an error when running this line :

for segment, _, speaker in who_speaks_when1.itertracks(yield_label=True):
    waveform, sample_rate = audio.crop(audio_file1, segment)
    text = model.transcribe(waveform.squeeze().numpy())["text"]
    print(f"{segment.start:06.1f}s {segment.end:06.1f}s {speaker}: {text}")

When I should have the transcript of the audio I'm using, I get the error message AttributeError: 'list' object has no attribute 'get'.

pyannote 2.1 works fine, so so far I'm happy to use it, but I'm very frustrated not to be able to see what the latest versions do.

Any idea ?

@freshpearYoon
Copy link

Hi, I am having same issue. Have you solved it?

@Maldoror1900
Copy link
Author

Hi, I am having same issue. Have you solved it?

Unfortunately no :(

@junonya
Copy link

junonya commented Mar 7, 2024

same issue:(

@Hideki105
Copy link

same issue :(

@pyannote pyannote deleted a comment from github-actions bot May 17, 2024
@Kanishk-Kumar
Copy link

Same 🤦‍♂️ (posting to keep this issue alive)

@freshpearYoon
Copy link

I've solved the problem, and it seems like environment setting is wrong

@AshishAtrina
Copy link

I've solved the problem, and it seems like environment setting is wrong

What changes did you made I am also facing same issue

@ftwftw0
Copy link

ftwftw0 commented Aug 17, 2024

@freshpearYoon How did you solve ?

Copy link

stale bot commented Feb 14, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants