fix conflict

This commit is contained in:
lyuxiang.lx
2025-01-10 16:43:31 +08:00
parent b95f18909e
commit 87475ccf41
3 changed files with 3 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ def read_json_lists(list_file):
def load_wav(wav, target_sr):
speech, sample_rate = torchaudio.load(wav)
speech, sample_rate = torchaudio.load(wav, backend='soundfile')
speech = speech.mean(dim=0, keepdim=True)
if sample_rate != target_sr:
assert sample_rate > target_sr, 'wav sample rate {} must be greater than {}'.format(sample_rate, target_sr)