code
1 2 3 4 5 6 7 8 9 10 11 12 13
| import pyttsx3
def audio_english_text(file): file = open(file, 'r') text = file.readlines() engine = pyttsx3.init() for i in text: engine.say(i) engine.runAndWait() if __name__=='__main__': file = input("파일을 입력하세요 : ") audio_english_text(file)
|
Author:
Slay
Permalink:
http://sean-baek.github.io/2022/09/20/2022-09-20-python-audio-english-text/
License:
Copyright (c) 2021 CC-BY-NC-4.0 LICENSE
Slogan:
Do you believe in DESTINY?