当前位置: 首页 > news >正文

FreeSWITCH 简单图形化界面45 - 收集打包的一些TTS

FreeSWITCH 简单图形化界面45 - 收集打包的一些TTS

  • 0、一个fs的web配置界面预览
  • 1、docker地址
  • 2、使用
    • 2.1 下载
    • 2.2 运行
  • 3、例子
  • 4、可以搭配FreeSWITCH mod_tts_command模块使用


0、一个fs的web配置界面预览

http://myfs.f3322.net:8020/
用户名:admin,密码:admin

FreeSWITCH界面安装参考:https://blog.csdn.net/jia198810/article/details/137820796

1、docker地址

registry.cn-hangzhou.aliyuncs.com/pbx/sherpa-kokoro-tts  latest      956 MB
registry.cn-hangzhou.aliyuncs.com/pbx/piper-tts          latest      459 MB
registry.cn-hangzhou.aliyuncs.com/pbx/kokoro-tts         latest      6.93 GB
registry.cn-hangzhou.aliyuncs.com/pbx/tts-eula           latest      693 MB
registry.cn-hangzhou.aliyuncs.com/pbx/tts-ll             latest      690 MB
registry.cn-hangzhou.aliyuncs.com/pbx/tts-aishell3       latest      768 MB
registry.cn-hangzhou.aliyuncs.com/pbx/tts-melo           latest      746 MB
registry.cn-hangzhou.aliyuncs.com/pbx/melo-onnx-tts      latest      1.68 GB

2、使用

2.1 下载

# 下载对应的tts地址
podman pull registry.cn-hangzhou.aliyuncs.com/pbx/piper-tts

2.2 运行

# tts-aishell3 中文     174个speakers   0-173. 
# vits-icefall-zh-aishell3podman run -itd -v /tmp:/tmp/  --name tts-aishell3  tts-aishell3 bash 
podman exec -it tts-aishell3 /root/tts.sh 4 1 1.3 0.5 1 /tmp/output11.wav "我是一个中国人,我热爱我的国家"# 速度慢
# tts-melo     中英文   1个speakers 0
# vits-melo-tts-zh_enpodman run -itd -v /tmp:/tmp/  --name tts-melo  tts-melo bash
podman exec -it tts-melo /root/tts.sh 4 1 1.3 0.5 1 /tmp/output11.wav "我是一个中国人,我热爱我的国家"# 速度还行  中文 5个speakers  0-5
# sherpa-onnx-vits-zh-ll
podman run -itd -v /tmp:/tmp/  --name tts-ll  tts-ll bash
podman exec -it tts-ll /root/tts.sh 4 1 1.3 0.5 1 /tmp/output11.wav "我是一个中国人,我热爱我的国家"# 速度还行  中文  804 个speakers 0-803
podman run -itd -v /tmp:/tmp/  --name tts-eula  tts-eula bash
podman exec -it tts-eula /root/tts.sh 4 1 1.3 0.5 1 /tmp/output11.wav "我是一个中国人,我热爱我的国家"# Kokoro-tts  
podman run -itd -v /tmp:/tmp/  --name kokoro-tts  kokoro-tts
podman exec -it kokoro-tts /root/tts.sh zf_xiaoxiao /tmp/output.wav "我是一个中国人,我爱我的国家"# Piper-tts x_low小模型 medium中模型,脚本第一个参数可替换
podman run -itd -v /tmp/:/tmp/ --name piper-tts piper-tts
podman exec -it piper-tts /root/tts.sh medium output2.wav "我是一个中国人,现在时间是2025年5月28日 22:06:48"# sherpa-kokoro-tts 中文 + 英文, 53 人(相比上面的少一个噪音参数)
podman run -itd -v /tmp/:/tmp/ --name sherpa-kokoro-tts sherpa-kokoro-tts
podman exec -it sherpa-kokoro-tts /root/tts.sh 4 1 1.3 2 /tmp/output11.wav "我是一个中国人,我热爱我的国家"
#用法: /root/tts.sh <线程数> <说话人ID> <速度(默认1)> <最大同时处理句子数(默认1)> <输出文件名> <TTS内容># melotts-onnx   1个speaker
podman run -itd -v /tmp/:/tmp/  --name melo-onnx-tts melo-onnx-tts
podman exec -it melo-onnx-tts /root/tts.sh 4 CPU /tmp/test.wav "我是一个中国人,我爱我的国家"
# 用法: /root/tts.sh <线程数:4> <推理设备:CPU/CUDA> <输出文件名> <TTS内容>

3、例子

root@xiaojia-ts /h/xiaojia# podman pull registry.cn-hangzhou.aliyuncs.com/pbx/piper-tts                            (base) Trying to pull registry.cn-hangzhou.aliyuncs.com/pbx/piper-tts:latest...
Getting image source signatures
Copying blob 5b4de9788e44 done   | 
Copying blob 31a9d0a6b8df done   | 
Copying blob 095f960760ee done   | 
Copying config fbd6a8c48e done   | 
Writing manifest to image destination
fbd6a8c48ea1709ef118c27e439dfcd607d8b986be67255957a312553798adad
root@xiaojia-ts /h/xiaojia# podman run -itd -v /tmp/:/tmp/ --name piper-tts piper-tts                              (base) 
04dda59fe74dc0601906ec573215fec501d738811d80a6771fe6ebfcda61a353
root@xiaojia-ts /h/xiaojia# podman exec -it piper-tts /root/tts.sh medium output2.wav "我是一个中国人,现在时间是2025年5月28日 22:06:48"
[2025-07-24 20:35:09.154] [piper] [info] Loaded voice in 0.506343748 second(s)
[2025-07-24 20:35:09.155] [piper] [info] Initialized piper
/tmp/output2.wav
[2025-07-24 20:35:09.613] [piper] [info] Real-time factor: 0.06753219112174243 (infer=0.434362153 sec, audio=6.431927437641724 sec)
[2025-07-24 20:35:09.613] [piper] [info] Terminated piper
root@xiaojia-ts /h/xiaojia# ls /tmp/                                                                               (base) 
fish.root/  OneCaller.js  output2.wav  RustDesk/  snap-private-tmp/
root@xiaojia-ts /h/xiaojia# sz /tmp/output2.wav                                                                    (base) 
root@xiaojia-ts /h/xiaojia#                           

4、可以搭配FreeSWITCH mod_tts_command模块使用

mod_tts_command用的是tmp目录,
可参考该模块使用方法。
https://blog.csdn.net/jia198810/article/details/132521379?spm=1011.2415.3001.5331

祝君成功,好运连连

http://www.dtcms.com/a/295796.html

相关文章:

  • 复矩阵与共轭转置矩阵乘积及其平方根矩阵
  • 【建模与仿真】融合共现网络特征与知识增强语义梯度提升电子邮件分类
  • HttpServletRequest深度解析:Java Web开发的核心组件
  • LLM中的位置嵌入矩阵(Position Embedding Matrix)是什么
  • [语言模型训练]基于 PyTorch 的双向 LSTM 文本分类器实现:基于旅店的评论分类语言模型
  • LeetCode 2563.统计公平数对的数目
  • Edwards爱德华泵软件 支持nEXT85和nXDS系列泵,包括nXRi, nRVi和nXLi增强型 nEXT nXDS nXLi
  • 【自动化测试】JMeter+Jenkins自动化接口与性能测试环境部署指南
  • Java学习第七十部分——微服务架构
  • JavaWeb_原始项目初识(一)
  • ubuntu25.04+4070+cuda+docker安装
  • 进程通信————命名管道
  • Python-初学openCV——图像预处理(二)
  • 怎么样知道服务端是否支持sse服务?
  • 在 Ubuntu 20.04 上轻松安装和使用中文输入法
  • ZooKeeper 是什么?
  • day20 双向链表
  • 基于CloudBase+React+CodeBudddy的云上智能睡眠应用开发实践
  • 网易大模型算法面经总结第一篇
  • uni-app小程序云效持续集成
  • C++ - 仿 RabbitMQ 实现消息队列--服务端核心模块实现(三)
  • MYSQL中NOT IN和NOT EXISTS
  • vscode 的 settings.json
  • Go语言管道Channel通信教程
  • Lua(table)
  • 数据库集群环境漏洞修复
  • Vue-23-通过flask接口提供的数据使用plotly.js绘图(二)
  • Python爬虫实战:与dominoup.com平台结合的域名数据分析系统
  • 【数据可视化-72】苏超第七轮战罢:黑金大屏下的足球数据洞察(含完整代码、数据和大屏)
  • Windows 如何更改 ModelScope 的模型下载缓存位置?