简体   繁体   English

如何在Linphone Android中启用G729

[英]How to enable G729 in Linphone Android

I followed the guide in the link: G729 codec for Linphone Android 我按照链接中的指南: Linphone Android的G729编解码器

And added .SO file to libs directory. 并将.SO文件添加到libs目录中。

We can built Android app on actual device, and saw G729 setting in Setting screen. 我们可以在实际设备上构建Android应用程序,并在设置屏幕中看到G729设置。

But when we disabled all of audio codec except for G729, we cannot make a call anymore. 但是当我们禁用除G729之外的所有音频编解码器时,我们再也无法拨打电话了。

Could you help me to build and integrate G729 into Linphone Android? 你能帮我构建和集成G729到Linphone Android吗?

First download latest source code of Linphone from here . 首先从这里下载Linphone的最新源代码。

After that go to project top level directory and execute followoing command: 之后转到项目顶级目录并执行followoing命令:

./prepare.py -DENABLE_NON_FREE_CODECS=ON -DENABLE_G729=ON

By default all non free codecs are disabled. 默认情况下,禁用所有非空闲编解码器。

Using above command you can enable non free codecs. 使用上面的命令可以启用非空闲编解码器。 -DENABLE_NON_FREE_CODECS=ON argument enable non free codecs & -DENABLE_G729=ON argument enable G729 codec. -DENABLE_NON_FREE_CODECS=ON参数启用非空闲编解码器& -DENABLE_G729=ON参数启用G729编解码器。

I hope it helps. 我希望它有所帮助。

In linphone we have read me file and in that they give option while we build project. 在linphone中,我们已经阅读了文件,并且在我们构建项目时它们提供了选项。 you need to give option for g729 as 1 and build the project. 你需要为g729选择为1并构建项目。

hope this will work for you. 希望这对你有用。

There are two things you need to understand here: First, the SIP server should have G729 enabled and second, you need to have G729 enabled in the app at both end (receiver and caller). 这里有两件事你需要理解:首先,SIP服务器应该启用G729;其次,你需要在应用程序的两端启用G729(接收器和呼叫者)。

To build linphone with G729, execute the following command: 要使用G729构建linphone,请执行以下命令:

make BUILD_G729=1

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM