-
-
Notifications
You must be signed in to change notification settings - Fork 71
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 'OnlineSpeakerDiarization' from 'diart' #220
Comments
They got rid of OnlineSpeakerDiarization, please use SpeakerDiarization and SpeakerDiarizationConfig instead. |
I just updated the gist accordingly |
Thanks a lot. |
@ameer-kanaan some people have reported this but it could be due to many things, so I can't help without more information. I suggest you debug line by line to find out what's going on. You can also take a look at:
Some common problems are Whisper being too slow due to RAM and/or CPU requirements, and sample rate mismatch |
Just tried running it on my friend's Mac Book Pro 2018 too, he gets the same issue.. it continues "listening" but doesn't output. Additionally, we tried it on 2 other Windows devices, one of which has excellent GPU and CPU, but there it didn't listen, they just got the warnings and exited. We tried to make use of the issues section but for no avail. We are all getting the same warnings: UserWarning: torchaudio._backend.set_audio_backend has been deprecated. With dispatcher enabled, this function is no-op. You can remove the function call. |
@ameer-kanaan the warnings are normal, you can simply ignore them. Could you try downgrading diart to v0.8 and v0.7 and see if the issue persists? (keep in mind you'll have to change the class names again) Are you trying to run the pipeline on your microphone or on a specific file? Also, please try debugging line by line to see what the audio chunks are, what model outputs are, etc. This should give you an idea of what is happening |
It started working with 0.7 now. We are trying to use the microphone. For the previous issue with 0.8, we did try to run basic debugging line by line, but we didn't catch any errors. |
@ameer-kanaan ok, I'll try to take a look at this issue in the coming weeks to see if something broke the whisper code with v0.8 |
Update (copied from my comment on the gist):
|
I am trying to run your tutorial on transcription coloring. But I am getting the mentioned error.
The library runs fine per "diart.stream microphone".
Running on Windows 11 with Python 3.11.5. I am on your .yml environment.
The text was updated successfully, but these errors were encountered: