Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Créer du contenu audio à partir de texte en utilisant la console
Ce guide de démarrage rapide présente la console Cloud Text-to-Speech. Dans ce guide de démarrage rapide, vous allez créer du contenu audio à partir de texte et apprendre à lire, télécharger et mettre à jour ce contenu audio pour vos propres applications.
Avant de pouvoir utiliser la console Text-to-Speech, vous devez activer l'API dans la console Google Cloud . Les étapes ci-dessous vous guident à travers les actions suivantes :
Activez Text-to-Speech sur un projet.
Vérifiez que la facturation est activée pour Text-to-Speech.
Vous pouvez sélectionner un projet existant ou en créer un. Pour en savoir plus sur la création d'un projet, consultez la documentation Google Cloud Platform.
Si vous créez un projet, vous serez invité à y associer un compte de facturation. Si vous utilisez un projet préexistant, assurez-vous que la facturation est activée.
Une fois que vous avez sélectionné un projet et que vous l'avez associé à un compte de facturation, vous pouvez activer l'API Text-to-Speech. Accédez à la barre Rechercher des produits et des ressources en haut de la page et saisissez "text-to-speech".
Sélectionnez l'API Cloud Text-to-Speech dans la liste des résultats.
Pour essayer Text-to-Speech sans l'associer à votre projet, sélectionnez l'option ESSAYER CETTE API. Pour activer l'API Text-to-Speech afin de l'utiliser avec votre projet, cliquez sur ACTIVER.
Créer du contenu audio à partir de texte
Utilisez la console Google Cloud pour créer du contenu audio à partir de texte :
Sélectionnez la langue de votre texte ou SSML. Il s'agit de la langue qui sera utilisée pour la synthèse.
Sélectionnez la voix que vous souhaitez utiliser pour la synthèse. Notez que les fonctionnalités, les caractéristiques et les coûts des voix varient.
Paramètres avancés (facultatif)
Vous pouvez si besoin développer la section Paramètres avancés pour configurer d'autres propriétés du contenu audio que vous allez créer.
Spécifiez des caractéristiques supplémentaires de votre contenu audio synthétisé, telles que la vitesse d'élocution et la hauteur.
En bas, cliquez sur Synthèse pour créer votre contenu audio synthétisé.
Vérifier le contenu audio
En fonction de votre entrée, la création du contenu audio synthétisé peut prendre de quelques secondes à quelques minutes. Une fois votre contenu audio créé, vous pouvez le vérifier.
Cliquez sur les commandes du lecteur pour lire le contenu audio.
Cliquez sur Télécharger pour télécharger le fichier audio localement.
Effectuer un nettoyage
Pour éviter des frais Google Cloud inutiles, supprimez votre projet à l'aide de Google Cloud console si vous n'en avez plus besoin.
Étapes suivantes
Pour en savoir plus sur Cloud Text-to-Speech, consultez la page Concepts de base.
Passez en revue la liste des voix disponibles que vous pouvez utiliser pour la voix synthétique.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/04 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/09/04 (UTC)."],[],[],null,["# Quickstart: Create audio from text by using the Google Cloud console\n\nCreate audio from text by using the console\n===========================================\n\n|\n| **Preview**\n|\n|\n| This product or feature is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section\n| of the [Service Specific Terms](/terms/service-terms#1).\n|\n| Pre-GA products and features are available \"as is\" and might have limited support.\n|\n| For more information, see the\n| [launch stage descriptions](/products#product-launch-stages).\n\nThis quickstart introduces you to the\n[Cloud\nText-to-Speech Console](https://console.cloud.google.com/speech/text-to-speech/). In this quickstart, you will create audio from\ntext and learn how to playback, download, and update this audio for your own\napplications.\n\nTo learn more about the fundamental concepts in Text-to-Speech, read\n[Text-to-Speech Basics](/text-to-speech/docs/basics).\n\nBefore you begin\n----------------\n\nBefore you can begin using the Text-to-Speech console, you must enable the\nAPI in the Google Cloud console. The steps below walk you through the following\nactions:\n\n- Enable Text-to-Speech on a project.\n- Make sure billing is enabled for Text-to-Speech.\n\n### Set up your Google Cloud project\n\n1. [Sign\n in to the Google Cloud console](https://console.cloud.google.com/)\n\n2. [Go\n 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, see\n [Google\n 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\n 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 can\n enable the Text-to-Speech API. Go to the **Search products and resources** bar\n at the top of the page and type in **\"text-to-speech\"**.\n\n5. Select the **Cloud Text-to-Speech API** from the list of results.\n\n6. To try Text-to-Speech without linking it to your project, choose the\n **TRY THIS API** option. To enable the Text-to-Speech API for use with your\n project, click **ENABLE**.\n\nCreate Audio from Text\n----------------------\n\nUse the Google Cloud console to create audio from text:\n\n### Enter Text or SSML\n\n1. Open the\n [**Text-to-Speech**\n Synthesize](https://console.cloud.google.com/speech/text-to-speech) page.\n\n \u003cbr /\u003e\n\n2. Enter your **Text or SSML** . You can synthesize either plain text or use\n [Speech Synthesis Markup Language (SSML)](https://www.w3.org/TR/speech-synthesis/)\n to allow for more customization in your audio response.\n\n3. Select the **language** of your text or SSML. This is the language that will\n be used for synthesis.\n\n4. Select the **voice** that you want to use for synthesis. Note that voice\n features, characteristics, and costs vary.\n\n### Advanced settings (optional)\n\n1. Optionally, expand the **Advanced settings** section to configure more\n properties of the audio you will create.\n\n2. Specify additional characteristics of your synthesized audio such as\n **speed** and **pitch**.\n\n \u003cbr /\u003e\n\n3. At the bottom, click **Synthesize** to create your synthesized audio.\n\n### Review your audio\n\nDepending on your input, the synthesized audio may take from seconds to minutes\nto create. Once your audio has been created, it's ready for review.\n\n1. Click on the player controls to play the audio.\n\n \u003cbr /\u003e\n\n2. Click on **Download** to download the audio file locally.\n\nClean up\n--------\n\nTo avoid unnecessary Google Cloud charges, use the [Google Cloud console](https://console.cloud.google.com/) to\ndelete your project if you do not need it.\n\nWhat's next\n-----------\n\n\n- Learn more about Cloud Text-to-Speech by reading the [basics](/text-to-speech/docs/basics).\n- Review the list of [available voices](/text-to-speech/docs/voices) you can use for synthetic speech.\n\n\u003cbr /\u003e"]]