9 lines
219 B
Python
9 lines
219 B
Python
import pyttsx3
|
|
|
|
engine = pyttsx3.init()
|
|
voices = engine.getProperty('voices')
|
|
engine.say("こんにちは")
|
|
engine.runAndWait()
|
|
engine.say("これはテキストの読み上げ機能です")
|
|
engine.runAndWait()
|