# -*- coding: utf-8-*-
import pyttsx3

engine = pyttsx3.init()
engine.say("哈哈哈,我很牛 ")
engine.runAndWait()

用cmd下载

pip install pyttsx3

pip install pypiwin32

再回到pycharm就可以运行出语音啦

 

用pyttsx3进行文字转化为语音

相关文章:

  • 2021-04-02
  • 2022-12-23
  • 2021-11-05
  • 2021-12-15
  • 2021-12-19
  • 2021-12-23
  • 2022-12-23
  • 2021-12-19
猜你喜欢
  • 2021-11-02
  • 2022-12-23
  • 2021-11-13
  • 2021-11-13
  • 2021-10-09
  • 2021-12-10
相关资源
相似解决方案