google-cloud-texttospeech
Google Cloud Texttospeech API client library
Decision gist · record as of 2026-08-14
Yes, if you need text-to-speech synthesis and are already using Google Cloud services or willing to set up a project. The library is production-stable, actively maintained, has no vulnerabilities, and integrates cleanly with Google's authentication and billing infrastructure. Install friction is low. The main prerequisite is a Google Cloud project with billing enabled.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a Google Cloud project with the Text-to-Speech API enabled, billing configured, and valid authentication credentials (typically via GOOGLE_APPLICATION_CREDENTIALS environment variable or Application Default Credentials).
- Low install friction with a pure-Python wheel.
- Maintained actively with a recent release 53 days ago.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), allowing use in commercial and open-source projects with minimal restrictions beyond attribution.
last release 2026-06-22 (53 days) · last repo commit 2026-08-14 · 5,371 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 127,459,338 downloads/mo, #294 on PyPI
Alternatives
Verify before relying
pip install google-cloud-texttospeech
from google.cloud import texttospeech
client = texttospeech.TextToSpeechClient()
input_text = texttospeech.SynthesisInput(text="Hello world")
voice = texttospeech.VoiceSelectionParams(language_code="en-US")
audio_config = texttospeech.AudioConfig(audio_encoding=texttospeech.AudioEncoding.MP3)
response = client.synthesize_speech(input=input_text, voice=voice, audio_config=audio_config)- Whether the package requires Google Cloud project setup and billing before making API calls beyond authentication setup
- Latency and cost characteristics for different voice models and audio formats
- Whether audio output formats and voice options are documented in the fact sheet
What it is and what it does
This is the official Google Cloud Text-to-Speech Python client library. It wraps the Google Cloud Text-to-Speech API, allowing you to send text to Google's servers and receive synthesized speech audio in return. The library handles authentication, request formatting, and response parsing through standard Google Cloud client patterns.
You'll need a Google Cloud project with the Text-to-Speech API enabled and billing configured. The library requires Python 3.10 or later and depends on google-api-core, google-auth, grpcio, proto-plus, and protobuf for communication with the service. It's actively maintained and widely used, with no known security vulnerabilities.
Use it for
- Build voice-enabled applications that read text aloud in multiple languages and voices
- Generate audio narration for videos, podcasts, or accessibility features in web applications
- Create interactive voice response (IVR) systems or chatbots that speak responses to users
- Batch-process large volumes of text into speech for content distribution or archival
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need text-to-speech synthesis and are already using Google Cloud services or willing to set up a project.
The library is production-stable, actively maintained, has no vulnerabilities, and integrates cleanly with Google's authentication and billing infrastructure. Install friction is low. The main prerequisite is a Google Cloud project with billing enabled.
Install
google-cloud-texttospeech on PyPI
Before you install
Low install friction with a pure-Python wheel. Maintained actively with a recent release 53 days ago. Depends on standard Google Cloud libraries (google-api-core, google-auth, grpcio, proto-plus, protobuf), all widely used.
Requires a Google Cloud project with the Text-to-Speech API enabled, billing configured, and valid authentication credentials (typically via GOOGLE_APPLICATION_CREDENTIALS environment variable or Application Default Credentials).
License in practice
Licensed under Apache-2.0 (permissive), allowing use in commercial and open-source projects with minimal restrictions beyond attribution.
Quickstart
pip install google-cloud-texttospeech
from google.cloud import texttospeech
client = texttospeech.TextToSpeechClient()
input_text = texttospeech.SynthesisInput(text="Hello world")
voice = texttospeech.VoiceSelectionParams(language_code="en-US")
audio_config = texttospeech.AudioConfig(audio_encoding=texttospeech.AudioEncoding.MP3)
response = client.synthesize_speech(input=input_text, voice=voice, audio_config=audio_config)
Verify before relying
- Whether the package requires Google Cloud project setup and billing before making API calls beyond authentication setup
- Latency and cost characteristics for different voice models and audio formats
- Whether audio output formats and voice options are documented in the fact sheet
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packagesgoogle-api-coregoogle-authgrpcioproto-plusprotobuf |
| Maintenance | Actively maintained 53 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 127,459,338 / month, #294 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Internet |
Evidence: google_cloud_texttospeech-2.37.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “text to speech api client”
- google-cloud-texttospeechProvides a Python client to Google Cloud Text-to-Speech, which…
- google-cloud-speechProvides a Python client for Google Cloud Speech-to-Text, converting…
- cartesiaCartesia is the official Python client library for the Cartesia REST…
Give your agent the search over MCP, or paste the wish link into any chat.
More Internet packages
Botocore provides low-level, data-driven access to Amazon Web Services APIs, serving as the foundation for the AWS CLI and boto3 libraries.
Install it if you need programmatic access to AWS services.
Provides an async client for AWS services using botocore and aiohttp, allowing you to call AWS APIs asynchronously within asyncio-based applications.
Install it if you need to call AWS services from async Python code; it is the standard way to do so.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.
See also google-cloud-speech · gTTS · silero · google-cloud-translate · google-cloud-language · google-cloud-video-transcoder · google-cloud-build · google-cloud-tasks · TTS · chatterbox-tts