Fellow Python Users,
I want to put several words in a list. Then tell Python to say the word.
I did some searches on text to speech. I found 2 lines of code which do not work. Does anyone have an idea of what is wrong?
I have no idea what the file ran.py is.
I want to put several words in a list. Then tell Python to say the word.
I did some searches on text to speech. I found 2 lines of code which do not work. Does anyone have an idea of what is wrong?
#This is a way to use text to speech from a windows PC from win32com.client import Dispatch speak = Dispatch("SAPI.SpVoice") speak.Speak("Ciao")
#This is a way to use text to speech if you have windows 10 and Python 3 import win32com.client as wincl speak = wincl.Dispatch("SAPI.SpVoice") speak.Speak("This is the pc voice speaking")The error message I get is: C:\Users\Joe\AppData\Local\Programs\Python\Python38-32\python.exe: can't open file 'C:/Users/Joe/PycharmProjects/myproj.py/ran.py': [Errno 2] No such file or directory
I have no idea what the file ran.py is.