环境linux+python3.6

sudo pip install pyttsx3
 sudo apt-get install espeak

代码实例

import pyttsx
engine = pyttsx.init()
engine.say('hello world')
engine.say('你好吗')
engine.runAndWait()

相关文章:

  • 2021-05-29
  • 2023-02-08
  • 2021-12-26
  • 2022-12-23
  • 2021-09-03
  • 2021-07-16
  • 2022-02-09
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-13
  • 2021-12-22
  • 2021-11-02
  • 2021-11-13
  • 2021-08-24
  • 2021-10-09
相关资源
相似解决方案