More flac support
This commit is contained in:
@@ -1200,7 +1200,7 @@ class GenerateImageConfig:
|
|||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
raise ValueError(f"Unsupported video format {self.output_ext}")
|
raise ValueError(f"Unsupported video format {self.output_ext}")
|
||||||
elif self.output_ext in ['wav', 'mp3']:
|
elif self.output_ext in ['wav', 'mp3', 'flac', 'ogg']:
|
||||||
# save audio file
|
# save audio file
|
||||||
audio_path = self.get_image_path(count, max_count)
|
audio_path = self.get_image_path(count, max_count)
|
||||||
torchaudio.save(
|
torchaudio.save(
|
||||||
|
|||||||
Reference in New Issue
Block a user