Respected, I have python code gTTS
from gtts import gTTS
import os
fh=open("test.txt","r")
mytext=fh.read().replace("\n","")
language="en"
output=gTTS(text=mytext, lang=language,slow=False)
output.save("output.mp3")
fh.close()
os.system("start output.mp3")
save as in folder htdocs/website/text_to_speech.py
My question is that it's run perfect on IDE python and execute output.mp3 file
i want to excute this file using php my php code is
$output = shell_exec("text_to_speech.py");
echo $output;
when i run this code on php nothing execute file output Looking forward for your kind support Thank you