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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TorchAudio constantly fails due to no backend #151

Closed
PaulLockett opened this issue Feb 5, 2024 · 5 comments
Closed

TorchAudio constantly fails due to no backend #151

PaulLockett opened this issue Feb 5, 2024 · 5 comments
Assignees

Comments

@PaulLockett
Copy link
Contributor

tensor, sample_rate = torchaudio.load(io.BytesIO(data), format="mp3")

The synthesize function does not work because Torchaudio has no available backends. I'm trying to find a workaround.

@PaulLockett
Copy link
Contributor Author

example failure:
ERROR:root:google speech task failed: Couldn't find appropriate backend to handle uri <_io.BytesIO object at 0x28dd8da90> and format mp3.

@PaulLockett
Copy link
Contributor Author

More context. even with a backend ( that must be in the OS) TorchAudio is not optimized to take in bytes see here: pytorch/audio#800

@theomonnom theomonnom self-assigned this Feb 6, 2024
@keepingitneil
Copy link
Contributor

torchaudio uses installed libraries on the host to do decoding. If you install ffmpeg on your host it should be resolved.

@PaulLockett
Copy link
Contributor Author

On an m1 Mac this is not so trivia it seems like torch audio does not look at the root directory nor the homebrew directory when searching for dylib files.

@keepingitneil
Copy link
Contributor

torchaudio has been replaced with pyav in this PR: #182

parshvadaftari pushed a commit to parshvadaftari/agents that referenced this issue Jun 23, 2024
* Add FileInputDevice
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

3 participants