I'm making a package for my python assistant and have found a problem.
Im importing the following program into the main script.
import os
def load() :
def tts(name) :
os.system("""PowerShell -Command "Add-Type –AssemblyName System.Speech; (New-Object System.Speech.Synthesis.SpeechSynthesizer).Speak(' """ + name + " ');"
how do i call the function into my program
ive tried :
import loadfile
loadfile.load().tts("petar")
and it didn't work
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…