Python TTS 初体验

张喆坤 / 2023-06-23 / 原文

最近有个需求

由于刚入职公司

不管是读写还是听说  

都有很大的问题

于是正好找到一本python的书

准备把他再刷一遍   

但是听力也想一起练了

怎么办呢

 TTS 

百度,讯飞,这种还要钱  不考虑了

打开gayhub  搜TTS 

GitHub - coqui-ai/TTS: 🐸💬 - 用于文本到语音转换的深度学习工具包,在研究和生产中经过实战测试

就觉得是你了

 

 哈哈哈不折腾了用现成的强烈推荐这个开源软件  语音源选择搜狗的 特别甜的女声!!

GitHub - InkTimeRecord/TTime: 🚀 A concise, efficient, good-looking input, screenshot, and word translation software

 

========================================================

刚刚安装的时候遇到个问题   还好解决了  还是继续研究下把

check.warn(importable)
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for TTS

解决方法:安装ms tool

 

 

 

 

 

 

好的

接下来就是见证奇迹的时刻 试下这个实例代码