Skip to content

Commit 2d641ff

Browse files
Update speechbrain/pretrained/interfaces.py
Co-authored-by: Peter Plantinga <[email protected]>
1 parent 89a3838 commit 2d641ff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

speechbrain/pretrained/interfaces.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ def enhance_file(self, filename, output_filename=None):
657657
output_filename : str
658658
If provided, writes enhanced data to this file.
659659
"""
660-
noisy, fs = torchaudio.load(filename)
660+
noisy = self.load_audio(filename)
661661
enhanced = self.enhance_batch(noisy)
662662

663663
if output_filename is not None:

0 commit comments

Comments
 (0)