Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[torchaudio] Fix torchaudio interface error (#2352) #2429

Merged
merged 1 commit into from
Mar 21, 2024

Conversation

lsrami
Copy link
Contributor

@lsrami lsrami commented Mar 20, 2024

在torchaudio>2.0版本中移除了全局backend选项,采用在函数调用中backend参数指定后端,并将默认的backend设为ffmpeg

In 2.0, audio I/O backend dispatcher was introduced. Users can opt-in to using dispatcher by setting the environment variable TORCHAUDIO_USE_BACKEND_DISPATCHER=1.

In 2.1, the disptcher became the default mechanism for I/O.

In 2.2, the legacy global backend mechanism is removed. Utility functions get_audio_backend() and set_audio_backend() became no-op.

参考:TorchAudio Dispatcher Migration

@lsrami
Copy link
Contributor Author

lsrami commented Mar 20, 2024

to fix #2352

@xingchensong xingchensong requested a review from Mddct March 21, 2024 03:43
@xingchensong
Copy link
Member

great,thx

@Mddct
Copy link
Collaborator

Mddct commented Mar 21, 2024

great

@Mddct Mddct merged commit 0bfc1f9 into wenet-e2e:main Mar 21, 2024
5 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants