Text to spech python, Help
EricBromstead (7)

I Tried this code here:

import win32com.client as wincl
speak = wincl.Dispatch("SAPI.SpVoice")
speak.Speak("Hello World")

but I get the error:

Repl.it: package installation failure

Traceback (most recent call last):
File "python", line 1, in <module>
ModuleNotFoundError: No module named 'win32com'

This error seems to be happening in even the other text to speech repls such as https://repl.it/@Kingsley005/Python-Text-to-Speech

Any help is appreciated!

EDIT:

I Also Tried the Watson TTS thing too but that doesn't work either going to check out @basicer

You are viewing a single comment. View All
EricBromstead (7)

@pyelias Ok well I tried the Linux one anyway: (Just in case)

import pyttsx
engine = pyttsx.init()
engine.say('Good morning.')
engine.runAndWait()

And now I get this:

Traceback (most recent call last):
File "python", line 1, in <module>
ModuleNotFoundError: No module named 'engine'

Is there a way to fix this or is there really NO WAY to get repl.it to make sounds... if so that sucks :(