Stay organized with collections
Save and categorize content based on your preferences.
Text-to-Speech is an API that is powered by Google's artificial intelligence
(AI) technology. You send your transcript data to Text-to-Speech in an API
call, then receive natural-sounding, synthetic human speech as playable audio in
response. For more information on how Text-to-Speech works, see the
basics page.
We provide code samples that show you how to
make a request to the API and receive a response. You can learn how to use
these samples by following the Text-to-Speech
quickstarts and
how-to guides.
This guide walks you through the steps necessary to start sending requests to
the Text-to-Speech API.
Overview
Before you can begin using Text-to-Speech, you must enable the API in the
Google Cloud Platform Console. The steps below walk you through the
following actions:
Enable Text-to-Speech on a project.
Make sure billing is enabled for Text-to-Speech.
Set up authentication for your development environment.
You can either choose an existing project or create a new one. For more
details about creating a project, please see the
Google Cloud Platform documentation.
If you create a new project, you will be prompted to link a billing account
to this project. If you are using a pre-existing project, make sure that you
have billing enabled.
Once you have selected a project and linked it to a billing account, you
can enable the Text-to-Speech API. Go to the Search products and
resources bar at the top of the page and type in "speech". Select the
Cloud Text-to-Speech API from the list of results.
To try Text-to-Speech without linking it to your project, choose
the TRY THIS API option. To enable the Text-to-Speech API for use
with your project, click ENABLE.
To disable the Text-to-Speech API, navigate to your Google Cloud Platform
dashboard and click on the Go to APIs overview link in the APIs box.
Click on the Text-to-Speech API, then select the DISABLE API button at the top
of the page.
[[["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-08-28 UTC."],[],[],null,["# Before You Begin\n\nText-to-Speech is an API that is powered by Google's artificial intelligence\n(AI) technology. You send your transcript data to Text-to-Speech in an API\ncall, then receive natural-sounding, synthetic human speech as playable audio in\nresponse. For more information on how Text-to-Speech works, see the\n[basics](/text-to-speech/docs/basics) page.\n\nWe provide [code samples](/text-to-speech/docs/samples) that show you how to\nmake a request to the API and receive a response. You can learn how to use\nthese samples by following the Text-to-Speech\n[quickstarts](/text-to-speech/docs/quickstarts) and\n[how-to guides](/text-to-speech/docs/how-to).\n\nThis guide walks you through the steps necessary to start sending requests to\nthe Text-to-Speech API.\n\nOverview\n--------\n\nBefore you can begin using Text-to-Speech, you must enable the API in the\nGoogle Cloud Platform Console. The steps below walk you through the\nfollowing actions:\n\n- Enable Text-to-Speech on a project.\n- Make sure billing is enabled for Text-to-Speech.\n- Set up authentication for your development environment.\n\nSet up your Google Cloud Platform project\n-----------------------------------------\n\n1. [Sign in to Google Cloud console](https://console.cloud.google.com/)\n\n2. [Go to the project selector page](https://console.cloud.google.com/projectselector2/home/dashboard)\n\n You can either choose an existing project or create a new one. For more\n details about creating a project, please see the\n [Google Cloud Platform documentation](/resource-manager/docs/creating-managing-projects).\n3. If you create a new project, you will be prompted to link a billing account\n to this project. If you are using a pre-existing project, make sure that you\n have billing enabled.\n\n [Learn how to confirm that billing is enabled for your project](/billing/docs/how-to/modify-project)\n | **Note:** You must enable billing to use Text-to-Speech API, however you will not be charged unless you exceed the free quota. See the [pricing](/text-to-speech/pricing) page for more details.\n4. Once you have selected a project and linked it to a billing account, you\n can enable the Text-to-Speech API. Go to the **Search products and\n resources** bar at the top of the page and type in **\"speech\"** . Select the\n **Cloud Text-to-Speech API** from the list of results.\n\n5. To try Text-to-Speech without linking it to your project, choose\n the **TRY THIS API** option. To enable the Text-to-Speech API for use\n with your project, click **ENABLE**.\n\n6. Set up authentication for your development environment. For instructions, see\n [Set up authentication for Text-to-Speech](/text-to-speech/docs/authentication#authn-how-to).\n\nDisable the Text-to-Speech API\n------------------------------\n\nTo disable the Text-to-Speech API, navigate to your Google Cloud Platform\ndashboard and click on the **Go to APIs overview** link in the **APIs** box.\nClick on the Text-to-Speech API, then select the **DISABLE API** button at the top\nof the page.\n\nWhat's next\n-----------\n\nLearn how to send a transcription request to the Text-to-Speech API using\n[client libraries](/text-to-speech/docs/create-audio-text-client-libraries) or the\n[command line](/text-to-speech/docs/create-audio-text-command-line)."]]