Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

torchaudio load opus failed #3753

Open
Mddct opened this issue Mar 2, 2024 · 0 comments
Open

torchaudio load opus failed #3753

Mddct opened this issue Mar 2, 2024 · 0 comments

Comments

@Mddct
Copy link

Mddct commented Mar 2, 2024

馃悰 Describe the bug

>>> torchaudio.backend.soundfile_backend.load('test.opus')
(tensor([[-5.2875e-12,  2.0960e-11,  2.4085e-11,  ...,  2.9903e-06,
         -6.7451e-06,  3.6049e-05]]), 16000)
>>> torchaudio.backend.sox_io_backend.load('test.opus')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/miniconda3/envs/cloud-ai-lab/lib/python3.8/site-packages/torchaudio/backend/_sox_io_backend.py", line 126, in load
    return sox_ext.load_audio_file(filepath, frame_offset, num_frames, normalize, channels_first, format)
  File "/usr/local/lib/miniconda3/envs/cloud-ai-lab/lib/python3.8/site-packages/torch/_ops.py", line 755, in __call__
    return self._op(*args, **(kwargs or {}))
RuntimeError: Error loading audio file: failed to open file test.opus

Versions

os: ubuntu

>>> torchaudio.__version__
2.2.1+cu121 

Tasks

No tasks being tracked yet.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant