Untitled.mp4
python3 -m pip install tensorflow opencv-python mediapipe sklearn matplotlib
python3 -m pip install gtts
sudo apt update
sudo apt install mpg123
processes = []
def text_to_speech(sentence):
output = gTTS(sentence, lang='en', slow=False)
output.save("output.mp3")
process = subprocess.Popen("mpg123 output.mp3", shell=True)
processes.append(process)
output = [p.wait() for p in processes]
NOTE
processes = []
def text_to_speech(sentence):
output = gTTS(sentence, lang='en', slow=False)
output.save("output.mp3")
process = subprocess.Popen("start output.mp3", shell=True)
processes.append(process)
output = [p.wait() for p in processes]