Module 'torchaudio' has no attribute 'AudioMetaData'
Hugging Face Forums [Unofficial]
April 29, 2026
Thank you so much for helping me so far! I love the detailed, step by step explanations and I hope those can help other people with similar problems.
I’ve implemented
MODEL_ID = "pyannote/speaker-diarization-3.1"
pipeline = Pipeline.from_pretrained(
MODEL_ID,
use_auth_token=tokens["diarization"],
)
but now I am running into an issue of
File "/home/user/diarization/repos/scripts/diaritranscribe3.py", line 208, in diarize_audio
pipeline = Pipeline.from_pretrained(MODEL_ID, use_auth_token=tokens["diarization"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.cache/uv/environments-v2/diaritranscribe3-3f9949c47f20e532/lib/python3.12/site-packages/pyannote/audio/core/pipeline.py", line 89, in from_pretrained
config_yml = hf_hub_download(
^^^^^^^^^^^^^^^^
File "/home/user/.cache/uv/environments-v2/diaritranscribe3-3f9949c47f20e532/lib/python3.12/site-packages/huggingface_hub/utils/_validators.py", line 88, in _inner_fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
TypeError: hf_hub_download() got an unexpected keyword argument 'use_auth_token'
Where it doesn’t recognize the use_auth_token= not being recognized as an argument
Discussion in the ATmosphere