Skip to main content
Google Cloud Text-to-Speech enables developers to synthesize natural-sounding speech with 100+ voices, available in multiple languages and variants. It applies DeepMind’s groundbreaking research in WaveNet and Google’s powerful neural networks to deliver the highest fidelity possible. It supports multiple languages, including English, German, Polish, Spanish, Italian, French, Portuguese, and Hindi.
This notebook shows how to interact with the Google Cloud Text-to-Speech API to achieve speech synthesis capabilities. First, you need to set up a Google Cloud project. You can follow the Google Cloud Text-to-Speech setup instructions.

Instantiation

Deprecated GoogleCloudTextToSpeechTool

The langchain-community package is no longer maintained. Examples that import from langchain_community may be outdated or broken. Use with caution.
We can generate audio, save it to the temporary file and then play it.