1. 04 Jun, 2023 1 commit
  2. 03 Jun, 2023 1 commit
  3. 02 Jun, 2023 3 commits
    • moto's avatar
      [BC-Breaking] Remove compute_kaldi_pitch (#3368) · 5bbbb1d5
      moto authored
      Summary:
      This commit removes compute_kaldi_pitch function and the underlying Kaldi integration from torchaudio.
      
      Kaldi pitch function was added in a short period of time by integrating the original Kaldi implementation, instead of reimplementing it in PyTorch.
      
      The Kaldi integration employed a hack which replaces the base vector/matrix implementation of Kaldi with PyTorch Tensor so that there is only one blas library within torchaudio.
      
      Recently, we are making torchaudio more lean, and we don't see a wide adoption of kaldi_pitch feature, so we decided to remove them.
      
      See some of the discussion https://github.com/pytorch/audio/issues/1269
      
      Pull Request resolved: https://github.com/pytorch/audio/pull/3368
      
      Differential Revision: D46406176
      
      Pulled By: mthrok
      
      fbshipit-source-id: ee5e24d825188f379979ddccd680c7323b119b1e
      5bbbb1d5
    • moto's avatar
      Update data augmentation tutorial (#3375) · 2ba36b47
      moto authored
      Summary:
      Replace sox_effects with `torchaudio.io.AudioEffector`
      
      1. To show case the new and better feature
      2. To prepare for the upcoming removal of file-like support object
      
      Pull Request resolved: https://github.com/pytorch/audio/pull/3375
      
      Reviewed By: nateanl
      
      Differential Revision: D46379016
      
      Pulled By: mthrok
      
      fbshipit-source-id: 70f24b62494204949f327f6ac6c49f315c9ee315
      2ba36b47
    • Moto Hira's avatar
      Revert D46059199: [audio][PR] Use dlopen for FFmpeg · ab7a39f7
      Moto Hira authored
      Differential Revision:
      D46059199
      
      Original commit changeset: 4493a5fd8a4c
      
      Original Phabricator Diff: D46059199
      
      fbshipit-source-id: 71cde3f8cd870d1ad9114e3e87cdd1ba564441c0
      ab7a39f7
  4. 01 Jun, 2023 8 commits
    • moto's avatar
      Use dlopen for FFmpeg (#3353) · b14ced1a
      moto authored
      Summary:
      This commit changes the way FFmpeg extension is built and used.
      Instead of linking (LGPL) FFmpeg libraries to torchaudio at build time,
      It uses dlopen to search and link them at run time.
      
      For dlopen-ing, we use PyTorch's `at::DynamicLibrary` class, which provides
      portable wrapper.
      
      Pull Request resolved: https://github.com/pytorch/audio/pull/3353
      
      Differential Revision: D46059199
      
      Pulled By: mthrok
      
      fbshipit-source-id: 4493a5fd8a4c802178d20276522f5334d637307d
      b14ced1a
    • moto's avatar
      [BC-breaking] Remove file-like object support from sox_io backend (#3035) · bc54ac8a
      moto authored
      Summary:
      This commit removes file-like obejct support so that we can remove custom patch
      
      The motivation and plan is outlined in https://github.com/pytorch/audio/issues/2950.
      
      Pull Request resolved: https://github.com/pytorch/audio/pull/3035
      
      Reviewed By: hwangjeff
      
      Differential Revision: D44695647
      
      Pulled By: mthrok
      
      fbshipit-source-id: 13af0234e288c041bc7b490e1f967f85ce7eb8ec
      bc54ac8a
    • Omkar Salpekar's avatar
      [Nova] Deleting Remaining CircleCI jobs (#3399) · cc89f743
      Omkar Salpekar authored
      Summary:
      This job completely deletes the CircleCI `config.yml`. Here is what was remaining in the config at the point of deletion:
      
      Used Jobs:
      * **Lint** - Now running on Nova - see https://github.com/pytorch/audio/actions/runs/5144082942 for an example run on the latest PR in trunk
      * **CircleCI Consistency** - Not needed anymore now if there is no CCI config.
      
      Unused Jobs:
      * **build-ffmpeg-$OS** - For the build jobs, we are already building FFMPEG from source as part of the Nova workflows.
      * **download-third-parties** - This is caching. We currently do not have caching in Nova jobs, but atalman is working on adding support for this as a future optimization.
      
      Pull Request resolved: https://github.com/pytorch/audio/pull/3399
      
      Reviewed By: mthrok
      
      Differential Revision: D46363921
      
      Pulled By: osalpekar
      
      fbshipit-source-id: 8abf5b0c1612c3492908fb2f5797e6b0a3c70766
      cc89f743
    • moto's avatar
      Fix style issue (#3398) · c7ac1aff
      moto authored
      Summary: Pull Request resolved: https://github.com/pytorch/audio/pull/3398
      
      Reviewed By: nateanl
      
      Differential Revision: D46354862
      
      Pulled By: mthrok
      
      fbshipit-source-id: b86dcdfeff8ed9db87b0b78eca20f6f18117e97e
      c7ac1aff
    • moto's avatar
      Fix apply_codec to use named file (#3397) · 1dfac469
      moto authored
      Summary:
      Follow-up https://github.com/pytorch/audio/issues/3386 The intended change was to use path of temporary file, instead of file-like object
      
      Pull Request resolved: https://github.com/pytorch/audio/pull/3397
      
      Reviewed By: hwangjeff
      
      Differential Revision: D46346189
      
      Pulled By: mthrok
      
      fbshipit-source-id: 44da799c6587bcb63a118a6313b7299bad742a40
      1dfac469
    • moto's avatar
      Refactor arg mapping in ffmpeg save function (#3387) · b99e5f46
      moto authored
      Summary:
      The arguments of TorchAudio's save function ("format", "bits_per_sample" and "encoding")
      are not one-to-one mapping to the arguments of FFmpeg encoding.
      
      For example, to use vorbis codec, FFmpeg expects "ogg" container/extension with "vorbis"
      encoder. It does not recognize "vorbis" extension like TorchAudio (libsox) does.
      
      This commit refactors the logic to parse/map the arguments.
      
      As a result it now properly works with vorbis and mp3 extension.
      
      Pull Request resolved: https://github.com/pytorch/audio/pull/3387
      
      Reviewed By: hwangjeff
      
      Differential Revision: D46328787
      
      Pulled By: mthrok
      
      fbshipit-source-id: 36f993952a062bfec58a8b51be6aa86297571f90
      b99e5f46
    • moto's avatar
      Update and deprecate apply_codec function (#3386) · d6dd497c
      moto authored
      Summary:
      To prepare for the upcoming removal of file-like object support from sox_io backend,
      this commit changes apply_codec function to use tempfile.
      
      `apply_codec` function is now deprecated and users are encourated to use `torchaudio.io.AudioEffector`.
      We will not remove the function itself, but will remove the entry from the doc.
      
      Pull Request resolved: https://github.com/pytorch/audio/pull/3386
      
      Reviewed By: hwangjeff
      
      Differential Revision: D46330610
      
      Pulled By: mthrok
      
      fbshipit-source-id: 3071bdefa05b4cbb9f00629bef50f0981eae89b4
      d6dd497c
    • Omkar Salpekar's avatar
      Delete CCI Linux and MacOS Unittest Jobs (#3391) · d5d94b7e
      Omkar Salpekar authored
      Summary:
      Deprecates the Linux and MacOS Unittest jobs now that they've been running on Nova for over a week.
      
      Aside: There was also a stylecheck job that was dependent on the Linux Unittest job. I also put up https://github.com/pytorch/audio/pull/3390 to move that stylecheck job to Nova. I'm happy to reintroduce the CCI stylecheck job standalone in CCI if we want the Nova version to run on main for a week.
      
      Pull Request resolved: https://github.com/pytorch/audio/pull/3391
      
      Reviewed By: mthrok
      
      Differential Revision: D46324198
      
      Pulled By: osalpekar
      
      fbshipit-source-id: 2115748e153c5dee1a38db2b6230acebc4f56927
      d5d94b7e
  5. 31 May, 2023 6 commits
  6. 30 May, 2023 3 commits
  7. 29 May, 2023 1 commit
  8. 27 May, 2023 1 commit
    • moto's avatar
      Fix AudioEffector for mulaw (#3372) · af932cc7
      moto authored
      Summary:
      When encoding audio with mulaw, the resulting data does not have header, and the StreamReader defaults to 16k Hz, which can strech/shrink the resulting waveform.
      
      Pull Request resolved: https://github.com/pytorch/audio/pull/3372
      
      Reviewed By: hwangjeff
      
      Differential Revision: D46234772
      
      Pulled By: mthrok
      
      fbshipit-source-id: 942c89a8cfe29b0b6f57b3e5b6c9dfd3524ca552
      af932cc7
  9. 26 May, 2023 6 commits
    • moto's avatar
      Fix encoding g722 format (#3373) · 1b05ca7e
      moto authored
      Summary:
      g722 format only supports 16k Hz, but AVCodec does not list this. The implementation does not insert resampling and the resulting audio can be slowed down or sped up.
      
      Pull Request resolved: https://github.com/pytorch/audio/pull/3373
      
      Reviewed By: hwangjeff
      
      Differential Revision: D46233181
      
      Pulled By: mthrok
      
      fbshipit-source-id: 902b3f862a8f7269dc35bc871e868b0e78326c6c
      1b05ca7e
    • Huy Do's avatar
      Use the same CUDNN version on Windows as PyTorch (#3380) · c120f316
      Huy Do authored
      Summary:
      11.7 uses 8.5.0; 11.8 uses 8.7.0; 12.1 uses 8.8.1.  Otherwise, Windows vision job (8.5.0) would overwrite the CUDNN version setup by PyTorch (8.7.0) leading to this flaky failures https://github.com/pytorch/pytorch/actions/runs/5088860652/jobs/9146641450
      
      ```
      RuntimeError: cuDNN version incompatibility: PyTorch was compiled  against (8, 7, 0) but found runtime version (8, 5, 0). PyTorch already comes bundled with cuDNN. One option to resolving this error is to ensure PyTorch can find the bundled cuDNN.
      ```
      
      Pull Request resolved: https://github.com/pytorch/audio/pull/3380
      
      Reviewed By: atalman
      
      Differential Revision: D46236286
      
      Pulled By: huydhn
      
      fbshipit-source-id: 9ca12d5068c3029688347d52c5c284488f33728d
      c120f316
    • atalman's avatar
      Use cuda 11.8 for circleci tests (#3381) · 5c0249b0
      atalman authored
      Summary:
      Use cuda 11.8 for circleci tests.
      11.7 was deprecated
      
      Pull Request resolved: https://github.com/pytorch/audio/pull/3381
      
      Reviewed By: osalpekar
      
      Differential Revision: D46236223
      
      Pulled By: atalman
      
      fbshipit-source-id: 6d6a8e09603807a07241f31c1bd1e6d3a2b67d9d
      5c0249b0
    • Zhaoheng Ni's avatar
      Temporarily remove test for extract_features (#3378) · 05649ca3
      Zhaoheng Ni authored
      Summary:
      The tests failed for several bundles. Remove them and will re-add once the root cause is figured out.
      
      Pull Request resolved: https://github.com/pytorch/audio/pull/3378
      
      Reviewed By: atalman
      
      Differential Revision: D46230884
      
      Pulled By: nateanl
      
      fbshipit-source-id: 42056a29b2ec2335268b273d3e37fb517035be92
      05649ca3
    • atalman's avatar
      Revert "Upgrade to FFmpeg5 (#3298)" (#3377) · 37779ef9
      atalman authored
      Summary:
      This reverts commit d38a7854.
      
      This is temporary revert to unblock unit test migration from circleci to github
      
      Pull Request resolved: https://github.com/pytorch/audio/pull/3377
      
      Reviewed By: mthrok
      
      Differential Revision: D46230498
      
      Pulled By: atalman
      
      fbshipit-source-id: 000d8a9ca00750fc1ca61f4c2cdd6e930a5ce46d
      37779ef9
    • Lakshmi Krishnan's avatar
      Improve RNN-T streaming decoding (#3295) · 9fc0dcaa
      Lakshmi Krishnan authored
      Summary:
      This commit fixes the following issues affecting streaming decoding quality
      1. The `init_b` hypothesis is only regenerated from blank token if no initial hypotheses are provided.
      2. Allows the decoder to receive top-K hypothesis to continue decoding from, instead of using just the top hypothesis at each decoding step.  This dramatically affects decoding quality especially for speech with long pauses and disfluencies.
      3. Some minor errors regarding shape checking for length.
      
      This also means that the resulting output is the entire transcript up until that time step, instead of just the incremental change in transcript.
      
      Pull Request resolved: https://github.com/pytorch/audio/pull/3295
      
      Reviewed By: nateanl
      
      Differential Revision: D46216113
      
      Pulled By: hwangjeff
      
      fbshipit-source-id: 8f7efae28dcca4a052f434ca55a2795c9e5ec0b0
      9fc0dcaa
  10. 25 May, 2023 1 commit
    • Pingchuan Ma's avatar
      Add LRS3 AV-ASR recipe (#3278) · c6624fa6
      Pingchuan Ma authored
      Summary:
      This PR adds AV-ASR recipe which contains sample implementations of training and evaluation pipelines for RNNT based automatic, visual, and audio-visual (ASR, VSR, AV-ASR) models on LRS3. This repository includes both streaming/non-streaming modes.
      
      CC stavros99 xiaohui-zhang YumengTao mthrok nateanl hwangjeff
      
      Pull Request resolved: https://github.com/pytorch/audio/pull/3278
      
      Reviewed By: nateanl
      
      Differential Revision: D46121550
      
      Pulled By: mpc001
      
      fbshipit-source-id: bb44b97ae25e87df2a73a707008be46af4ad0fc6
      c6624fa6
  11. 24 May, 2023 6 commits
  12. 23 May, 2023 3 commits