Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97327

how to fix ImportError: DLL load failed while importing win32api: The specified module could not be found

$
0
0

When i run the following code the error is generate.I had try by install same architecture X64-bit as my operating system and also install X32-bit . But it again gives me a error

import pyttsx3


engine = pyttsx3.init('sapi5')
voices = engine.getProperty('voices')
print(voices[0].id)
engine.setProperty('voice',voices[0].id)


def speak(audio):
    engine.say(audio)
    engine.runAndWait()


if __name__ == "__main__":
    speak("harry is a boy")

Viewing all articles
Browse latest Browse all 97327

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>