-3

I am an absolute beginner in python. I was trying to make jarvis from youtube videos. But they told to install pyttsx3 through pip and I also installed it but it is not working on visual studio code it is showing import error and syntax error. Can you guys help me out from this.

4

1 回答 1

-2

Welcome to stack overflow!

At the command-line:

pip install pyttsx3

In your code:

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

More info: https://pypi.org/project/pyttsx3/

If you get a specific error message, please update the question with the full source code and the stack-trace.

于 2021-06-28T17:36:18.213 回答