Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
e374daca by Kevin Otte at 2026-04-06T20:15:49+00:00
imprv: Voice messages: Reduce bitrate for Opus encoded voice messages

- - - - -


1 changed file:

- gajim/gtk/voice_message_recorder.py


Changes:

=====================================
gajim/gtk/voice_message_recorder.py
=====================================
@@ -111,6 +111,7 @@ def _init_pipeline(self) -> None:
         assert self._filesink is not None
 
         opusenc.set_property("audio-type", "voice")
+        opusenc.set_property("bitrate", 32000)
         audiolevel.set_property("message", True)
         self._filesink.set_property("location", str(self._file_path))
         self._filesink.set_property("async", False)
@@ -445,7 +446,7 @@ def _merge_opus_m4a_command(self) -> str:
                 "queue",
                 "audioconvert",
                 "audioresample",
-                "opusenc audio-type=voice",
+                "opusenc audio-type=voice bitrate=32000",
                 "mp4mux ",
                 f"filesink location={self._file_path.as_posix()} {sources}",
             ]



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/e374daca2417e3b831ac7b332fd39c964a7a57e3

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/e374daca2417e3b831ac7b332fd39c964a7a57e3
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to