mirror of
https://github.com/paul-nameless/tg
synced 2025-02-16 18:48:24 +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:
|
if _os_name == _linux:
|
||||||
VOICE_RECORD_CMD = (
|
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:
|
else:
|
||||||
VOICE_RECORD_CMD = (
|
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
|
# TODO: use mailcap instead of editor
|
||||||
|
|
Loading…
Add table
Reference in a new issue