Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/torchaudio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def load(
https://docs.pytorch.org/torchcodec/stable/generated/torchcodec.decoders.AudioDecoder.
Because of the reliance on Torchcodec, the parameters ``normalize``, ``buffer_size``, and
``backend`` are ignored and accepted only for backwards compatibility.
To install torchcodec, follow the instructions at https://github.com/pytorch/torchcodec#installing-torchcodec.


Args:
Expand Down Expand Up @@ -118,6 +119,7 @@ def save(
Because of the reliance on Torchcodec, the parameters ``format``, ``encoding``,
``bits_per_sample``, ``buffer_size``, and ``backend``, are ignored and accepted only for
backwards compatibility.
To install torchcodec, follow the instructions at https://github.com/pytorch/torchcodec#installing-torchcodec.

Args:
uri (path-like object):
Expand Down
2 changes: 2 additions & 0 deletions src/torchaudio/_torchcodec.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def load_with_torchcodec(
:func:`~torchaudio.load_with_torchcodec`. Note that some parameters of
:func:`~torchaudio.load`, like ``normalize``, ``buffer_size``, and
``backend``, are ignored by :func:`~torchaudio.load_with_torchcodec`.
To install torchcodec, follow the instructions at https://github.com/pytorch/torchcodec#installing-torchcodec.


Args:
Expand Down Expand Up @@ -180,6 +181,7 @@ def save_with_torchcodec(
:func:`~torchaudio.save`, like ``format``, ``encoding``,
``bits_per_sample``, ``buffer_size``, and ``backend``, are ignored by
are ignored by :func:`~torchaudio.save_with_torchcodec`.
To install torchcodec, follow the instructions at https://github.com/pytorch/torchcodec#installing-torchcodec.

This function provides a TorchCodec-based alternative to torchaudio.save
with the same API. TorchCodec's AudioEncoder provides efficient encoding
Expand Down
Loading