I Tried this code here:
import win32com.client as wincl
speak = wincl.Dispatch("SAPI.SpVoice")
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!
I Also Tried the Watson TTS thing too but that doesn't work either going to check out @basicer
Sorry to say, but this won't work.
First off, Repl.it uses Linux servers, which means that the
win32com library, and
SAPI.SpVoice service both don't exist.
The other issue, is as fair as I know, Repl.it doesn't forward audio through to your browser, which means even if you could get it to speak, you probably wouldn't hear it ;-;
The third issue, is that Repl.it it probably trying to get win32com through a direct name installation, which won't work.
win32com is more recently part of the
I'm not sure this can be done with Python in it's current state...
However this might be possible with JS, I'm not sure! It depends if JS is run through the browser, or externally.