Jul-01-2020, 01:02 AM
The file ciao is in the directory \Users\Joe\PycharmProjects\Myproject So I did the following 2 command prompts commands from that directory.
C:\Users\Joe\PycharmProjects\Myproject>more ciao.py
#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")
C:\Users\Joe\PycharmProjects\Myproject>python ciao.py
So for the first command it showed what my code is.
And the second command did work & I heard the word "ciao".
I am wondering if it has to do if how I have my interpreter set up in Pycharm.
C:\Users\Joe\PycharmProjects\Myproject>more ciao.py
#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")
C:\Users\Joe\PycharmProjects\Myproject>python ciao.py
So for the first command it showed what my code is.
And the second command did work & I heard the word "ciao".
I am wondering if it has to do if how I have my interpreter set up in Pycharm.