pyttsx3 initialization error, can't use pyttsx3

前端 未结 6 493
情话喂你
情话喂你 2021-01-22 03:08

I was having some problems when using the .getproperty(\'voices\') attribute in pyttsx3. So I decided to uninstall it and then re-install it using PIP to see if that may fix the

6条回答
  •  南方客
    南方客 (楼主)
    2021-01-22 04:01

    I hope you are trying to install pyttsx3 from https://pypi.org/project/pyttsx3/.

    were you able to execute pip install pyttsx3 with out any issues? Are you trying to run the above code from jupyter? if yes then, please don't run the complete code at a time i.e the below code

    import pyttsx3
    engine = pyttsx3.init()
    engine.say("I will speak this text")
    engine.runAndWait()
    

    first run import pyttsx3 alone and thern try to put up your code one by one. I have faced similar issue earlier many times while running it on diferent systems. I don't know why this issue shows up but the above steps will surely do resolve the issue.

提交回复
热议问题