DEV Community

Mohammad Alsuwaidi
Mohammad Alsuwaidi

Posted on

Fast text to speech python

i've written a code that can turn text into speech using the os system in python

it's a simple 3 line code



# Text to speech
import os

text = raw_input("ENTER ANYTHING: ")

os.system("say %s" % text)
Enter fullscreen mode Exit fullscreen mode

Top comments (0)