{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreigmytb6imlzi2plxdqvxyybpss3phisuzramcakioofeyvr5g22hm",
"uri": "at://did:plc:pgryn3ephfd2xgft23qokfzt/app.bsky.feed.post/3mknosaes34u2"
},
"path": "/t/module-torchaudio-has-no-attribute-audiometadata/175647#post_5",
"publishedAt": "2026-04-29T16:42:11.000Z",
"site": "https://discuss.huggingface.co",
"textContent": "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.\n\nI’ve implemented\n\n\n MODEL_ID = \"pyannote/speaker-diarization-3.1\"\n pipeline = Pipeline.from_pretrained(\n MODEL_ID,\n use_auth_token=tokens[\"diarization\"],\n )\n\n\nbut now I am running into an issue of\n\n\n File \"/home/user/diarization/repos/scripts/diaritranscribe3.py\", line 208, in diarize_audio\n pipeline = Pipeline.from_pretrained(MODEL_ID, use_auth_token=tokens[\"diarization\"])\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/user/.cache/uv/environments-v2/diaritranscribe3-3f9949c47f20e532/lib/python3.12/site-packages/pyannote/audio/core/pipeline.py\", line 89, in from_pretrained\n config_yml = hf_hub_download(\n ^^^^^^^^^^^^^^^^\n File \"/home/user/.cache/uv/environments-v2/diaritranscribe3-3f9949c47f20e532/lib/python3.12/site-packages/huggingface_hub/utils/_validators.py\", line 88, in _inner_fn\n return fn(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^\n TypeError: hf_hub_download() got an unexpected keyword argument 'use_auth_token'\n\n\nWhere it doesn’t recognize the `use_auth_token=` not being recognized as an argument",
"title": "Module 'torchaudio' has no attribute 'AudioMetaData'"
}