Add special handling to filelike object mp3 (#2478)
Summary: Loading and querying file-like object is not possible to use the fallback mechanism introduced in https://github.com/pytorch/audio/issues/2419 because file-like objects are not seekable. This commit add special case handling to mp3. For filelike object mp3 input, it was required to pass `format="mp3"` because libsox did not auto detect the format. With the transition of mp3 handling from libsox to ffmpeg, the logic is to let the ffmpeg handle it without waiting for libsox to fail, if the `format="mp3"` Note: This is back port of https://github.com/pytorch/audio/issues/2477. Pull Request resolved: https://github.com/pytorch/audio/pull/2478 Reviewed By: carolineechen Differential Revision: D37177123 Pulled By: mthrok fbshipit-source-id: 997eead01c0ad1f04ffa0daa1039302a75f62b63
Showing
Please register or sign in to comment