[BC-Breaking] Default to PCM_16 for flac on soundfile backend (#1604)
* [BC-Breaking] Default to PCM_16 for flac on soundfile backend Resolving https://github.com/pytorch/audio/issues/1592 The test backend/soundfile/save_test.py::TestFileObject::test_fileobj_flac is failing due to the fact that when soundfile.write received subtype=None (for flac files), it would fall back to 'PCM_16'. But in the same time, torchaudio will use 'PCM_24', which would result in distorted signal. This commit fixed this issue by changing the default bit-per-sample of for flac files from 24-bit to 16-bit.
Showing
Please register or sign in to comment