python-common-code/voice/tsx_helloworld_jpn.py
2025-03-20 10:19:41 +09:00

9 lines
219 B
Python

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