fix(deps): update dependency torchaudio to v2.1.1 - autoclosed #596
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.0.1
->2.1.1
Release Notes
pytorch/audio (torchaudio)
v2.1.1
Compare Source
This is a minor release, which is compatible with PyTorch 2.1.1 and includes bug fixes, improvements and documentation updates.
Bug Fixes
v2.1.0
: Torchaudio 2.1 Release NoteCompare Source
Hilights
TorchAudio v2.1 introduces the new features and backward-incompatible changes;
torchaudio.io.AudioEffector
can apply filters, effects and encodings to waveforms in online/offline fashion.You can use it as a form of augmentation.
Please refer to https://pytorch.org/audio/2.1/tutorials/effector_tutorial.html for the examples.
New functions and a pre-trained model for forced alignment were added.
torchaudio.functional.forced_align
computes alignment from an emission andtorchaudio.pipelines.MMS_FA
provides access to the model trained for multilingual forced alignment in MMS: Scaling Speech Technology to 1000+ languages project.Please refer to https://pytorch.org/audio/2.1/tutorials/ctc_forced_alignment_api_tutorial.html for the usage of
forced_align
function, and https://pytorch.org/audio/2.1/tutorials/forced_alignment_for_multilingual_data_tutorial.html for how one can useMMS_FA
to align transcript in multiple languages.Model architectures and pre-trained models from the paper TorchAudio-Squim: Reference-less Speech Quality and Intelligibility measures in TorchAudio were added.
You can use
torchaudio.pipelines.SQUIM_SUBJECTIVE
andtorchaudio.pipelines.SQUIM_OBJECTIVE
models to estimate the various speech quality and intelligibility metrics. This is helpful when evaluating the quality of speech generation models, such as TTS.Please refer to https://pytorch.org/audio/2.1/tutorials/squim_tutorial.html for the detail.
torchaudio.models.decoder.CUCTCDecoder
takes emission stored in CUDA memory and performs CTC beam search on it in CUDA device. The beam search is fast. It eliminates the need to move data from CUDA device to CPU when performing automatic speech recognition. With PyTorch's CUDA support, it is now possible to perform the entire speech recognition pipeline in CUDA.Please refer to https://pytorch.org/audio/2.1/tutorials/asr_inference_with_cuda_ctc_decoder_tutorial.html for the detail.
We are working to add utilities that are relevant to music AI. Since the last release, the following APIs were added to the prototype.
Please refer to respective documentation for the usage.
Recipes for Audio-visual ASR, multi-channel DNN beamforming and TCPGen context-biasing were added.
Please refer to the recipes
The version of supported FFmpeg libraries was updated.
TorchAudio v2.1 works with FFmpeg 6, 5 and 4.4. The support for 4.3, 4.2 and 4.1 are dropped.
Please refer to https://pytorch.org/audio/2.1/installation.html#optional-dependencies for the detail of the new FFmpeg integration mechanism.
TorchAudio now depends on libsox installed separately from torchaudio. Sox I/O backend no longer supports file-like object. (This is supported by FFmpeg backend and soundfile)
Please refer to https://pytorch.org/audio/2.1/installation.html#optional-dependencies for the detail.
New Features
I/O
torchaudio.io.StreamWriter
(#3135)torchaudio.io.StreamReader.get_out_stream_info
(#3155)torchaudio.io.StreamReader
filter graph (#3183, #3479)torchaudio.io.StreamWriter
(#3194)torchaudio.io.StreamReader
(#3216)torchaudio.io.StreamWriter
(#3207)420p10le
support totorchaudio.io.StreamReader
CPU decoder (#3332)Ops
torchaudio.io.AudioEffector
(#3163, #3372, #3374)torchaudio.transforms.SpecAugment
(#3309, #3314)torchaudio.functional.forced_align
(#3348, #3355, #3533, #3536, #3354, #3365, #3433, #3357)torchaudio.functional.merge_tokens
(#3535, #3614)torchaudio.functional.frechet_distance
(#3545)Models
torchaudio.models.SquimObjective
for speech enhancement (#3042, 3087, #3512)torchaudio.models.SquimSubjective
for speech enhancement (#3189)torchaudio.models.decoder.CUCTCDecoder
(#3096)Pipelines
torchaudio.pipelines.SquimObjectiveBundle
for speech enhancement (#3103)torchaudio.pipelines.SquimSubjectiveBundle
for speech enhancement (#3197)torchaudio.pipelines.MMS_FA
Bundle for forced alignment (#3521, #3538)Tutorials
torchaudio.io.AudioEffector
(#3226)torchaudio.models.decoder.CUCTCDecoder
(#3297)Recipe
Backward-incompatible changes
Third-party libraries
In this release, the following third party libraries are removed from TorchAudio binary distributions. TorchAudio now search and link these libraries at runtime. Please install them to use the corresponding APIs.
SoX
libsox
is used for various audio I/O, filtering operations.Pre-built binaries are avaialble via package managers, such as
conda
,apt
andbrew
. Please refer to the respective documetation.The APIs affected include;
torchaudio.load
("sox" backend)torchaudio.info
("sox" backend)torchaudio.save
("sox" backend)torchaudio.sox_effects.apply_effects_tensor
torchaudio.sox_effects.apply_effects_file
torchaudio.functional.apply_codec
(also deprecated, see below)Changes related to the removal: #3232, #3246, #3497, #3035
Flashlight Text
flashlight-text
is the core of CTC decoder.Pre-built packages are available on PyPI. Please refer to https://github.com/flashlight/text for the detail.
The APIs affected include;
torchaudio.models.decoder.CTCDecoder
Changes related to the removal: #3232, #3246, #3236, #3339
Kaldi
A custom built
libkaldi
was used to implementtorchaudio.functional.compute_kaldi_pitch
. This function, along with libkaldi integration, is removed in this release. There is no replcement.Changes related to the removal: #3368, #3403
I/O
To make I/O operations more flexible, TorchAudio introduced the backend dispatcher in v2.0, and users could opt-in to use the dispatcher.
In this release, the backend dispatcher becomes the default mechanism for selecting the I/O backend.
You can pass
backend
argument totorchaudio.info
,torchaudio.load
andtorchaudio.save
function to select I/O backend library per-call basis. (If it is omitted, an available backend is automatically selected.)If you want to use the global backend mechanism, you can set the environment variable,
TORCHAUDIO_USE_BACKEND_DISPATCHER=0
.Please note, however, that this the global backend mechanism is deprecated and is going to be removed in the next release.
Please see #2950 for the detail of migration work.
torchaudio.io.StreamReader
accepted a byte-string wrapped in 1Dtorch.Tensor
object. This is no longer supported.Please wrap the underlying data with
io.BytesIO
instead.The optional arguments of
add_[audio|video]_stream
methods oftorchaudio.io.StreamReader
andtorchaudio.io.StreamWriter
are now keyword-only arguments.Previously TorchAudio supported FFmpeg 4 (>=4.1, <=4.4). In this release, TorchAudio supports FFmpeg 4, 5 and 6 (>=4.4, <7). With this change, support for FFmpeg 4.1, 4.2 and 4.3 are dropped.
Ops
torchaudio.functional.apply_codec
(#3397)In previous versions, TorchAudio shipped custom built
libsox
, so that it can perform in-memory decoding and encoding.Now, in-memory decoding and encoding are handled by FFmpeg binding, and with the switch to dynamic
libsox
linking,torchaudio.functional.apply_codec
no longer process audio in in-memory fashion. Instead it writes to temporary file.For in-memory processing, please use
torchaudio.io.AudioEffector
.lstsq
when solving InverseMelScale (#3280)Previously,
torchaudio.transform.InverseMelScale
ran SGD optimizer to find the inverse of mel-scale transform. This approach has number of issues as listed in #2643.This release switches to use
torch.linalg.lstsq
.Models
The
infer
method oftorchaudio.models.RNNTBeamSearch
has been updated to accept series of previous hypotheses.Deprecations
Ops
torchaudio.functional.apply_codec
function (#3386)Due to the removal of custom libsox binding,
torchaudio.functional.apply_codec
no longer supports in-memory processing. Please migrate totorchaudio.io.AudioEffector
.Please refer to for the detailed usage of
torchaudio.io.AudioEffector
.Bug Fixes
Models
Tutorials
get_trellis
in forced alignment tutorial (#3172)Build
I/O
torchaudio.io.StreamWriter
(#3373)Ops
lfilter
(#3432)Improvements
I/O
torchaudio.io.StreamWriter
is not opened (#3152)torchaudio.io.StreamReader
(#3157, #3170, #3186, #3184, #3188, #3320, #3296, #3328, #3419, #3209)torchaudio.io.StreamWriter
(#3205, #3319, #3296, #3328, #3426, #3428)Ops
Documentation
Tutorials
n_fft
(#3442)Build
Recipe
Other
torch.norm
totorch.linalg.vector_norm
(#3522)torch.nn.utils.weight_norm
tonn.utils.parametrizations.weight_norm
(#3523)v2.0.2
Compare Source
TorchAudio 2.0.2 Release Note
This is a minor release, which is compatible with PyTorch 2.0.1 and includes bug fixes, improvements and documentation updates. There is no new feature added.
Bug fix
Full Changelog: pytorch/audio@v2.0.1...v2.0.2
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.