浏览代码

Fix incoming voice message codec

Tulir Asokan 3 年之前
父节点
当前提交
2ca0f69b30
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      mautrix_instagram/portal.py

+ 1 - 1
mautrix_instagram/portal.py

@@ -687,7 +687,7 @@ class Portal(DBPortal, BasePortal):
     ) -> MediaMessageEventContent:
         async def convert_to_ogg(data, mimetype):
             converted = await ffmpeg.convert_bytes(
-                data, ".ogg", output_args=("-c:a", "libvorbis"), input_mime=mimetype
+                data, ".ogg", output_args=("-c:a", "libopus"), input_mime=mimetype
             )
             return converted, "audio/ogg"