pyttsx3 is a python text-to-speech conversion library. Study with the subject of bodybuilding. It is more motivating to use what you are interested in.
https://pypi.org/project/pyttsx3/ https://coolfitness.jp/bodybuilding_kakegoe/
install import
pip install pyttsx3
import pyttsx3
Uninflected word
engine = pyttsx3.init()
engine.say("It's out") #Words you want to output
engine.runAndWait()
Adjustment
engine = pyttsx3.init()
#rate The default value is 200
rate = engine.getProperty('rate')
engine.setProperty('rate',200)
#volume Default value is 1.0, setting is 0.0~1.0
volume = engine.getProperty('volume')
engine.setProperty('volume',1.0)
engine.say("It's out")
engine.runAndWait()
Try
import pyttsx3
engine = pyttsx3.init()
#Referenced words
words = ["Abdominal muscles, chocolate bar!","Nice bulk!","It's huge! I can't see anything else!",
"The foundation is different, the foundation!","It's huge!","It's out!","Crunchy",
"It's finished!","Triangular choco pie!","Abs grenade!",
"Abdominal muscle torn bread!","I want to grate the radish with the oblique muscles!","The legs are walking!",
"Great Ketsupuri!","The calf is huge!","My chest looks like a butt!",
"My chest is torn!","Feathers grow on my back!","I want to jump into the sky!",
"There is a demon on his back!","Christmas tree on the back!",
"Nice biceps! Everest!","Santo is also good ~",
"Shoulder melon!","Do you have a small jeep on your shoulder?"]
rate = engine.getProperty("rate")
engine.setProperty("rate",200)
volume = engine.getProperty('volume')
engine.setProperty('volume',1.0)
#Output of referenced words
for word in words:
engine.say(word)
engine.runAndWait()
I can't read kanji correctly, but it seems that people who are not good at Japanese are speaking. I'm personally satisfied.
Recommended Posts