Install this library in avirtualenvusing pip.virtualenvis a tool to
create isolated Python environments. The basic problem it addresses is one of
dependencies and versions, and indirectly permissions.
Withvirtualenv, it’s possible to install this library without needing system
install permissions, and without clashing with the installed system
dependencies.
Supported Python Versions
Python >= 3.5
Deprecated Python Versions
Python == 2.7. Python 2.7 support will be removed on January 1, 2020.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["Version 0.5.0keyboard_arrow_down\n\n- [2.28.0 (latest)](/python/docs/reference/texttospeech/latest)\n- [2.27.0](/python/docs/reference/texttospeech/2.27.0)\n- [2.26.0](/python/docs/reference/texttospeech/2.26.0)\n- [2.25.0](/python/docs/reference/texttospeech/2.25.0)\n- [2.24.0](/python/docs/reference/texttospeech/2.24.0)\n- [2.23.0](/python/docs/reference/texttospeech/2.23.0)\n- [2.22.0](/python/docs/reference/texttospeech/2.22.0)\n- [2.21.1](/python/docs/reference/texttospeech/2.21.1)\n- [2.20.0](/python/docs/reference/texttospeech/2.20.0)\n- [2.19.0](/python/docs/reference/texttospeech/2.19.0)\n- [2.18.0](/python/docs/reference/texttospeech/2.18.0)\n- [2.17.2](/python/docs/reference/texttospeech/2.17.2)\n- [2.16.5](/python/docs/reference/texttospeech/2.16.5)\n- [2.15.1](/python/docs/reference/texttospeech/2.15.1)\n- [2.14.2](/python/docs/reference/texttospeech/2.14.2)\n- [2.13.0](/python/docs/reference/texttospeech/2.13.0)\n- [2.12.3](/python/docs/reference/texttospeech/2.12.3)\n- [2.11.1](/python/docs/reference/texttospeech/2.11.1)\n- [2.10.2](/python/docs/reference/texttospeech/2.10.2)\n- [2.9.1](/python/docs/reference/texttospeech/2.9.1)\n- [2.8.0](/python/docs/reference/texttospeech/2.8.0)\n- [2.7.1](/python/docs/reference/texttospeech/2.7.1)\n- [2.6.0](/python/docs/reference/texttospeech/2.6.0)\n- [2.5.3](/python/docs/reference/texttospeech/2.5.3)\n- [2.4.0](/python/docs/reference/texttospeech/2.4.0)\n- [2.3.0](/python/docs/reference/texttospeech/2.3.0)\n- [2.2.0](/python/docs/reference/texttospeech/2.2.0)\n- [2.1.0](/python/docs/reference/texttospeech/2.1.0)\n- [2.0.0](/python/docs/reference/texttospeech/2.0.0)\n- [1.0.3](/python/docs/reference/texttospeech/1.0.3)\n- [0.5.0](/python/docs/reference/texttospeech/0.5.0) \n\nPython Client for Cloud Text-to-Speech API\n\n[](https://github.com/googleapis/google-cloud-python/blob/master/README.rst#alpha-support) [](https://pypi.org/project/google-cloud-texttospeech/) [](https://pypi.org/project/google-cloud-texttospeech/) [](https://python-compatibility-tools.appspot.com/one_badge_target?package=google-cloud-texttospeech) [](https://python-compatibility-tools.appspot.com/one_badge_target?package=git%2Bgit%3A//github.com/googleapis/google-cloud-python.git%23subdirectory%3Dtexttospeech)\n\n[Cloud Text-to-Speech API](https://cloud.google.com/texttospeech): Synthesizes natural-sounding speech by applying\npowerful neural network models.\n\n- [Client Library Documentation](https://googleapis.dev/python/texttospeech/latest)\n\n- [Product Documentation](https://cloud.google.com/texttospeech)\n\nQuick Start\n\nIn order to use this library, you first need to go through the following steps:\n\n1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)\n\n2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)\n\n3. [Enable the Cloud Text-to-Speech API.](https://cloud.google.com/texttospeech)\n\n4. [Setup Authentication.](https://googleapis.dev/python/google-api-core/latest/auth.html)\n\nInstallation\n\nInstall this library in a [virtualenv](https://virtualenv.pypa.io/en/latest/) using pip. [virtualenv](https://virtualenv.pypa.io/en/latest/) is a tool to\ncreate isolated Python environments. The basic problem it addresses is one of\ndependencies and versions, and indirectly permissions.\n\nWith [virtualenv](https://virtualenv.pypa.io/en/latest/), it's possible to install this library without needing system\ninstall permissions, and without clashing with the installed system\ndependencies.\n\nSupported Python Versions\n\nPython \\\u003e= 3.5\n\nDeprecated Python Versions\n\nPython == 2.7. Python 2.7 support will be removed on January 1, 2020.\n\nMac/Linux \n\n pip install virtualenv\n virtualenv \u003cyour-env\u003e\n source \u003cyour-env\u003e/bin/activate\n \u003cyour-env\u003e/bin/pip install google-cloud-texttospeech\n\nWindows \n\n pip install virtualenv\n virtualenv \u003cyour-env\u003e\n \u003cyour-env\u003e\\Scripts\\activate\n \u003cyour-env\u003e\\Scripts\\pip.exe install google-cloud-texttospeech\n\nNext Steps\n\n- Read the [Client Library Documentation](https://googleapis.dev/python/texttospeech/latest) for Cloud Text-to-Speech API\n API to see other available methods on the client.\n\n- Read the [Cloud Text-to-Speech API Product documentation](https://cloud.google.com/texttospeech) to learn\n more about the product and see How-to Guides.\n APIs that we cover."]]