Skip to content

Commit

Permalink
alterado a velociade e volume
Browse files Browse the repository at this point in the history
  • Loading branch information
OgliariNatan committed Jun 6, 2023
1 parent aff1a9f commit 771abfc
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions text-to-speaks.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@

# init mecanismo TTS
engine = pyttsx3.init()
# velociade da fala padrão 200
engine.setProperty("rate", 400)

# Volume, padrão 1.0
engine.setProperty("volume", 0.5)

#text to he speaks
text = "Bem vindo a conversação em python\n Um pão de batata muito louco. \n A prática leva a perfeição"

#to speak

engine.say(text)

#sleep

engine.runAndWait()

print("Concluida a conversa\n")

0 comments on commit 771abfc

Please sign in to comment.