Is there a way to transform written Dialogs into spoken Words within a game in realtime?

If possible, is it possible to
pitch,
switch,
stretch,
crunch
that row of sounds
depending the melody of the sentence
(question,
answer,
ironic note),
the voice,
whispering,
shouting,
and other ingredients of the actor's mood?