# edge-tts-cli **Repository Path**: xkpro/edge-tts-cli ## Basic Information - **Project Name**: edge-tts-cli - **Description**: 基于 edge-tts 命令行工具打包成 exe 文件 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-10-28 - **Last Updated**: 2025-12-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 小蜜蜂语音合成 ## 使用 ```bash # 使用代理进行转换 python .\src\main.py --text "主播不在,开播的时候会在动态通知你哦" --proxy http://127.0.0.1:21882 # 同时生成音频和字幕 python .\src\main.py --text "测试文本" --proxy http://127.0.0.1:21882 --write-subtitles output.srt # 指定其他参数 python .\src\main.py --text "测试" --voice zh-CN-YunxiNeural --rate "+10%" --proxy http://127.0.0.1:21882 --write-media speech.mp3 ``` ## 创建虚拟环境 ```bash python -m venv tts ``` ## 激活虚拟环境 ```bash .\tts\Scripts\activate ``` ## 安装 edge-tts 与 pyinstaller 打包工具 ```bash pip install edge-tts pyinstaller ``` ## 打包 ```bash pyinstaller tts.spec --clean ```