python text to speech using pyttsx

前端 未结 3 1495
别那么骄傲
别那么骄傲 2021-01-01 12:30

I want to use my raspberry pi to announce some text. i have installed pyttsx but not able to use it.i am using python2.7

my program:

import pyttsx
en         


        
3条回答
  •  长发绾君心
    2021-01-01 13:06

    Try this one:: Run on Ubuntu/Linux Terminal,

    1.pip install pyttsx3 ,

    2.sudo apt install libespeak1

    You must have successfully installed.

提交回复
热议问题