ToB企服应用市场:ToB评测及商务社交产业平台
标题:
mod_aws_transcribe
[打印本页]
作者:
来自云龙湖轮廓分明的月亮
时间:
2024-6-14 22:51
标题:
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
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
欢迎光临 ToB企服应用市场:ToB评测及商务社交产业平台 (https://dis.qidao123.com/)
Powered by Discuz! X3.4