Skip to content

Industry leading face manipulation platform

Add audio encoders pcm_s16le and pcm_s32le

henryruhsd03e3b3ed764
diff --git a/facefusion/choices.py b/facefusion/choices.py
index b95f4b28..c4e27f1d 100755
--- a/facefusion/choices.py
+++ b/facefusion/choices.py
@@ -68,7 +68,7 @@ temp_frame_formats : List[ImageFormat] = [ 'bmp', 'jpeg', 'png', 'tiff' ]
output_encoder_set : EncoderSet =\
{
- 'audio': [ 'aac', 'libmp3lame', 'libopus', 'libvorbis', 'flac' ],
+ 'audio': [ 'aac', 'libmp3lame', 'libopus', 'libvorbis', 'flac', 'pcm_s16le', 'pcm_s32le' ],
'video': [ 'libx264', 'libx265', 'libvpx-vp9', 'h264_nvenc', 'hevc_nvenc', 'h264_amf', 'hevc_amf', 'h264_qsv', 'hevc_qsv', 'h264_videotoolbox', 'hevc_videotoolbox' ]
}
output_audio_encoders : List[AudioEncoder] = output_encoder_set.get('audio')
diff --git a/facefusion/types.py b/facefusion/types.py
index 03d5bd82..2b2ea543 100755
--- a/facefusion/types.py
+++ b/facefusion/types.py
@@ -117,7 +117,7 @@ AudioTypeSet : TypeAlias = Dict[AudioFormat, str]
ImageTypeSet : TypeAlias = Dict[ImageFormat, str]
VideoTypeSet : TypeAlias = Dict[VideoFormat, str]
-AudioEncoder = Literal['aac', 'libmp3lame', 'libopus', 'libvorbis', 'flac']
+AudioEncoder = Literal['aac', 'libmp3lame', 'libopus', 'libvorbis', 'flac', 'pcm_s16le', 'pcm_s32le']
VideoEncoder = Literal['libx264', 'libx265', 'libvpx-vp9', 'h264_nvenc', 'hevc_nvenc', 'h264_amf', 'hevc_amf', 'h264_qsv', 'hevc_qsv', 'h264_videotoolbox', 'hevc_videotoolbox']
EncoderSet = TypedDict('EncoderSet',
{