torchaudio 2.7.1__cp312-cp312-win_amd64.whl → 2.8.0__cp312-cp312-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of torchaudio might be problematic. Click here for more details.

Files changed (52) hide show
  1. torchaudio/__init__.py +16 -5
  2. torchaudio/_backend/sox.py +2 -2
  3. torchaudio/_backend/utils.py +33 -0
  4. torchaudio/_internal/module_utils.py +59 -10
  5. torchaudio/_torchcodec.py +352 -0
  6. torchaudio/backend/no_backend.py +2 -2
  7. torchaudio/backend/soundfile_backend.py +2 -2
  8. torchaudio/backend/sox_io_backend.py +2 -2
  9. torchaudio/functional/__init__.py +6 -1
  10. torchaudio/functional/functional.py +7 -3
  11. torchaudio/io/__init__.py +10 -3
  12. torchaudio/kaldi_io.py +6 -0
  13. torchaudio/lib/_torchaudio.pyd +0 -0
  14. torchaudio/lib/libtorchaudio.pyd +0 -0
  15. torchaudio/models/decoder/__init__.py +7 -1
  16. torchaudio/pipelines/_tts/utils.py +3 -1
  17. torchaudio/prototype/datasets/musan.py +2 -1
  18. torchaudio/prototype/functional/_dsp.py +8 -0
  19. torchaudio/prototype/functional/_rir.py +3 -0
  20. torchaudio/prototype/functional/functional.py +3 -0
  21. torchaudio/prototype/models/__init__.py +4 -1
  22. torchaudio/prototype/models/_conformer_wav2vec2.py +7 -0
  23. torchaudio/prototype/models/_emformer_hubert.py +4 -0
  24. torchaudio/prototype/models/conv_emformer.py +4 -0
  25. torchaudio/prototype/models/hifi_gan.py +6 -0
  26. torchaudio/prototype/models/rnnt.py +6 -0
  27. torchaudio/prototype/models/rnnt_decoder.py +3 -0
  28. torchaudio/prototype/pipelines/__init__.py +11 -2
  29. torchaudio/prototype/pipelines/_vggish/__init__.py +5 -1
  30. torchaudio/prototype/pipelines/_vggish/_vggish_impl.py +4 -1
  31. torchaudio/prototype/pipelines/_vggish/_vggish_pipeline.py +3 -2
  32. torchaudio/prototype/pipelines/hifigan_pipeline.py +5 -0
  33. torchaudio/prototype/transforms/_transforms.py +6 -1
  34. torchaudio/sox_effects/sox_effects.py +4 -1
  35. torchaudio/transforms/__init__.py +3 -1
  36. torchaudio/transforms/_transforms.py +3 -2
  37. torchaudio/utils/download.py +2 -0
  38. torchaudio/utils/sox_utils.py +19 -0
  39. torchaudio/version.py +2 -2
  40. {torchaudio-2.7.1.dist-info → torchaudio-2.8.0.dist-info}/METADATA +13 -2
  41. {torchaudio-2.7.1.dist-info → torchaudio-2.8.0.dist-info}/RECORD +52 -51
  42. torio/io/_streaming_media_decoder.py +0 -1
  43. torio/lib/_torio_ffmpeg4.pyd +0 -0
  44. torio/lib/_torio_ffmpeg5.pyd +0 -0
  45. torio/lib/_torio_ffmpeg6.pyd +0 -0
  46. torio/lib/libtorio_ffmpeg4.pyd +0 -0
  47. torio/lib/libtorio_ffmpeg5.pyd +0 -0
  48. torio/lib/libtorio_ffmpeg6.pyd +0 -0
  49. torio/utils/ffmpeg_utils.py +28 -0
  50. {torchaudio-2.7.1.dist-info → torchaudio-2.8.0.dist-info}/WHEEL +0 -0
  51. {torchaudio-2.7.1.dist-info → torchaudio-2.8.0.dist-info}/licenses/LICENSE +0 -0
  52. {torchaudio-2.7.1.dist-info → torchaudio-2.8.0.dist-info}/top_level.txt +0 -0
@@ -30,7 +30,9 @@ def _get_hash(path, hash, chunk_size=1028):
30
30
  data = file.read(chunk_size)
31
31
  return m.hexdigest()
32
32
 
33
+ from torchaudio._internal.module_utils import dropping_support
33
34
 
35
+ @dropping_support
34
36
  def download_asset(
35
37
  key: str,
36
38
  hash: str = "",
@@ -1,5 +1,15 @@
1
1
  """Module to change the configuration of libsox, which is used by I/O functions like
2
2
  :py:mod:`~torchaudio.backend.sox_io_backend` and :py:mod:`~torchaudio.sox_effects`.
3
+
4
+ .. warning::
5
+ Starting with version 2.8, we are refactoring TorchAudio to transition it
6
+ into a maintenance phase. As a result:
7
+
8
+ - Some APIs are deprecated in 2.8 and will be removed in 2.9.
9
+ - The decoding and encoding capabilities of PyTorch for both audio and video
10
+ are being consolidated into TorchCodec.
11
+
12
+ Please see https://github.com/pytorch/audio/issues/3902 for more information.
3
13
  """
4
14
 
5
15
  from typing import Dict, List
@@ -8,7 +18,9 @@ import torchaudio
8
18
 
9
19
  sox_ext = torchaudio._extension.lazy_import_sox_ext()
10
20
 
21
+ from torchaudio._internal.module_utils import dropping_support
11
22
 
23
+ @dropping_support
12
24
  def set_seed(seed: int):
13
25
  """Set libsox's PRNG
14
26
 
@@ -21,6 +33,7 @@ def set_seed(seed: int):
21
33
  sox_ext.set_seed(seed)
22
34
 
23
35
 
36
+ @dropping_support
24
37
  def set_verbosity(verbosity: int):
25
38
  """Set libsox's verbosity
26
39
 
@@ -38,6 +51,7 @@ def set_verbosity(verbosity: int):
38
51
  sox_ext.set_verbosity(verbosity)
39
52
 
40
53
 
54
+ @dropping_support
41
55
  def set_buffer_size(buffer_size: int):
42
56
  """Set buffer size for sox effect chain
43
57
 
@@ -50,6 +64,7 @@ def set_buffer_size(buffer_size: int):
50
64
  sox_ext.set_buffer_size(buffer_size)
51
65
 
52
66
 
67
+ @dropping_support
53
68
  def set_use_threads(use_threads: bool):
54
69
  """Set multithread option for sox effect chain
55
70
 
@@ -63,6 +78,7 @@ def set_use_threads(use_threads: bool):
63
78
  sox_ext.set_use_threads(use_threads)
64
79
 
65
80
 
81
+ @dropping_support
66
82
  def list_effects() -> Dict[str, str]:
67
83
  """List the available sox effect names
68
84
 
@@ -72,6 +88,7 @@ def list_effects() -> Dict[str, str]:
72
88
  return dict(sox_ext.list_effects())
73
89
 
74
90
 
91
+ @dropping_support
75
92
  def list_read_formats() -> List[str]:
76
93
  """List the supported audio formats for read
77
94
 
@@ -81,6 +98,7 @@ def list_read_formats() -> List[str]:
81
98
  return sox_ext.list_read_formats()
82
99
 
83
100
 
101
+ @dropping_support
84
102
  def list_write_formats() -> List[str]:
85
103
  """List the supported audio formats for write
86
104
 
@@ -90,6 +108,7 @@ def list_write_formats() -> List[str]:
90
108
  return sox_ext.list_write_formats()
91
109
 
92
110
 
111
+ @dropping_support
93
112
  def get_buffer_size() -> int:
94
113
  """Get buffer size for sox effect chain
95
114
 
torchaudio/version.py CHANGED
@@ -1,2 +1,2 @@
1
- __version__ = '2.7.1+cpu'
2
- git_version = '95c61b4168fc5133be8dd8c1337d929d066ae6cf'
1
+ __version__ = '2.8.0+cpu'
2
+ git_version = '6e1c7fe9ff6d82b8665d0a46d859d3357d2ebaaa'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: torchaudio
3
- Version: 2.7.1
3
+ Version: 2.8.0
4
4
  Summary: An audio package for PyTorch
5
5
  Home-page: https://github.com/pytorch/audio
6
6
  Author: Soumith Chintala, David Pollack, Sean Naren, Peter Goldsborough, Moto Hira, Caroline Chen, Jeff Hwang, Zhaoheng Ni, Xiaohui Zhang
@@ -25,7 +25,7 @@ Classifier: Topic :: Multimedia :: Sound/Audio
25
25
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
26
26
  Description-Content-Type: text/markdown
27
27
  License-File: LICENSE
28
- Requires-Dist: torch==2.7.1
28
+ Requires-Dist: torch==2.8.0
29
29
  Dynamic: author
30
30
  Dynamic: author-email
31
31
  Dynamic: classifier
@@ -47,6 +47,17 @@ torchaudio: an audio library for PyTorch
47
47
 
48
48
  ![TorchAudio Logo](docs/source/_static/img/logo.png)
49
49
 
50
+ > [!NOTE]
51
+ > **We are in the process of refactoring TorchAudio and transitioning it into a
52
+ > maintenance phase. This process will include removing some user-facing
53
+ > features: those features are deprecated from TorchAudio 2.8 and will be removed in 2.9.
54
+ > Our main goals are to reduce redundancies with the rest of the
55
+ > PyTorch ecosystem, make it easier to maintain, and create a version of
56
+ > TorchAudio that is more tightly scoped to its strengths: processing audio
57
+ > data for ML. Please see
58
+ > [our community message](https://github.com/pytorch/audio/issues/3902)
59
+ > for more details.**
60
+
50
61
  The aim of torchaudio is to apply [PyTorch](https://github.com/pytorch/pytorch) to
51
62
  the audio domain. By supporting PyTorch, torchaudio follows the same philosophy
52
63
  of providing strong GPU acceleration, having a focus on trainable features through
@@ -1,25 +1,26 @@
1
- torchaudio/__init__.py,sha256=kUWnkwcKERMj7m-B4E826aGZWGa5sJs1DEpLP6LZoEs,945
2
- torchaudio/kaldi_io.py,sha256=acwysr6fASV9IcOTF0AbVPCo_VQTu1M2AOn1SXm3GPE,5217
3
- torchaudio/version.py,sha256=k47FV9vHG24f5CRahIwpcieIlJn6Zjqa6xF-A9kxwU0,85
1
+ torchaudio/__init__.py,sha256=sz2lTxSrqXNOpX4qUS6sxITrLYRiDeQ7CIPfVgITUJs,1546
2
+ torchaudio/_torchcodec.py,sha256=eWb6j8glcLKTFqLwS0OuTYp3qbysrYteorPSZSONdwI,14138
3
+ torchaudio/kaldi_io.py,sha256=9CcQfQFaU5ZtkQ-5XC1FWM0z0na_6N6sbAtAcWgTimg,5376
4
+ torchaudio/version.py,sha256=uE4xtVTIwbuenIWZnPoV_RyXxkE17WGuMG5mXchO64U,85
4
5
  torchaudio/_backend/__init__.py,sha256=2bMTZ3tG2_5nvnqAAmvEnGBInO5a9DdUPNoyXEnX1M0,1692
5
6
  torchaudio/_backend/backend.py,sha256=CakqB9z_4ZtLsQTyMZbEbB0kTqpUe_gidHgObv9acyQ,1618
6
7
  torchaudio/_backend/common.py,sha256=h9R29RTTW2lqOiKYByETXfXWsrTH65uHxGDKw3bWj-s,1835
7
8
  torchaudio/_backend/ffmpeg.py,sha256=b6dr67sWg47uFJxIyWLXCtrdPMlgjYdWmj7n919Ph1M,11628
8
9
  torchaudio/_backend/soundfile.py,sha256=Dd-K6Tg_G3ze08hImvnAsO5lpAERpmUd9oxkNsGJUno,1757
9
10
  torchaudio/_backend/soundfile_backend.py,sha256=sVSEM2On6PMY7AbPqpfvE1u1Bg2_0aiSrZ4TclAFi_w,17833
10
- torchaudio/_backend/sox.py,sha256=UGF352HA_5kXebHEdxOlvyNgruYacxDkeJy4ErggRhI,3451
11
- torchaudio/_backend/utils.py,sha256=8HkmV_GCHZhD-XaKNQ60nGFsu7rVgr1SOhasN6v91aI,13616
11
+ torchaudio/_backend/sox.py,sha256=nFPpv-9VsToxkZcAwpku667ZIMzj0ZneV-7nzKUtKOM,3461
12
+ torchaudio/_backend/utils.py,sha256=2jPWFmMHrByyvJ08xXTMhnyO14XoY49ZNWUH2Si2x5w,15727
12
13
  torchaudio/_extension/__init__.py,sha256=s6AzXocDcuh0mtYVUCOOjZ_mCmSCno8jbZN750YI-Ps,2276
13
14
  torchaudio/_extension/utils.py,sha256=wFDF8B6Q22UL3zyX8swZ-JjlDgm9-VdjeraslQr2yIY,6438
14
15
  torchaudio/_internal/__init__.py,sha256=80cpJfTS8977YYrU3q5p4DRAGAkqEJrmG9Lq2hEDpoo,251
15
- torchaudio/_internal/module_utils.py,sha256=d0Gf_DhaA-fEtxKHjWhDwYrBsH6CCk41eUi_9THhQ9k,3675
16
+ torchaudio/_internal/module_utils.py,sha256=AUA-ATgk_Bbo1fGZfy1Ra1cwkJ7sqzZvlXtRm-3EcYo,5411
16
17
  torchaudio/backend/__init__.py,sha256=ckKT_tmcmc_Z43ZTlqJ39fwUbmv-j-mAP2BWp0sU4Tg,289
17
18
  torchaudio/backend/_no_backend.py,sha256=CEpYJ0bZi937Z0q2JHdRVnDKd7HWlCUVR7rEVHE_xmE,782
18
19
  torchaudio/backend/_sox_io_backend.py,sha256=Ut3-QaqzaJ0MvNc7NdpMTST7_mZy1xSixGbDC7418Qk,11750
19
20
  torchaudio/backend/common.py,sha256=mn0l6GBwet7DvRQPURhYIHF-HrQFvEFVKM23PawfbH8,456
20
- torchaudio/backend/no_backend.py,sha256=xc-k0kqzYOEM6dvcIwiMDEaLutKrYXXCsCXF1IVFNHM,483
21
- torchaudio/backend/soundfile_backend.py,sha256=NFHAQcz8kwlgI7qIG1bYrbgzsjtDCkNn_Gmip6vBL6g,513
22
- torchaudio/backend/sox_io_backend.py,sha256=_DD1_6y4eV4MsIl2Clcxnq96k_EXT0XMu5p2Z61gnEs,491
21
+ torchaudio/backend/no_backend.py,sha256=q4Czg1NFcsPKl8C4Ik89Ud51SlVHlTtNAcMNZ6cKgQ8,483
22
+ torchaudio/backend/soundfile_backend.py,sha256=BXLy1io5jDXxa-1G9rUzlJZNdiaiO_h7hr74sdTk4Tc,513
23
+ torchaudio/backend/sox_io_backend.py,sha256=xfzCNvGsMbH-lfJP4c19gn8pZKUOusGsRWkdJd-I9ZU,491
23
24
  torchaudio/compliance/__init__.py,sha256=JNH_-dTQVmm55YwcVMuVvUYFWdXhGn4C__9S8IUsNoU,53
24
25
  torchaudio/compliance/kaldi.py,sha256=bS7qJgS3k8FK1RkMiNEoP3q0xhjeV_V4RHQ9jo_rqOM,37479
25
26
  torchaudio/datasets/__init__.py,sha256=hdHldm3OzoQLbI0kHj8tLxqwDhzMfedq0_t1kAK7ORg,1218
@@ -45,16 +46,16 @@ torchaudio/datasets/utils.py,sha256=m-sBYgQb0JxgGVfsVpekKFDI_7PGXCTma6N2ymfJl0g,
45
46
  torchaudio/datasets/vctk.py,sha256=vN_VzxTLyHW11I_rzfzMVA3h5JW917FaU3NCnR-zcL0,5842
46
47
  torchaudio/datasets/voxceleb1.py,sha256=JlYkbyYOAFUFhGLULe3lgucANWf_G7qGqw47YjiX2IM,12034
47
48
  torchaudio/datasets/yesno.py,sha256=B3hRNUazvB8V8SwOUlQzliB9vI9gMkl9SEl-dZ4PEaw,3115
48
- torchaudio/functional/__init__.py,sha256=NwlPoWjNravX4itCZy-dzN-BkCFdDHFRwvPle8JjBRo,2484
49
+ torchaudio/functional/__init__.py,sha256=avLNjTJJuvXGjLQZk3AwpXSRhW-NeOx9R1PDD5aQA5o,2619
49
50
  torchaudio/functional/_alignment.py,sha256=46GhuEYUqI1gE-2UKSu9BIQF1QpZ5yunUS8JZGZJuss,4823
50
51
  torchaudio/functional/filtering.py,sha256=6_Xz-aT8JyVf4n-aos63eNstvNHookSVlGL_NfEXWsg,63312
51
- torchaudio/functional/functional.py,sha256=qjdU3kILy69-jQL3lQ2EO1y_dpLDif_jAp99hBRJnPo,98541
52
- torchaudio/io/__init__.py,sha256=5U3MlGVGw5vPTZqCZ-7N25oVfwssA6KUtluj-9rNRMM,310
52
+ torchaudio/functional/functional.py,sha256=1_7gbT0xqT8Fa-e7DCjc6vsEyURZwFUeypai9AFPI6A,98720
53
+ torchaudio/io/__init__.py,sha256=syrguNxNQKo7_eKuFFLU_Ze5wtyxdOXVyQ84dyuCig0,753
53
54
  torchaudio/io/_effector.py,sha256=5Kh7br-ZuLzmoRSVXk5JNQ8NkwcGUiY_mrt7d_1W1eg,12217
54
55
  torchaudio/io/_playback.py,sha256=UpPb-m35XUlYL2lybQGXAJAvfmUPT_Kqx4jpYArIAz0,2393
55
56
  torchaudio/lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
56
- torchaudio/lib/_torchaudio.pyd,sha256=Z6HysEJoEftXminU9M3jLAO0ozdLP-Zt5MuTE9WHORM,753664
57
- torchaudio/lib/libtorchaudio.pyd,sha256=-dmGIuLE_7HYiIpx0uYyDCBRk38702LJYebfpEY4wgI,1733632
57
+ torchaudio/lib/_torchaudio.pyd,sha256=OBPDRRUQnWRAPQsDMq42mt3wIYTXq4Hv7dpvbW-5iv0,769536
58
+ torchaudio/lib/libtorchaudio.pyd,sha256=ucKzZD1fy4u4b1auE_faVD_ExdIT8CZTj9JXpSq9hHs,1762304
58
59
  torchaudio/models/__init__.py,sha256=Gi3UQvxjwTLW9wfKlF42O3Vup70d0bk2x-rZS89ASwI,2080
59
60
  torchaudio/models/_hdemucs.py,sha256=ipAj7965PO_WEZqQwW1om9gQj90UhQOeU6HU3Lpvzwo,39250
60
61
  torchaudio/models/conformer.py,sha256=gVrOYeJkPlVaX-4eZpVzNUe_r3k7g1Y6NaaQ8JZP-r4,10361
@@ -66,7 +67,7 @@ torchaudio/models/rnnt_decoder.py,sha256=CBBMZhhq5Bgax0_3p3SZD-Os3S1LFHB91oTgVED
66
67
  torchaudio/models/tacotron2.py,sha256=mZ5lLSa75oqc0hgkc3sIm5_gK-knhtgX3dmg9-oLQao,46960
67
68
  torchaudio/models/wav2letter.py,sha256=oetxpH5RG0TadYB75IOmYOrnraaPvSlcSNpRZb2FE_A,3350
68
69
  torchaudio/models/wavernn.py,sha256=LRgL36jA6WzI1PAzBY6P52oCMGSTOraXB8fEgkwpSxw,15855
69
- torchaudio/models/decoder/__init__.py,sha256=WMh4udN8CGF-SvgN6JBXSNMjhZqm1et7FyMrsk6V6RM,1252
70
+ torchaudio/models/decoder/__init__.py,sha256=Lskj9moDFtjxRDbz4nnnzMcgqofaKILdgODqlnauEwc,1518
70
71
  torchaudio/models/decoder/_ctc_decoder.py,sha256=woyUaDCuaMQqPTQ7uLuc99lxMAOsJj5AxWwS9hf6JNY,20650
71
72
  torchaudio/models/decoder/_cuda_ctc_decoder.py,sha256=BZCjAdZ50umWW171nJYHy24YZ5CxM8a2JfMIeO4S3BM,7373
72
73
  torchaudio/models/squim/__init__.py,sha256=eQox8kPviOthKulpzZvPK0a66NHW7MzYE4aOF7va_kU,357
@@ -86,59 +87,59 @@ torchaudio/pipelines/rnnt_pipeline.py,sha256=S0DLMPbt-lqNBWOcjG5KP2IfU1X_oTv95CV
86
87
  torchaudio/pipelines/_tts/__init__.py,sha256=WKc5c06b_M9MvEohJZghJJWAL7vXvfwRIkdy85UCh04,442
87
88
  torchaudio/pipelines/_tts/impl.py,sha256=wwrTyTEEkew22AnzB_ZklapGaAstJSUBawhA7bOcGXM,15759
88
89
  torchaudio/pipelines/_tts/interface.py,sha256=y1mU0446Vy2hHpCwMqRZt1UI4ZXl-C4tJp92EylwHh0,10479
89
- torchaudio/pipelines/_tts/utils.py,sha256=ZqqD-TXI6zkKvYtdAHlZikKlpEO00otvOKJTTjXFOGI,4844
90
+ torchaudio/pipelines/_tts/utils.py,sha256=JbGBrD49FMw1igen4ZKOmuNA4bDWHRX48h5Zs2VFlTM,5040
90
91
  torchaudio/pipelines/_wav2vec2/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
91
92
  torchaudio/pipelines/_wav2vec2/aligner.py,sha256=HOcthFgup97QMx9ZXCmkv6jdw_zxdRT-e_SilXEujNU,2796
92
93
  torchaudio/pipelines/_wav2vec2/impl.py,sha256=I6htNo4Wt5LPxX9Z8rmxarFE8BZOZBUFIU9T9k1k2Po,67260
93
94
  torchaudio/pipelines/_wav2vec2/utils.py,sha256=CVawfXmVGWY8mj-_6r4KO907BpF67WAVWHEHhycFIaM,7317
94
95
  torchaudio/prototype/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
95
96
  torchaudio/prototype/datasets/__init__.py,sha256=l2k9V6ujGOiiPUXtJqMT0sao0zIUqKOg-243PAVs7NM,51
96
- torchaudio/prototype/datasets/musan.py,sha256=eNwoPahmHFqdllmFY10D5L6ko6ZjHQI9ZdvJJ8b6vDU,2163
97
+ torchaudio/prototype/datasets/musan.py,sha256=_wc_4Ye2-07xiR6q5f7e7kyK7A22plim1frfnjFv44I,2274
97
98
  torchaudio/prototype/functional/__init__.py,sha256=C5uPqrnwc_VJ9ajJpudsBAmxt6-RKrHirIJa3RHLlfs,588
98
- torchaudio/prototype/functional/_dsp.py,sha256=8mjlYBWIcqDidflvvZYtUI1Icx5hEBkyQE4XErDcHKw,17071
99
- torchaudio/prototype/functional/_rir.py,sha256=56To55TZ9J8zTXmGEb3N14df6ADpuXAWfdfxRCe8OEA,17634
100
- torchaudio/prototype/functional/functional.py,sha256=1alp81YX8x9DHBrIHz5RgxYrW-DEvPI59Io9p19kb64,6654
101
- torchaudio/prototype/models/__init__.py,sha256=Yuebowh-ukX2wxlU-rGc00BVjgChr_8Wf43wpTXTLus,1290
102
- torchaudio/prototype/models/_conformer_wav2vec2.py,sha256=9Je5xp87iTzD86xUQ3h4cs0XXQYp-NLAC-tHgdiljjo,30316
103
- torchaudio/prototype/models/_emformer_hubert.py,sha256=Uz_hKOOzK8ul5rpBx__15_oy_pklocl8SvRgmjTg7hI,13831
104
- torchaudio/prototype/models/conv_emformer.py,sha256=txtyonaqdXG6fli91WN1mkAc6SFFzUZ3fFcY713P5VM,23601
105
- torchaudio/prototype/models/hifi_gan.py,sha256=X8mN04yQpzbOKxKmE98nFimltOOKp4FmtT2Ipxc4N3k,12816
106
- torchaudio/prototype/models/rnnt.py,sha256=3-O5pYW35ffEG8KwCVDQfhGp-Kj0OsP4wjzdTkdQEzo,31570
107
- torchaudio/prototype/models/rnnt_decoder.py,sha256=CO8yo1OsIi0EQSn3GRTysPoUzQN-aiNWyrrv_86rzc4,16134
108
- torchaudio/prototype/pipelines/__init__.py,sha256=6x8q20JhZrPYx-GtJpLzeqetS0U6xBt70Qn6ctGpuUE,394
109
- torchaudio/prototype/pipelines/hifigan_pipeline.py,sha256=-HcU3w5AcCEcjVeXpIddVLJmeu52psCO4oTIOgw50WA,9882
99
+ torchaudio/prototype/functional/_dsp.py,sha256=ir70C3Wf9SIeFpdDzt5RAaeqeSQz8H3TUr3CdB5NkdQ,17268
100
+ torchaudio/prototype/functional/_rir.py,sha256=vE1afWLwZlTE6J1Mdir0JaLOLwXSKwJXw-UhVLF68Zw,17736
101
+ torchaudio/prototype/functional/functional.py,sha256=Cwsrj7PE3vQtpm56cD1xNyt5FWT5TVjNicTl_kBEtA8,6756
102
+ torchaudio/prototype/models/__init__.py,sha256=ZrVFYZCFGRAS7FbALYnSRKE8jAnl2rmT7oSKhWgkJIg,1446
103
+ torchaudio/prototype/models/_conformer_wav2vec2.py,sha256=eqlmpWGMJZrhzeeiyGVHI-K5yXLGc-s_Go9_JADtsY0,30524
104
+ torchaudio/prototype/models/_emformer_hubert.py,sha256=zvkz9Kt2rV4hSOGKR3gk6ZJyWTkxwrD0pF4do-bSmeE,13935
105
+ torchaudio/prototype/models/conv_emformer.py,sha256=46wl2YOa6Mnzd-0oOLegxzru08Jt9O3fKZVvyXCXTw8,23739
106
+ torchaudio/prototype/models/hifi_gan.py,sha256=0P2RbDEdqXAiv9p_7HNsql5NAe7blxM3xWIRES1SYvc,13005
107
+ torchaudio/prototype/models/rnnt.py,sha256=xk4rhiYGeAjLPEzyRdCWmnASFftJjxLxxKUcC2_Vywg,31712
108
+ torchaudio/prototype/models/rnnt_decoder.py,sha256=PqEXRgRo4pQcrPqYUKS8gUlSFhOos8Yd46gW9U8QmMA,16231
109
+ torchaudio/prototype/pipelines/__init__.py,sha256=uYbi90E5U-LfZuaTlLukFYfT0eMmCsReUi_bbMTmWxs,822
110
+ torchaudio/prototype/pipelines/hifigan_pipeline.py,sha256=FHWa96-bhWcPT-3Y4geALG5qebxNRNi2Gm5xtIYVaS8,10043
110
111
  torchaudio/prototype/pipelines/rnnt_pipeline.py,sha256=6zeezoHIPo-9Sc0B19cFoJrQMybmDP1MDoUZzMFheOo,2242
111
- torchaudio/prototype/pipelines/_vggish/__init__.py,sha256=pkGI6k0g21XZYg6H80RO6EavTOFBNUyQkFOanr8cwtY,92
112
- torchaudio/prototype/pipelines/_vggish/_vggish_impl.py,sha256=2elMGpd6-RCFLBS4WkEQSErGWVNK6iFTNMz95PpTIZ4,8730
113
- torchaudio/prototype/pipelines/_vggish/_vggish_pipeline.py,sha256=Gssicwkm7Wffnk1xUUoFPSUm9_5Na0J3MZAS5OdYfGo,2795
112
+ torchaudio/prototype/pipelines/_vggish/__init__.py,sha256=QCdAgmNiHA-nwgDIn94GqeEpZM-8vIIXNNYoFMphjCU,229
113
+ torchaudio/prototype/pipelines/_vggish/_vggish_impl.py,sha256=GWVx5k2LcdCkWtoPKIhywIGAE23H39mtRsuGgo0yuYw,8850
114
+ torchaudio/prototype/pipelines/_vggish/_vggish_pipeline.py,sha256=D1DXlgt1Vrj0gT_O77o285z5TrnYmackhj6sDsunYF8,2859
114
115
  torchaudio/prototype/transforms/__init__.py,sha256=a-LNmupvUQvpo3CrTvqXudgY8G6cRGI1zy6j9oWST_o,234
115
- torchaudio/prototype/transforms/_transforms.py,sha256=DSktWkL7elGrNrNWCzZ0kaB7DNZmpX0gu_8kTJzXkf8,19600
116
+ torchaudio/prototype/transforms/_transforms.py,sha256=rP7kM-ZkY-qnB8qIoLUUuNDbxA3XefUkAVlMI7Dg1Lg,19811
116
117
  torchaudio/sox_effects/__init__.py,sha256=NVN6rAkHxizmOsZgLnxjMX5qXcPkABzLE-hvTMaSbEw,272
117
- torchaudio/sox_effects/sox_effects.py,sha256=1K7Ngy5E1i1keSMiX0GJZbVh6n8ONH7TCb_606vqBxg,11253
118
- torchaudio/transforms/__init__.py,sha256=GYkPl29GcVu_QzUfnlw1QnfNsqiqgjtn1ZmfhAAMACo,1345
118
+ torchaudio/sox_effects/sox_effects.py,sha256=bafww0e2colzzN8bTMRHG5zvA6oON0pLEpCWRt6wp90,11328
119
+ torchaudio/transforms/__init__.py,sha256=MlMn3JIZvOVdXB0qAk27fgCq1U_RiO6Wz4ntkAGi6ec,1474
119
120
  torchaudio/transforms/_multi_channel.py,sha256=Musw7dTu25HNjKeIcKHUDuqBmj_GC2e3TaakqJcffW8,22688
120
- torchaudio/transforms/_transforms.py,sha256=YFbbZ8nV1fBR0EGiNS3GOtFM-rLkyDUpXdPh8zNab40,89009
121
+ torchaudio/transforms/_transforms.py,sha256=S_a0nvUT2G6w3jm9ILWzWbxNfMyIIFlkTZhee4xI6gU,89076
121
122
  torchaudio/utils/__init__.py,sha256=h4Jvrb4vzdxzgJqgzA-TOUqLSZ2mRVALERR8am7BlvQ,185
122
- torchaudio/utils/download.py,sha256=QlO5md3u0bUBFTWjZpSBMaMeeqgZKm9LmwzdB5Ip7_c,2971
123
+ torchaudio/utils/download.py,sha256=tyPmX8EA9xAnz615UtZZsYi1mtGu3vVh4ZfYzWa2DNw,3054
123
124
  torchaudio/utils/ffmpeg_utils.py,sha256=1r5cdbhz9ZCY5jW-5_gQ5G360a2fEwd--GBFMq_TxVk,330
124
- torchaudio/utils/sox_utils.py,sha256=Wpu9cEL3EcsovNnWKWIcosRSA_LmP1XqbZ7_9ti5imI,2520
125
+ torchaudio/utils/sox_utils.py,sha256=VF4ikIm3Eiw99RdaXN_f96QDuqAw9cjS4LxN2E_ETJE,3158
125
126
  torio/__init__.py,sha256=6Rz28GL44aSOszXJewvjdcm8Fp47TgphNMPtsIBd2aE,119
126
127
  torio/_extension/__init__.py,sha256=9GnFiLWPCViTbUUNio9At1M0ALGqKtZ9lFOuPUn1Sc8,326
127
128
  torio/_extension/utils.py,sha256=ppIGBFk868z7QbfSjawHUkSO3yZ7ML2jHFgE-j6GymI,5051
128
129
  torio/io/__init__.py,sha256=GSt-4DRzgiuVmNN3WwjDAMACztJidmEP5ghVOlW6OQI,235
129
- torio/io/_streaming_media_decoder.py,sha256=dx0K8PD2PZY7yRY1G_As-_8-LyQDLdYfRZPW1kmrJg0,35354
130
+ torio/io/_streaming_media_decoder.py,sha256=VT4FaGfV44cJfG6MFQNV1Puocz6PayZ2iDNWfM5apB4,35352
130
131
  torio/io/_streaming_media_encoder.py,sha256=C4zIasotf7GlkQqtRK3vMCt2aN6FkG6NK2KUw0ZdHHo,20224
131
132
  torio/lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
132
- torio/lib/_torio_ffmpeg4.pyd,sha256=IMDDpavX20WqWlmpC2K-nkgjonpaViiY253ePR0geU0,1765888
133
- torio/lib/_torio_ffmpeg5.pyd,sha256=M8YHIAHL1mfMHQpK_hAgRQn6A5feCc8BIlKF4XlwdoU,1765888
134
- torio/lib/_torio_ffmpeg6.pyd,sha256=eAhSk22SlzBiJonGbbEFcQdFa84zESqKsPVqfRVWjWY,1765888
135
- torio/lib/libtorio_ffmpeg4.pyd,sha256=RgID5NAzvL0dVUUhElCW3Qn2VvZx6E-JENZ_f5rCBio,958464
136
- torio/lib/libtorio_ffmpeg5.pyd,sha256=NbHa_d7WyZIcIeoRDts_I5jaYh_hfbOoN6wPqXLiUSM,958464
137
- torio/lib/libtorio_ffmpeg6.pyd,sha256=M696-pxfrUhkLKWHTkWJXkB8-VowjUXNLy7X1Djr6ew,958464
133
+ torio/lib/_torio_ffmpeg4.pyd,sha256=rBpbSLbfCIlr0eFNom4QSl-UVw3_Jw_08_J5NN8_Tc4,2110464
134
+ torio/lib/_torio_ffmpeg5.pyd,sha256=HjuaNseXUGGq8kVjXZ_d5M311v13cbTV6UXdOnHUEdE,2110464
135
+ torio/lib/_torio_ffmpeg6.pyd,sha256=gCsf8GAo8L6JB-FQqB8msYUPIK5s2WkhhGEBK8QkcLo,2110464
136
+ torio/lib/libtorio_ffmpeg4.pyd,sha256=MXjm99wRh21C0BHs-Phic_WgnFQttWe0Le6oOeloEWw,967680
137
+ torio/lib/libtorio_ffmpeg5.pyd,sha256=OsFbIeKO1_c-eg68mDTiAYjV6O7L5r13xEgQTpAv8FU,967680
138
+ torio/lib/libtorio_ffmpeg6.pyd,sha256=VGZZ1RWtNWGnAI4rgv1QuNFRoVbn3WYxURRhJPUCxiM,967680
138
139
  torio/utils/__init__.py,sha256=uQV58SlyikUr6yF4HITASCvuX-_fnzbeDxFRzFucQE4,60
139
- torio/utils/ffmpeg_utils.py,sha256=2-7XS7CEZB0-M9-Ls5Tki4v7aXGJiVg7WouAUZjt3XI,8273
140
- torchaudio-2.7.1.dist-info/METADATA,sha256=C7Sf5E82t2mTijFxZA2mBfS0fQTvhpQYiYOxrrtOpPc,6640
141
- torchaudio-2.7.1.dist-info/WHEEL,sha256=KI7LHhz6dTtDDO7VYe8QnwL5I_g0fgqsSHIhDBBaEVw,101
142
- torchaudio-2.7.1.dist-info/top_level.txt,sha256=GT0MktEbHKoLnvd-6ii7_dhJVvshupOujk840BcHU4U,17
143
- torchaudio-2.7.1.dist-info/RECORD,,
144
- torchaudio-2.7.1.dist-info/licenses/LICENSE,sha256=MmOOF5kxv-VR6r9nsOZ6E7SD4Wa1jdcmNjSrf4nzlvU,1363
140
+ torio/utils/ffmpeg_utils.py,sha256=1qDvl4b0ziLPS6cyEL63_LINHScbawJga3Yk2BLuY54,9048
141
+ torchaudio-2.8.0.dist-info/METADATA,sha256=OckS0WMRSG0XrYz9w857UycDcGxBCxQKdMlRH6hof-8,7236
142
+ torchaudio-2.8.0.dist-info/WHEEL,sha256=KI7LHhz6dTtDDO7VYe8QnwL5I_g0fgqsSHIhDBBaEVw,101
143
+ torchaudio-2.8.0.dist-info/top_level.txt,sha256=GT0MktEbHKoLnvd-6ii7_dhJVvshupOujk840BcHU4U,17
144
+ torchaudio-2.8.0.dist-info/RECORD,,
145
+ torchaudio-2.8.0.dist-info/licenses/LICENSE,sha256=MmOOF5kxv-VR6r9nsOZ6E7SD4Wa1jdcmNjSrf4nzlvU,1363
@@ -437,7 +437,6 @@ _format_video_args = _format_doc(
437
437
  InputStreamTypes = TypeVar("InputStream", bound=SourceStream)
438
438
  OutputStreamTypes = TypeVar("OutputStream", bound=OutputStream)
439
439
 
440
-
441
440
  class StreamingMediaDecoder:
442
441
  """Fetch and decode audio/video streams chunk by chunk.
443
442
 
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,6 +1,16 @@
1
1
  """Module to change the configuration of FFmpeg libraries (such as libavformat).
2
2
 
3
3
  It affects functionalities in :py:mod:`torio.io`.
4
+
5
+ .. warning::
6
+ Starting with version 2.8, we are refactoring TorchAudio to transition it
7
+ into a maintenance phase. As a result:
8
+
9
+ - Some APIs are deprecated in 2.8 and will be removed in 2.9.
10
+ - The decoding and encoding capabilities of PyTorch for both audio and video
11
+ are being consolidated into TorchCodec.
12
+
13
+ Please see https://github.com/pytorch/audio/issues/3902 for more information.
4
14
  """
5
15
  from typing import Dict, List, Tuple
6
16
 
@@ -9,6 +19,10 @@ import torio
9
19
  ffmpeg_ext = torio._extension.lazy_import_ffmpeg_ext()
10
20
 
11
21
 
22
+ from torchaudio._internal.module_utils import dropping_support
23
+
24
+
25
+ @dropping_support
12
26
  def get_versions() -> Dict[str, Tuple[int]]:
13
27
  """Get the versions of FFmpeg libraries
14
28
 
@@ -19,6 +33,7 @@ def get_versions() -> Dict[str, Tuple[int]]:
19
33
  return ffmpeg_ext.get_versions()
20
34
 
21
35
 
36
+ @dropping_support
22
37
  def get_log_level() -> int:
23
38
  """Get the log level of FFmpeg.
24
39
 
@@ -27,6 +42,7 @@ def get_log_level() -> int:
27
42
  return ffmpeg_ext.get_log_level()
28
43
 
29
44
 
45
+ @dropping_support
30
46
  def set_log_level(level: int):
31
47
  """Set the log level of FFmpeg (libavformat etc)
32
48
 
@@ -63,6 +79,7 @@ def set_log_level(level: int):
63
79
  ffmpeg_ext.set_log_level(level)
64
80
 
65
81
 
82
+ @dropping_support
66
83
  def get_demuxers() -> Dict[str, str]:
67
84
  """Get the available demuxers.
68
85
 
@@ -80,6 +97,7 @@ def get_demuxers() -> Dict[str, str]:
80
97
  return ffmpeg_ext.get_demuxers()
81
98
 
82
99
 
100
+ @dropping_support
83
101
  def get_muxers() -> Dict[str, str]:
84
102
  """Get the available muxers.
85
103
 
@@ -98,6 +116,7 @@ def get_muxers() -> Dict[str, str]:
98
116
  return ffmpeg_ext.get_muxers()
99
117
 
100
118
 
119
+ @dropping_support
101
120
  def get_audio_decoders() -> Dict[str, str]:
102
121
  """Get the available audio decoders.
103
122
 
@@ -116,6 +135,7 @@ def get_audio_decoders() -> Dict[str, str]:
116
135
  return ffmpeg_ext.get_audio_decoders()
117
136
 
118
137
 
138
+ @dropping_support
119
139
  def get_audio_encoders() -> Dict[str, str]:
120
140
  """Get the available audio encoders.
121
141
 
@@ -135,6 +155,7 @@ def get_audio_encoders() -> Dict[str, str]:
135
155
  return ffmpeg_ext.get_audio_encoders()
136
156
 
137
157
 
158
+ @dropping_support
138
159
  def get_video_decoders() -> Dict[str, str]:
139
160
  """Get the available video decoders.
140
161
 
@@ -154,6 +175,7 @@ def get_video_decoders() -> Dict[str, str]:
154
175
  return ffmpeg_ext.get_video_decoders()
155
176
 
156
177
 
178
+ @dropping_support
157
179
  def get_video_encoders() -> Dict[str, str]:
158
180
  """Get the available video encoders.
159
181
 
@@ -174,6 +196,7 @@ def get_video_encoders() -> Dict[str, str]:
174
196
  return ffmpeg_ext.get_video_encoders()
175
197
 
176
198
 
199
+ @dropping_support
177
200
  def get_input_devices() -> Dict[str, str]:
178
201
  """Get the available input devices.
179
202
 
@@ -189,6 +212,7 @@ def get_input_devices() -> Dict[str, str]:
189
212
  return ffmpeg_ext.get_input_devices()
190
213
 
191
214
 
215
+ @dropping_support
192
216
  def get_output_devices() -> Dict[str, str]:
193
217
  """Get the available output devices.
194
218
 
@@ -203,6 +227,7 @@ def get_output_devices() -> Dict[str, str]:
203
227
  return ffmpeg_ext.get_output_devices()
204
228
 
205
229
 
230
+ @dropping_support
206
231
  def get_input_protocols() -> List[str]:
207
232
  """Get the supported input protocols.
208
233
 
@@ -216,6 +241,7 @@ def get_input_protocols() -> List[str]:
216
241
  return ffmpeg_ext.get_input_protocols()
217
242
 
218
243
 
244
+ @dropping_support
219
245
  def get_output_protocols() -> List[str]:
220
246
  """Get the supported output protocols.
221
247
 
@@ -229,6 +255,7 @@ def get_output_protocols() -> List[str]:
229
255
  return ffmpeg_ext.get_output_protocols()
230
256
 
231
257
 
258
+ @dropping_support
232
259
  def get_build_config() -> str:
233
260
  """Get the FFmpeg build configuration
234
261
 
@@ -242,6 +269,7 @@ def get_build_config() -> str:
242
269
  return ffmpeg_ext.get_build_config()
243
270
 
244
271
 
272
+ @dropping_support
245
273
  def clear_cuda_context_cache():
246
274
  """Clear the CUDA context used by CUDA Hardware accelerated video decoding"""
247
275
  ffmpeg_ext.clear_cuda_context_cache()