VoiceAgent: Cognitive Services has many different voices to choose from.You can cycle through all available options by hitting the Tab key. AudioOutput: This is the kind of audio that will be returned.Text: This parameter will be the text that will be converted to speech.This command requires at least four different parameters: The command to convert text to speech is ConvertTo-Speech. You're now ready to convert text to speech. This will query configuration.json, grab a token and then save it in your current session to be used for all API calls. At this point, you've got everything configured and are ready to get a token. Save-ApiKey will save the key encrypted in configuration.json. Now, run Save-ApiKey -Key replacing the key you received when you signed up for the free trial. In this JSON file, add your token endpoint to the TokenEndpoint attribute along with the SubscriptionRegion of westus and close the file. Once the module is installed, head over to C:\Program Files\WindowsPowerShell\Modules\AzTextToSpeech\\configuration.json and open it up with your favorite text editor. Note that you will need the Az.CognitiveServices PowerShell module that can be installed by running Install-Module Az. First, let's download the AzTextToSpeech module by running Install-Module -Name AzTextToSpeech in your PowerShell console run as administrator. The AzTextToSpeech module makes it easy to work with the text to speech API without having to get in the weeds. To get down to a demo, I've chosen to use PowerShell and the AzTextToSpeech module. If you've got an API key via the free trial, your endpoint to get a token will be. To do that, we'll need to know the endpoint to call. Once you have an API key, you'll then need to get an authentication token. This link will walk you through getting a free API key. To get started using the text to speech REST API for free, head over to Microsoft's Try Cognitive Services page and click on Speech APIs and then on Get API Key in the Speech Services row. This text to speech service is built into their Cognitive Services suite of products in Azure. Using AI, Microsoft has built a simple REST-based API and set of language SDKs to leverage the power of AI to create voices that sound close to human speech. Text to speech software and services has been around for a long time but it always been known to sound monotone, robotic and without emotion. One of those applications is in the text to speech realm. Artificial intelligence (AI) is being applied across an ever-increasing range of services.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |