稷然如此

  • 首页
  • 文章分类
    • AI
    • Android
    • Java
    • Golang
    • Shell
    • Vue
    • C#
    • Python
    • 数据库
    • 组件
    • 其他
    • Game
  • 常用命令
    • Docker
    • Git
    • Linux
  • 操作系统
    • CentOS
    • Ubuntu
    • Windows
    • Kylin
    • Euler
  • 工具
    • IntelliJ IDEA
    • Visual Studio Code
稷然如此
不积跬步,无以至千里
  1. 首页
  2. 操作系统
  3. Windows
  4. 正文

WSL 编译语音合成器

2026年12月6日 5点热度 0人点赞
deactivate                                   # 先退出 qwen3 的 venv

mkdir -p ~/tts-build && cd ~/tts-build
python3 -m venv venv && source venv/bin/activate

# 用阿里云源(清华源对 pip 返回 403)
pip install -U pip -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
pip install -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com \
  pyinstaller "edge-tts==7.4.2"

# 源码拷到 venv 目录外层再构建(不要在 /mnt/d 下跑)
cp /mnt/d/code/java/akim-spring-boot/tools/tts/tts-cli/tts_cli.py .
python -m PyInstaller --onefile --name tts-cli \
  --collect-all edge_tts --collect-all certifi tts_cli.py

file dist/tts-cli                 # 期望:ELF 64-bit LSB executable, x86-64
./dist/tts-cli --version
./dist/tts-cli --self-test        # 期望 "edge": true
./dist/tts-cli synth --text "I am happy." --out /tmp/t.mp3 && ls -l /tmp/t.mp3
# WSL 里把产物拷到 Windows 路径
mkdir -p /mnt/d/akim/bin && cp ~/tts-build/dist/tts-cli /mnt/d/akim/bin/tts-cli
ls -lh /mnt/d/akim/bin/tts-cli
标签: 暂无
最后更新:2026年12月6日

Akim

犇 骉 古法 AI 双修者 Java、C#、Python、Go、Android、Vue、Bootstrap

点赞
< 上一篇

Copyright © 2026 aianran.com All Rights Reserved.

免责申明 | 隐私政策 | 服务条款 | 关于我们

黔ICP备2023008200号-1

贵公网安备 52010202003594号