mod_aws_transcribe

sdk 到这里下载:

https://github.com/aws/aws-sdk-cpp

sdk 下载和编译要花很长时间,步骤为:

复制代码
# FreeSWITCH 源码在 /usr/src/freeswitch 目录

# 静态编译,参考链接为:
# https://github.com/drachtio/ansible-role-fsmrf/blob/main/tasks/main.yml
# 编译需要很长时间,要有准备

cd /usr/src/freeswitch/libs
git clone --recurse-submodules --depth=1 https://github.com/aws/aws-sdk-cpp
cd aws-sdk-cpp
mkdir -p build && cd build
cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_SHARED_LIBS=OFF -DCMAKE_CXX_FLAGS="-Wno-unused-parameter -Wno-error" 
# 可以试试 make -j 4, 但需要比较多的内存
make -j 2 && make install

下一步,编译模块,可以先参考这里:

https://github.com/drachtio/drachtio-freeswitch-modules/blob/main/modules/mod_aws_transcribe/README.md

编辑 configure.ac,增加下面的内容:

复制代码
AC_ARG_WITH(aws,
   [AS_HELP_STRING([--with-aws],
     [enable support for aws-cpp-sdk])],
   [with_aws="$withval"],
   [with_aws="no"])
if test "$with_aws" = "yes"; then
  PKG_CHECK_MODULES([AWS_SDK], [aws-cpp-sdk-core aws-cpp-sdk-transcribestreaming aws-cpp-sdk-lexv2-runtime], [
      AM_CONDITIONAL([HAVE_AWS_SDK],[true])], [
      AC_MSG_RESULT([no]); AM_CONDITIONAL([HAVE_AWS_SDK],[false])])
  # AC_SUBST([AM_MOD_AWS_CXXFLAGS], [-DFREESWITCH_AWS_GLOBAL_INITIALIZATION=1]) 
else
     AM_CONDITIONAL([HAVE_AWS_SDK],[false])
fi

还要增加一行:

src/mod/applications/mod_aws_transcribe/Makefile

编辑 modules.conf.in, 增加下面一行:

applications/mod_aws_transcribe

把 src/mod/applications 设置为当前目录,把 mod_aws_transcribe 复制过来

运行 ./bootstrap.sh

运行 ./configure --with-aws=yes

现在应该可以编译 mod_aws_transcribe

参考链接:

https://github.com/drachtio/ansible-role-fsmrf

相关推荐
Elastic 中国社区官方博客10 小时前
Elastic 公共 roadmap 在此
大数据·elasticsearch·ai·云原生·serverless·全文检索·aws
TG_yunshuguoji1 天前
亚马逊云代理商:AWS 国际站缺卡新用户创建邮箱怎么选择?
安全·云计算·aws
TG_yunshuguoji1 天前
亚马逊云代理商:如何监控AWS RDS使用率并设置报警?
运维·云计算·aws
翼龙云_cloud1 天前
亚马逊云代理商:如何在 AWS 控制台上手动重启主实例?
服务器·云计算·aws
没有bug.的程序员1 天前
云服务成本优化深度进阶:AWS/Aliyun 资源监控内核、自动伸缩物理建模与 FinOps 降本实战指南
云计算·aws·finops·aliyun·自动伸缩·资源监控·物理建模
Elastic 中国社区官方博客3 天前
推出 Elastic Serverless Plus 附加组件,支持 AWS PrivateLink 功能
大数据·elasticsearch·搜索引擎·云原生·serverless·全文检索·aws
Johnny.Cheung4 天前
MLOps是什么?AWS-Azure-GCP
llm·azure·aws·mlops·gcp
sun03226 天前
【AWS】【服务】aws 中的各种服务 ,比如 ECS、S3 、EC2 、 Certicicate Manager、CloudWatch等
云计算·aws
sun03228 天前
【AWS】【ECS】部署流程
云计算·aws
七夜zippoe9 天前
分布式系统弹性设计实战:Hystrix与Sentinel熔断降级深度解析
java·hystrix·sentinel·aws·分布式系统