Hi all I am trying to do text to speech. I have tried a few python modules I have tried the pyttsx and system modules
I would like to know if there is a way to get either of these modules to read the contents of a variable.
name = bob
import pyttsx
engine = pyttsx.init()
engine.say("my name is",name)
engine.runAndWait()
what I am trying to do above does no work it just reads the string and quits after that. Is there a way to make this module read the string and the variable ?
same thing with system.
from os import system
system("say hello my name is",name)