python text to speech using pyttsx

前端 未结 3 1503
别那么骄傲
别那么骄傲 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:05

    It's because you don't have espeak installed on your system. That's why it is giving error

    libespeak.so.1 error: no such file or directory found.

    Try to install espeak using:

    sudo apt-get update && sudo apt-get install espeak
    

提交回复
热议问题