From 22e7ba18a67d90549c5472687998a1a9e90568bd Mon Sep 17 00:00:00 2001 From: Alexander Zveruk Date: Tue, 30 Jun 2020 01:00:43 +0300 Subject: [PATCH] Change default ffmpeg cmd for Linux --- tg/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tg/config.py b/tg/config.py index 50278b5..b318618 100644 --- a/tg/config.py +++ b/tg/config.py @@ -36,8 +36,9 @@ NOTIFY_CMD = "/usr/local/bin/terminal-notifier -title {title} -subtitle {subtitl HELP_CMD = "less" if _os_name == _linux: + # for more info see https://trac.ffmpeg.org/wiki/Capture/ALSA VOICE_RECORD_CMD = ( - "ffmpeg -f alsa -i default -c:a libopus -b:a 32k {file_path}" + "ffmpeg -f alsa -i hw:0 -c:a libopus -b:a 32k {file_path}" ) else: VOICE_RECORD_CMD = (