Add support for flac and opus audio format

This commit is contained in:
henryruhs
2025-02-04 21:06:51 +01:00
parent c9296de559
commit 359dddc121
2 changed files with 4 additions and 1 deletions

View File

@@ -37,9 +37,12 @@ face_mask_regions : List[FaceMaskRegion] = list(face_mask_region_set.keys())
audio_type_set : AudioTypeSet =\ audio_type_set : AudioTypeSet =\
{ {
'flac': 'audio/flac',
'm4a': 'audio/mp4', 'm4a': 'audio/mp4',
'm4v': 'audio/m4v',
'mp3': 'audio/mpeg', 'mp3': 'audio/mpeg',
'ogg': 'audio/ogg', 'ogg': 'audio/ogg',
'opus': 'audio/opus',
'wav': 'audio/x-wav' 'wav': 'audio/x-wav'
} }
image_type_set : ImageTypeSet =\ image_type_set : ImageTypeSet =\

View File

@@ -109,7 +109,7 @@ FaceMaskType = Literal['box', 'occlusion', 'region']
FaceMaskRegion = Literal['skin', 'left-eyebrow', 'right-eyebrow', 'left-eye', 'right-eye', 'glasses', 'nose', 'mouth', 'upper-lip', 'lower-lip'] FaceMaskRegion = Literal['skin', 'left-eyebrow', 'right-eyebrow', 'left-eye', 'right-eye', 'glasses', 'nose', 'mouth', 'upper-lip', 'lower-lip']
FaceMaskRegionSet = Dict[FaceMaskRegion, int] FaceMaskRegionSet = Dict[FaceMaskRegion, int]
AudioFormat = Literal['m4a', 'mp3', 'ogg', 'wav'] AudioFormat = Literal['flac', 'm4a', 'mp3', 'ogg', 'opus', 'wav']
ImageFormat = Literal['bmp', 'jpeg', 'png', 'tiff', 'webp'] ImageFormat = Literal['bmp', 'jpeg', 'png', 'tiff', 'webp']
VideoFormat = Literal['avi', 'm4v', 'mkv', 'mov', 'mp4', 'webm'] VideoFormat = Literal['avi', 'm4v', 'mkv', 'mov', 'mp4', 'webm']
TempFrameFormat = Literal['bmp', 'jpeg', 'png', 'tiff'] TempFrameFormat = Literal['bmp', 'jpeg', 'png', 'tiff']