Skip to content

SOTA Open Source TTS

Fix extract

Lengyuef4e70f9dda11
diff --git a/fish_speech/utils/file.py b/fish_speech/utils/file.py
index 11ae597..4047aa5 100644
--- a/fish_speech/utils/file.py
+++ b/fish_speech/utils/file.py
@@ -44,7 +44,7 @@ def list_files(
if not path.exists():
raise FileNotFoundError(f"Directory {path} does not exist.")
- files = [file for ext in extensions for file in path.iglob(f"**/*{ext}")]
+ files = [file for ext in extensions for file in path.rglob(f"*{ext}")]
if sort:
files = natsorted(files)