Problems downloading pyannote/speaker-diarization-3.1 #1810
Unanswered
Salomonmejia1
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been traing dowload the pyannote model for diarization but it seem being a problem with a line in the librery.
instantiate the pipeline
from pyannote.audio import Pipeline
pipeline = Pipeline.from_pretrained(
"pyannote/speaker-diarization-3.1",
use_auth_token="HUGGINGFACE_ACCESS_TOKEN_GOES_HERE")
run the pipeline on an audio file
diarization = pipeline("audio.wav")
dump the diarization output to disk using RTTM format
with open("audio.rttm", "w") as rttm:
diarization.write_rttm(rttm)
I am using the code from the source and pyannote-audio=3.1.1 (last version)
error: 127 check_version(
128 "pyannote.audio", config["version"], version, what="Pipeline"
129 )
131 # initialize pipeline
--> 132 pipeline_name = ["pipeline"]["name"]
133 Klass = get_class_by_name(
134 pipeline_name, default_module_name="pyannote.pipeline.blocks"
135 )
136 params = config["pipeline"].get("params", {})
TypeError: list indices must be integers or slices, not str
and this lines alone have the same error:
pipeline_name = ["pipeline"]["name"]
----> 1 pipeline_name = ["pipeline"]["name"]
TypeError: list indices must be integers or slices, not str
Could some help me. How can I fix this error
Thanks!!
Beta Was this translation helpful? Give feedback.
All reactions