1. 02 Feb, 2021 1 commit
  2. 29 Jan, 2021 1 commit
  3. 22 Dec, 2020 1 commit
  4. 19 Dec, 2020 1 commit
  5. 04 Dec, 2020 1 commit
  6. 20 Nov, 2020 2 commits
  7. 27 Oct, 2020 1 commit
  8. 20 Jul, 2020 1 commit
    • moto's avatar
      Update documentation and fix docstrings (#788) · 2381dd89
      moto authored
      - Addresses #549 #638 #786 
      - Add `torchaudio` top level module doc
      - Separate `torchaudio` top level module doc from `index.html`
      - Add `backend` module doc.
      - Remove `-> None` from function signature as it adds noise to documentation
      - Changed function argument name of `torchaudio.backend.sox_io_backend.save` from `tensor` to `src`, so that it matches with the reset of backends.
      - Tweak bunch of docstrings
      2381dd89
  9. 16 Jul, 2020 2 commits
  10. 25 Jun, 2020 1 commit
  11. 11 Jun, 2020 1 commit
  12. 10 Jun, 2020 1 commit
    • moto's avatar
      Add sox_effects submodule and delegate sox_effects init/shutdown (#708) · c82a7f9c
      moto authored
      There are couple of aspects of this PR that overall improves the maintainability of the code base, based on "decoupling" and "separation of concerns".
      
      First, `sox_effects` functionalities can be either available or unavailable. From the viewpoint of `torchaudio` main module, the looser the connection between the `torchaudio` module and `torchaudio.sox_effects`, the more manageable the code base become because you can change the two modules independently. This is mostly accomplished when the definitions of `initialize_sox` and `shutdown_sox` were moved from `torchaudio.__init__` to `torchaudio.sox_effects`, but the initialization of sox effects are still happening in `torchaudio.__init__`. If we move the initialization to `sox_effects` module, the responsibility of sox initialization is moved to `sox_effects` module, along with the required module availability check etc. The main `torchaudio` module can be carefree about how the `sox_effects` module should work.
      
      In addition to that, I found that `initialize_sox` and `shutdown_sox` are confusing because it sound like they are required for `libsox` based I/O. To make it clear, I renamed them to include `sox_effect` in function name.
      
      Also moving functions from the original places are BC breaking itself, therefore, these functions are re-imported in `torchaudio.__init__` and renamed to match the original names. Therefore the PR is not BC breaking.
      c82a7f9c
  13. 05 Jun, 2020 3 commits
  14. 15 May, 2020 1 commit
    • moto's avatar
      [BC Breaking] Reorganize C++ resources (#630) · 44af0dea
      moto authored
      This PR
       - Changes the location of C++ codes from
           - from `torchaudio/torch_sox.cpp` to `torchaudio/csrc/sox.cpp`
           - from `torchaudio/torch_sox.h` to `torchaudio/csrc/sox.h`
       - Changes the location where the resulting library is placed
           - from `_torch_sox.so` (outside of `torchaudio` module)
              to `torchaudio/_torchaudio.so`.
      44af0dea
  15. 24 Apr, 2020 1 commit
  16. 21 Apr, 2020 1 commit
    • Tomás Osório's avatar
      Fix inline typing for mypy (#544) · 9d40302d
      Tomás Osório authored
      * fix inline typing for mypy
      
      * fix flake8
      
      * change check position
      
      * fix for py3.5
      
      * fix for py3.5
      
      * change to inline typing
      
      * add inline typing
      9d40302d
  17. 01 Apr, 2020 1 commit
  18. 30 Mar, 2020 1 commit
  19. 19 Dec, 2019 1 commit
    • Vincent QB's avatar
      Backend switch (#355) · 774ebc78
      Vincent QB authored
      * move sox inside function calls.
      
      * add backend switch mechanism.
      
      * import sox at runtime, not import.
      
      * add backend list.
      
      * backend tests.
      
      * creating hidden modules for backend.
      
      * naming backend same as file: soundfile.
      
      * remove docstring in backend file.
      
      * test soundfile info.
      
      * soundfile doesn't support int64.
      
      * adding test for wav file.
      
      * error with incorrect parameter instead of silent ignore.
      
      * adding test across backend. using float32 as done in sox.
      
      * backend guard decorator.
      774ebc78
  20. 17 Sep, 2019 1 commit
  21. 02 Aug, 2019 1 commit
    • Edward Z. Yang's avatar
      Make torchaudio work on Python 2. (#209) · a424509d
      Edward Z. Yang authored
      
      
      - Apply __future__ imports uniformly (future division is the biggy, but absolute
        imports mattered too)
      - Hotfix use of tempfile.TemporaryDirectory using a BC library (DO NOT
        add this library as a dependency to torchaudio; it's only for testing)
      - Replace math.gcd with fractions.gcd
      - Fix a weird pytest collection bug involving parametrized tests
      - Turn on Python 2 and Python 3.7 in Travis.
      Signed-off-by: default avatarEdward Z. Yang <ezyang@fb.com>
      a424509d
  22. 29 Jul, 2019 1 commit
  23. 10 Apr, 2019 1 commit
  24. 04 Jan, 2019 1 commit
  25. 25 Dec, 2018 3 commits