Skip to content

Commit

Permalink
Additional formats
Browse files Browse the repository at this point in the history
  • Loading branch information
Bebra777228 committed Jan 15, 2025
1 parent 02749be commit e216da1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion audio_separator/separator/separator.py
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ def separate(self, audio_file_path, custom_output_names=None):
for root, dirs, files in os.walk(path):
for file in files:
# Check the file extension to ensure it's an audio file
if file.endswith(('.wav', '.mp3', '.flac', '.ogg', '.m4a')): # Add other formats if needed
if file.endswith((".wav", ".flac", ".mp3", ".ogg", ".opus", ".m4a", ".aiff", ".ac3")): # Add other formats if needed
full_path = os.path.join(root, file)
self.logger.info(f"Processing file: {full_path}")
try:
Expand Down
2 changes: 1 addition & 1 deletion audio_separator/utils/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def main():
for root, dirs, files in os.walk(path):
for file in files:
# Check the file extension to ensure it's an audio file
if file.endswith(('.wav', '.mp3', '.flac', '.ogg', '.m4a')): # Add other formats if needed
if file.endswith((".wav", ".flac", ".mp3", ".ogg", ".opus", ".m4a", ".aiff", ".ac3")): # Add other formats if needed
audio_files.append(os.path.join(root, file))
else:
# If the path is a file, add it to the list
Expand Down

0 comments on commit e216da1

Please sign in to comment.