python say command code example
Example 1: say command python
#pip install say
from say import *
x, nums, name = 12, list(range(4)), 'Fred'
say("There are {x} things.")
say("Nums has {len(nums)} items: {nums}")
say("Name: {name!r}")
Example 2: how to make python speak
from win32com.client import Dispatch
speak = Dispatch("SAPI.SpVoice")
speak.Speak("Ciao")
Example 3: how to say something python
###Say Hello World!!!
print("Hello World!!!")