-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use soundfile for mp3 decoding instead of torchaudio (#5573)
* use soundfile for mp3 decoding instead of torchaudio * fix some tests * remove torch and torchaudio from library's requirements * refactor audio decoding, decode everything with soundfile * remove torchaudio latest test ci stage, remove libsndfile and sox binaries installation * remove checks for libsndfile in tests since it's bundeled in python library * remove instructions about installing via package manager since it's misleading * pin soundfile version to the latest * update documentation * fix setup * Update docs/source/installation.md Co-authored-by: Mario Šaško <[email protected]> * refactor decoding: move all the code under the main decode_example func * get audio format with os.path instead of string split * add module config variables for opus and mp3 support * apply steven's suggestion to installation docs * wrap torch.from_numpy in a func to avoid torch.from_numpy pickling error * Apply suggestions from code review Co-authored-by: Mario Šaško <[email protected]> * fix code style * import xsplitext --------- Co-authored-by: Mario Šaško <[email protected]>
- Loading branch information
1 parent
88fa043
commit f965477
Showing
9 changed files
with
75 additions
and
397 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.