Skip to content

Commit

Permalink
Update audio2text.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperBruceJia authored Oct 30, 2024
1 parent 5466eba commit bf7276c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/audio2text.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __init__(self, file_dir):
self.file_dir = file_dir
self.audio_files = [
os.path.join(self.file_dir, filename) for filename in os.listdir(self.file_dir)
if (filename.endswith(".mp3") or filename.endswith(".m4a") or filename.endswith(".wav"))
if filename.endswith((".mp3", ".m4a", ".wav"))
]

def __len__(self):
Expand Down

0 comments on commit bf7276c

Please sign in to comment.