1. 13 Oct, 2023 1 commit
  2. 12 Oct, 2023 2 commits
  3. 09 Oct, 2023 1 commit
  4. 28 Jul, 2023 1 commit
  5. 30 May, 2023 1 commit
    • Moto Hira's avatar
      Simplify sox namespace (#3383) · a81b0ed2
      Moto Hira authored
      Summary:
      Pull Request resolved: https://github.com/pytorch/audio/pull/3383
      
      This commit reduces `torchaudio::sox_*` namespace into `torchaudio::sox`.
      Also put Pybind11 registration and TorchBind registration into anonymous namescope.
      
      Differential Revision: D46257367
      
      fbshipit-source-id: 0f0f181eaa72036916e223263daf4b7c298fca0d
      a81b0ed2
  6. 29 Jul, 2022 1 commit
  7. 31 May, 2022 1 commit
  8. 29 May, 2022 1 commit
  9. 07 Sep, 2021 1 commit
    • moto's avatar
      Extract PyBind11 feature implementations (#1739) · 2a67fcc1
      moto authored
      This PR moves the code related to PyBind11 to the dedicated directory `torchaudio/csrc/pybind`.
      
      Before, features related to PyBind11 (I/O for file-like object) was implemented in `torchaudio/csrc/sox` and the binding was defined in `torchaudio/csrc/pybind.cpp`. We used macro definition `TORCH_API_INCLUDE_EXTENSION_H` to turn on/off the feature, in addition to including/excluding `torchaudio/csrc/pybind.cpp` in the list of compiled source.
      
      In the previous manner, in C++ example, one had to rebuild libtorchaudio separately, but by splitting them completely at compile time, it should conceptually possible to distribute libtorchaudio within torchaudio Python package and reuse it for C++ example.
      2a67fcc1
  10. 20 Jul, 2021 1 commit
  11. 24 May, 2021 1 commit
  12. 12 Mar, 2021 1 commit
  13. 24 Feb, 2021 1 commit
  14. 23 Feb, 2021 1 commit
  15. 20 Feb, 2021 2 commits
  16. 19 Feb, 2021 1 commit
  17. 12 Feb, 2021 1 commit
  18. 03 Feb, 2021 2 commits
  19. 02 Feb, 2021 1 commit
  20. 29 Jan, 2021 2 commits
  21. 28 Jan, 2021 1 commit
  22. 27 Jan, 2021 1 commit
  23. 26 Jan, 2021 1 commit
  24. 25 Jan, 2021 1 commit
  25. 15 Jan, 2021 1 commit
  26. 07 Jan, 2021 1 commit
  27. 06 Jan, 2021 1 commit
  28. 22 Dec, 2020 1 commit
  29. 04 Dec, 2020 1 commit
  30. 01 Dec, 2020 1 commit
  31. 22 Jul, 2020 1 commit
  32. 16 Jul, 2020 1 commit
    • moto's avatar
      Add Torchscript sox effects (#760) · 60a8e23d
      moto authored
      * Add sox_utils module
      
      * Make init/shutdown thread safe
      
      * Add sox effects implementation
      
      * Add test for sox effects
      
      * Update docstrings and add examples
      60a8e23d
  33. 14 Jul, 2020 1 commit
    • moto's avatar
      Remove frames_per_chunk argument from save (#780) · 4b3e9052
      moto authored
      In #779, we plan to remove `frames_per_chunk` parameter from `save` function, but it will take some time before we can land #779, so we go ahead and remove the parameter first to reduce the conflict caused by interface change.
      4b3e9052
  34. 08 Jul, 2020 1 commit
  35. 01 Jul, 2020 1 commit
    • moto's avatar
      Add TorchScript-able "save" func to sox_io backend (#732) · 3324283c
      moto authored
      This is a part of PRs to add new "sox_io" backend. #726 and depends on #718, #728 and #731.
      
      This PR adds `save` function to "sox_io" backend, which can save Tensor to a file with the following audio formats;
       - `wav`
       - `mp3`
       - `flac`
       - `ogg/vorbis`
      3324283c
  36. 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