How to Create A Microsoft Azure TTS API KEY

Introduction

In today’s digital world, the ability to seamlessly convert text to speech in a fluid and natural manner is more crucial than ever, especially for applications aiming to enhance accessibility or provide richer, more interactive user experiences.

Microsoft Azure offers a robust solution through its Text To Speech (TTS) service, part of Azure Cognitive Services, enabling developers to easily integrate voice capabilities into their applications.

However, the first step to accessing this powerful service is creating an API Key in Microsoft Azure. In this blog, I will guide you step-by-step through the process of obtaining your API Key for Azure’s TTS service, from setting up your initial Azure account to creating and configuring your Cognitive Services resource.

This journey will equip you with the necessary tools to transform text into enriched speech, opening a world of possibilities for your applications.

1.- Create Azure AI Speech API

To create a Free Azure account, you need to have a credit card on hand. We begin by entering the following link:

https://azure.microsoft.com

You press the Free account button (note: it may have changed)

You press “Pay as you go”, since in order to create the API to use it asks us for a credit card in case, we exceed the allowed monthly consumption.

Now press “Get started”, you can use an existing email or create one from Outlook.

Follow these steps and finish creating your account.

Now that we have created our account, we will proceed to create our API Key to be able to use TTS from the application.

1.1.- Azure Portal

Now we go to the Azure portal to create our API Key.

https://portal.azure.com/#home

1.1.1.- We create a Resource (Create a Resource)

We press where it says Create a Resources and then we look for the “Speech” resource and proceed to press the Create button.

  • Suscription*: We select the subscription, in our cases it is: Azure subscription 1
  • Resource group*: We create a new one, you can call it: AzureTTS
  • Region: We can select any, in our case we select: East US
  • Name*: A valid domain, in our case we use: vitalpbx-tts-azure-blog
  • Pricing*: We select “Free F0”, this gives us up to 500,000 characters per month.

Now we press Review + créate

Finally, we press Create and it will show us the following screen.

Now we go to Go to resource and press Keys and Endpoint.

Now we have the API Key that we are going to use in our App. Select Key 1, the content should be something like the one shown below.

f051a6f4c65b6ebe899033de78fffd5e

Conclusion

Creating an API Key in Microsoft Azure to use the Text To Speech service is a straightforward but essential process for unlocking advanced voice capabilities in your applications.

By following the detailed steps in this blog, you not only learned how to obtain your API Key but also how to set up your Cognitive Services resource to start implementing TTS functionalities.

This service can significantly enrich user experience, from enhancing accessibility to offering new ways of interaction. With your API Key in hand, you are now ready to explore the broad spectrum of possibilities that Azure TTS offers, innovating and taking your applications to the next level.

Remember, experimentation and practice are key to mastering cloud services usage, so do not hesitate to experiment with different configurations and options to find the voice and style that best suit your needs.

Our Latest Post