TTS (Text-To-Speech) 命令行工具

TTS (Text-To-Speech) 命令行工具

  • 下载地址: http://www.cross-plus-a.com/bconsole.htm

列出系统中存在的语音

balcon.exe -l

以下输出来自本人的win10家庭版(运行在WSL2环境)
在这里插入图片描述

查看语音属性

./balcon.exe -n “Microsoft David Desktop” -m
在这里插入图片描述

合成语音

./balcon.exe -n “Microsoft David Desktop” -t “The text will be read slowly.” -s -5 -v 70 (-s 速度 -v 音量)

合成语音并输出到音频文件

./balcon.exe -n “Microsoft David Desktop” -t “The text will be read slowly.” -s -5 -v 70 -w out.wav

由剪贴板获取内容

Get text from the clipboard, apply rules for the pronunciation correction and read aloud:

./balcon.exe -n “Microsoft David Desktop” -c -d “d:\rex\rules.rex” -d “d:\dic\rules.dic”

由标准输入读入,生成音频文件和LRC文件

./balcon.exe -n “Microsoft David Desktop” -w “book.wav” -i -lrc --lrc-length 80 --lrc-title “The Lord of the Rings”

转换字幕文件到音频

./balcon.exe -n “Microsoft David Desktop” -f “Text\film.srt” -w “Sound\film.wav” --sub-fit --sub-max 2

调用lame生成mp3文件

./balcon.exe -n “Microsoft David Desktop” -f d:\book.txt -n Heather -o --raw | lame -r -s 22.05 -m m -h - book.mp3

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值