More flac support
This commit is contained in:
1 parent
0b9c365acb
commit
9b4e2d1b0b
1 file changed
+1
-1
@@ -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