Google Cloud Text-to-Speech는 개발자가 100개 이상의 음성으로 자연스러운 음성을 합성할 수 있도록 지원하며, 여러 언어와 변형으로 제공됩니다. DeepMind의 획기적인 WaveNet 연구와 Google의 강력한 신경망을 적용하여 가능한 최고의 충실도를 제공합니다. 영어, 독일어, 폴란드어, 스페인어, 이탈리아어, 프랑스어, 포르투갈어, 힌디어를 포함한 여러 언어를 지원합니다.
이 노트북은 Google Cloud Text-to-Speech API와 상호작용하여 음성 합성 기능을 구현하는 방법을 보여줍니다. 먼저 Google Cloud 프로젝트를 설정해야 합니다. 여기의 지침을 따를 수 있습니다.
!pip install -U langchain-google-community[texttospeech]

Instantiation

from langchain_google_community import TextToSpeechTool

더 이상 사용되지 않는 GoogleCloudTextToSpeechTool

from langchain_community.tools import GoogleCloudTextToSpeechTool
text_to_speak = "Hello world!"

tts = GoogleCloudTextToSpeechTool()
tts.name
오디오를 생성하고 임시 파일에 저장한 다음 재생할 수 있습니다.
speech_file = tts.run(text_to_speak)

Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.
I