Unverified Commit 92b027b0 authored by moto's avatar moto Committed by GitHub
Browse files

Add deprecation warning to sox backend (#904)

* Add deprecation warning to sox backend

Refer to https://github.com/pytorch/audio/issues/903
parent 914a846d
...@@ -49,6 +49,11 @@ def set_audio_backend(backend: Optional[str]): ...@@ -49,6 +49,11 @@ def set_audio_backend(backend: Optional[str]):
if backend is None: if backend is None:
module = no_backend module = no_backend
elif backend == 'sox': elif backend == 'sox':
warnings.warn(
'"sox" backend is being deprecated. '
'The default backend will be changed to "sox_io" backend in 0.8.0 and '
'"sox" backend will be removed in 0.9.0. Please migrate to "sox_io" backend. '
'Please refer to https://github.com/pytorch/audio/issues/903 for the detail.')
module = sox_backend module = sox_backend
elif backend == 'sox_io': elif backend == 'sox_io':
module = sox_io_backend module = sox_io_backend
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment