python text to speech using pyttsx

前端 未结 3 1428
别那么骄傲
别那么骄傲 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
    
    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2021-01-01 13:08

    If you're using Ubuntu, Use this

    sudo apt install libespeak1
    
    0 讨论(0)
提交回复
热议问题