gtts
-
Python: Google TTS 오디오 재생하기컴퓨터/파이썬 2021. 2. 17. 19:50
gTTS gTTS (Google Text-to-Speech), a Python library and CLI tool to interface with Google Translate text-to-speech API pypi.org 1. 설치 pip install gTTS pip install pydub pip install simpleaudio 2. TTS 예제 import os from glob import glob from io import BytesIO from gtts import gTTS from pydub import AudioSegment from pydub.playback import play def tts(word, toSlow=True): tts = gTTS(text=word, lang=..