pyttsx: No module named 'engine'

前端 未结 7 1286
青春惊慌失措
青春惊慌失措 2020-12-03 01:02

I\'m trying to install TTS package by using this. Everything was okay until I tried to execute the following command:

import pyttsx

I got b

7条回答
  •  有刺的猬
    2020-12-03 02:03

    I used this code after

    pip install pywin32 pypiwin32 pyttsx3
    

    and it worked perfectly for me

    import os
    import sys
    import pyttsx3
    
    engine = pyttsx3.init()
    engine.say('hello world ')
    engine.runAndWait()
    

提交回复
热议问题