# 文字转语音 **Repository Path**: hopebj2008/python-tts ## Basic Information - **Project Name**: 文字转语音 - **Description**: 用了python的各种文字转语音(非调接口的那种,本地生成)在linux 上中文都不行,安装了语言包还是差点意思(语言包也就是各种词组在里面,如果没有就解析不出)所以还是用windows的环境,用了最简单的python 的flask包直接搞个接口调 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2022-10-20 - **Last Updated**: 2022-10-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 起因 # 用了python的各种文字转语音(非调接口的那种,本地生成)在linux 上中文都不行,安装了语言包还是差点意思(语言包也就是各种词组在里面,如果没有就解析不出)所以还是用windows的环境,用了最简单的python 的flask包直接搞个接口调 django版本地址:https://gitee.com/xiaohe4966/python-tts/tree/django/ # 使用说明 # 下载django项目 `git clone https://gitee.com/xiaohe4966/python-tts.git` 安装python的包 `pip install pyttsx3` windows运行命令 `set FLASK_APP=xiaohe` `flask run --host=0.0.0.0` 访问域名/tts?str=你好 # 文件说明 # xiaohe.py 主程序 static/放资源文件 http可以直接访问 tts.py 生成语音的代码示例 # 联系方式 # QQ496631085 备注说明tts