sudo pip install pyttsx3 sudo apt-get install espeak
import pyttsx engine = pyttsx.init() engine.say('hello world') engine.say('你好吗') engine.runAndWait()