mirror of
https://github.com/paul-nameless/tg
synced 2024-11-22 03:43:19 +00:00
Fix voice recording cmd: use opos codec (#70)
This commit is contained in:
parent
27a89e7745
commit
c4bebaa949
1 changed files with 2 additions and 2 deletions
|
@ -32,11 +32,11 @@ NOTIFY_CMD = "/usr/local/bin/terminal-notifier -title '{title}' -subtitle '{subt
|
|||
|
||||
if _os_name == _linux:
|
||||
VOICE_RECORD_CMD = (
|
||||
"ffmpeg -f alsa -i default -ar 22050 -b:a 32k '{file_path}'"
|
||||
"ffmpeg -f alsa -i default -c:a libopus -b:a 32k '{file_path}'"
|
||||
)
|
||||
else:
|
||||
VOICE_RECORD_CMD = (
|
||||
"ffmpeg -f avfoundation -i ':0' -ar 22050 -b:a 32k '{file_path}'"
|
||||
"ffmpeg -f avfoundation -i ':0' -c:a libopus -b:a 32k '{file_path}'"
|
||||
)
|
||||
|
||||
# TODO: use mailcap instead of editor
|
||||
|
|
Loading…
Reference in a new issue