1. 23 Jun, 2020 4 commits
    • moto's avatar
      Bake libsox in test base Docker image (#739) · 80bfb28b
      moto authored
      In #728, linux unit test switches to libsox provided by apt.
      For CPU jobs this is fine because all the job steps share the same Docker container,
      but on CPU job, each job step runs a script in a new Docker container, so
      libsox installed in a step is not available to the subsequent steps.
      
      To fix this, this PR moves the installation of libsox and sox to Docker build.
      80bfb28b
    • moto's avatar
      Refactor Cache bust mechanism and bust on daily basis (#742) · d9e6ce45
      moto authored
      This PR refactors cache generation mechanism by introducing dedicated command
      and bust cache on daily basis.
      
      At this moment, Windows unittest job for 3.6 and 3.7 are broken because of
      broken scipy but the environment is cached this persists until the next week.
      
      As we have nightly build, we do not need to keep cache for one week.
      d9e6ce45
    • jimchen90's avatar
      Add subclass in model test classes (#727) · b8ddeb35
      jimchen90 authored
      
      
      * add unittest in test_models
      
      * update test method
      
      * remove unittest main function
      Co-authored-by: default avatarJi Chen <jimchen90@devfair0160.h2.fair>
      b8ddeb35
    • moto's avatar
      Fix SignalInfo member name to frame (#734) · e0f4c0ec
      moto authored
      This PR fixes the wrong member name of SignalInfo introduced in #718. 
      
       - `num_samples` == `num_frames` * `num_channels`.
      e0f4c0ec
  2. 22 Jun, 2020 1 commit
  3. 19 Jun, 2020 1 commit
    • moto's avatar
      Add TorchScript-able "info" func to sox_io backend (#728) · 88fccd14
      moto authored
      This is a part of PRs to add new "sox_io" backend #726, and depends on #718.
      
      This PR adds `info` function to "sox_io" backend, which allows users to fetch some metadata of an audio file. 
      At this moment, the information retrieved are;
      
       - Number of samples in the audio file
       - Sampling rate
       - Number of channels
      88fccd14
  4. 18 Jun, 2020 3 commits
  5. 17 Jun, 2020 1 commit
  6. 16 Jun, 2020 3 commits
  7. 15 Jun, 2020 1 commit
  8. 11 Jun, 2020 4 commits
  9. 10 Jun, 2020 2 commits
    • jimchen90's avatar
      Add cmu_arctic dataset (#710) · 55b5c80c
      jimchen90 authored
      
      
      * Add cmu_arctic dataset
      
      * add dataset name
      
      * update audio test file with whitenoise.wav file
      
      * add test text file
      
      * update text method and file name
      
      * update comment
      
      * change datasets order in doc
      
      * add line length
      Co-authored-by: default avatarJi Chen <jimchen90@devfair0160.h2.fair>
      55b5c80c
    • 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
  10. 09 Jun, 2020 2 commits
  11. 08 Jun, 2020 4 commits
  12. 05 Jun, 2020 5 commits
  13. 04 Jun, 2020 6 commits
  14. 03 Jun, 2020 3 commits