I have a problem. There are two Python files in the startup file. One of them runs seamlessly when Windows starts up, but the other one does not run automatically even though the code is correct. But interestingly, it works when I open it manually.
Code:
from playsound import playsound
from gtts import gTTS
import os
def playSound(path):
voiceMessage.save(path)
playsound(path)
os.remove(path)
vmessage = "Hello World!"
voiceMessage = gTTS(text=vmessage, lang="en", slow=False)
playSound("voicemessage.mp4")
In a nutshell>> I want run xxx.pyw
file automatically to run the file named voicemessage.mp4
. when the Windows starts up.