1. 22 Jul, 2020 5 commits
    • moto's avatar
      [BC Breaking] Split `list_formats()` for read and write (#811) · f16f74af
      moto authored
      * Separate sox list format function for read and write
      
      * Guard MP3 smoke test
      f16f74af
    • moto's avatar
      Remove unused files from CCI (#809) · d346cacb
      moto authored
      d346cacb
    • moto's avatar
      Rename test_case_utils to case_utils (#808) · 00cc000e
      moto authored
      buck gets confused with utility module name with `test_` prefix.
      00cc000e
    • moto's avatar
      Refactor test_sox_effects (#805) · 05746042
      moto authored
      1. Move misplaced sox compatibility test (T,Fade, T.Vol, T.Vad) to test/test_sox_compatibility.py
      2. Move test_sox_effects to test/sox_effect/ where all the other functionalities from torchaudio.sox_effects are tested
      05746042
    • moto's avatar
      Add smoke tests to sox_io and sox_effects (#806) · daa0007a
      moto authored
      Currently all the tests in `sox_io_backend` and `sox_effects` (for new SoX effects implementation) requires additional `sox`, and this prevents running test in environment where `sox` command is not available even though `torchaudio` extension is available (such as fb internal). This PR adds smoke tests for these modules, which just runs functions to see if they do not crash.
      daa0007a
  2. 21 Jul, 2020 2 commits
  3. 20 Jul, 2020 4 commits
    • 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
    • jimchen90's avatar
      Fix output type of upsampling (#801) · 937d52f8
      jimchen90 authored
      
      
      Fix output type of upsampling
      Co-authored-by: default avatarJi Chen <jimchen90@devfair0160.h2.fair>
      937d52f8
    • jimchen90's avatar
      Update default form in docstring (#802) · e82cc350
      jimchen90 authored
      
      
      * Update default form in docstring
      Co-authored-by: default avatarJi Chen <jimchen90@devfair0160.h2.fair>
      e82cc350
    • jimchen90's avatar
      Add LibriTTS dataset (#790) · 4b8aad7a
      jimchen90 authored
      
      
      * Add libritts
      
      Add LibriTTS dataset draft
      
      * Add libritts
      
      Use two separate ids for utterance_id.
      
      * Update output form
      
      Use full_id as utterance_id.
      
      * Update format
      
      Add space and test black format
      
      * Update test method
      
      * Add audio and text test
      
      Generate audio and test files on-the-fly in test 
      
      * Update format
      
      * Fix test error and remove assets libritts
      
      The test error is fixed by sorting the file in 4th element instead of 2nd element in samples. Since the files are generated on-the-fly, so the the libritts files in assets are removed.
      
      * Add seed in `get_whitenoise` function
      
      * Change utterance to text
      
      Change `_utterance` to `_text`.
      Co-authored-by: default avatarJi Chen <jimchen90@devfair0160.h2.fair>
      4b8aad7a
  4. 17 Jul, 2020 2 commits
  5. 16 Jul, 2020 4 commits
  6. 14 Jul, 2020 5 commits
  7. 13 Jul, 2020 1 commit
  8. 12 Jul, 2020 1 commit
  9. 08 Jul, 2020 3 commits
  10. 06 Jul, 2020 2 commits
  11. 01 Jul, 2020 6 commits
  12. 30 Jun, 2020 1 commit
  13. 29 Jun, 2020 1 commit
  14. 26 Jun, 2020 2 commits
  15. 25 Jun, 2020 1 commit
    • moto's avatar
      Add load function (#731) · 793eeab8
      moto authored
      This is a part of PRs to add new "sox_io" backend. #726 and depends on #718 and #728 .
      
      This PR adds `load` function to "sox_io" backend, which is  tested on the following audio formats;
       - `wav`
       - `mp3`
       - `flac`
       - `ogg/vorbis` *
      
      By default, "sox_io" backend returns Tensor with `float32` dtype and the shape of `[channel, time]`. The samples are normalized to fit in the range of `[-1.0, 1.0]`.
      
      Unlike existing "sox" backend, the new `load` function can handle WAV file natively, when the input format is WAV with integer type, (such as 32-bit signed integer, 16-bit signed integer and 8-bit unsigned integer) by providing `normalize=False`, this function can return integer Tensor, where the samples are expressed within the whole range of the corresponding dtype, that is, `int32` tensor for `32-bit PCM`, `int16` for `16-bit PCM` and `uint8` for `8-bit PCM`. This behavior follows [scipy.io.wavfile.read](https://docs.scipy.org/doc/scipy/reference/generated/scipy.io.wavfile.read.html). `normalize` parameter has no effect for other formats and the load function always return normalized value with `float32` Tensor.
      
      __* Note__ The current binary distribution of torchaudio does not contain `ogg/vorbis` and `opus` codecs. To handle these files, one needs to build torchaudio from the source with proper codecs in the system.
      
      __Note 2__ Since this PR, `scipy` becomes required module for running test. 
      793eeab8