Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Text-to-Speech ist eine API, die auf der künstlichen Intelligenz (KI) von Google basiert. Sie senden Ihre Transkriptdaten in einem API-Aufruf an Text-to-Speech und erhalten dann natürlich klingende, synthetische menschliche Sprache als Audiowiedergabe. Weitere Informationen zur Funktionsweise von Text-to-Speech finden Sie auf der Seite Grundlagen.
Wir stellen Codebeispiele bereit, die zeigen, wie Sie eine Anfrage an die API senden und eine Antwort erhalten. Informationen zur Verwendung dieser Beispiele finden Sie in den Kurzanleitungen und den Anleitungen für Text-to-Speech.
In diesem Leitfaden erfahren Sie, wie Sie Anfragen an die Text-to-Speech API senden.
Übersicht
Bevor Sie Text-to-Speech verwenden können, müssen Sie die API in der Google Cloud Platform Console aktivieren. Die unten stehenden Schritte führen Sie durch die folgenden Aktionen:
Text-to-Speech für ein Projekt aktivieren.
Die Abrechnung muss für Text-to-Speech aktiviert sein.
Richten Sie die Authentifizierung für Ihre Entwicklungsumgebung ein.
Sie können entweder ein vorhandenes Projekt auswählen oder ein neues erstellen. Weitere Informationen zum Erstellen eines Projekts finden Sie in der Google Cloud Platform-Dokumentation.
Wenn Sie ein neues Projekt erstellen, werden Sie aufgefordert, ein Abrechnungskonto mit diesem Projekt zu verknüpfen. Wenn Sie ein bereits vorhandenes Projekt verwenden, muss die Abrechnung aktiviert sein.
Nachdem Sie ein Projekt ausgewählt und mit einem Rechnungskonto verknüpft haben, können Sie die Text-to-Speech API aktivieren. Öffnen Sie oben auf der Seite die Leiste Produkte und Ressourcen suchen und geben Sie speech ein. Wählen Sie aus der Liste der Ergebnisse die Cloud Text-to-Speech API aus.
Wenn Sie Text-to-Speech testen möchten, ohne es mit Ihrem Projekt zu verknüpfen, wählen Sie die Option DIESE API TESTEN. Klicken Sie auf AKTIVIEREN, um die Text-to-Speech API für Ihr Projekt zu aktivieren.
Um die Text-to-Speech API zu deaktivieren, wechseln Sie zum Google Cloud Platform-Dashboard und klicken im Feld "APIs" auf den Link Zur API-Übersicht.
Klicken Sie auf die Text-to-Speech API und wählen Sie dann oben auf der Seite die Schaltfläche API DEAKTIVIEREN aus.
Nächste Schritte
Weitere Informationen zum Senden einer Transkriptionsanfrage an die Text-to-Speech API mit Clientbibliotheken oder über die Befehlszeile.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-08-11 (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)."]]