diff --git a/app/dl_formats.py b/app/dl_formats.py index 5640ca4..8618cc4 100644 --- a/app/dl_formats.py +++ b/app/dl_formats.py @@ -77,6 +77,12 @@ def get_opts(format: str, quality: str, ytdl_opts: dict) -> dict: "preferredquality": 0 if quality == "best" else quality, } ) + + # Add voice mono settings for MP3 + if format == "mp3" and quality == "voice_mono": + opts["postprocessor_args"] = { + "ffmpeg": ["-ac", "1", "-ar", "22050", "-q:a", "8"] + } # Audio formats without thumbnail if format not in ("wav") and "writethumbnail" not in opts: diff --git a/ui/src/app/formats.ts b/ui/src/app/formats.ts index 3e79ec1..38df2bf 100644 --- a/ui/src/app/formats.ts +++ b/ui/src/app/formats.ts @@ -55,6 +55,7 @@ export const Formats: Format[] = [ { id: '320', text: '320 kbps' }, { id: '192', text: '192 kbps' }, { id: '128', text: '128 kbps' }, + { id: 'voice_mono', text: 'Voice Mono' }, ], }, {