External Publication
Visit Post

Module 'torchaudio' has no attribute 'AudioMetaData'

Hugging Face Forums [Unofficial] April 29, 2026
Source

I’ve implemented up to step 4, but then I got a couple new errors: First one was straight foward as it was the error:

  × No solution found when resolving script dependencies:
  ╰─▶ Because only brouhaha==0.9.0 is available and brouhaha==0.9.0 depends on pyannote-audio==3.3.0,
      we can conclude that all versions of brouhaha depend on pyannote-audio==3.3.0.
      And because you require pyannote-audio==3.4.0 and brouhaha, we can conclude that your
      requirements are unsatisfiable.

But once I fixed that(pyannote-audio==3.4.0->pyannote-audio==3.3.0 in dependencies), I got an error

/home/rodrigo/.cache/uv/environments-v2/diaritranscribe3-3f9949c47f20e532/lib/python3.12/site-packages/pyannote/audio/core/io.py:212: UserWarning: torchaudio._backend.list_audio_backends has been deprecated. This deprecation is part of a large refactoring effort to transition TorchAudio into a maintenance phase. The decoding and encoding capabilities of PyTorch for both audio and video are being consolidated into TorchCodec. Please see https://github.com/pytorch/audio/issues/3902 for more information. It will be removed from the 2.9 release.
  torchaudio.list_audio_backends()
Loading diarization pipeline pyannote/speaker-diarization-community-1...
Traceback (most recent call last):
  File "/home/user/diarization/repos/scripts/diaritranscribe3.py", line 621, in <module>
    main()
  File "/home/user/diarization/repos/scripts/diaritranscribe3.py", line 589, in main
    diarization = diarize_audio(
                  ^^^^^^^^^^^^^^
  File "/home/user/diarization/repos/scripts/diaritranscribe3.py", line 208, in diarize_audio
    pipeline = Pipeline.from_pretrained(MODEL_ID, token=tokens["diarization"])
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Pipeline.from_pretrained() got an unexpected keyword argument 'token'

That seems to stick around even when I revert the changes I’ve made to diaritranscribe3.py

Discussion in the ATmosphere

Loading comments...