{"id":27884639,"url":"https://github.com/adbertram/aztexttospeech","last_synced_at":"2025-05-05T06:38:33.161Z","repository":{"id":84836044,"uuid":"179835732","full_name":"adbertram/AzTextToSpeech","owner":"adbertram","description":"A PowerShell module to work with the Azure Speech Services text to speech API","archived":false,"fork":false,"pushed_at":"2019-04-24T20:22:22.000Z","size":42,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-03T14:55:56.512Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adbertram.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-04-06T13:18:04.000Z","updated_at":"2023-04-14T18:55:50.000Z","dependencies_parsed_at":"2023-03-08T05:45:29.065Z","dependency_job_id":null,"html_url":"https://github.com/adbertram/AzTextToSpeech","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adbertram%2FAzTextToSpeech","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adbertram%2FAzTextToSpeech/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adbertram%2FAzTextToSpeech/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adbertram%2FAzTextToSpeech/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adbertram","download_url":"https://codeload.github.com/adbertram/AzTextToSpeech/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252454980,"owners_count":21750508,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-05T06:38:30.438Z","updated_at":"2025-05-05T06:38:33.155Z","avatar_url":"https://github.com/adbertram.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AzTextToSpeech\n\n[![Build status](https://ci.appveyor.com/api/projects/status/7533b87cmwl8bluw?svg=true)](https://ci.appveyor.com/project/adbertram/aztexttospeech)\n\nAzTextToSpeech is a PowerShell module created to work with the Azure Cognitive Services (Speech Services) Text-to-Speech API. It was built to help users more easily manage and test their text-to-speech ecosystem.\n\nThis module will help you collect up your training data using `New-TrainingDataPackage`, build transcripts with `New-Transcript`, quickly retrieve your custom endpoints and provide a way to quickly test SSML using the `ConvertTo-Speech` function.\n\n## Requirements\n\nThere are two ways you can use this module. You can either sign up for a free trial key [here](https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/get-started) or you can use an Azure Cognitive Services account which requires an Azure account.\n\nIf you're just using the free trial API key, you will need:\n\n1. Your API Key\n2. The Az.CognitiveServices PowerShell module\n\nIf you are already have an Azure account and are not using the free trial key, you will need:\n\n1. An Azure Cognitive Services account. [Link with instructions](https://docs.microsoft.com/en-us/azure/cognitive-services/cognitive-services-apis-create-account)\n2. Authenticated to Azure in your PowerShell session (Connect-AzAccount)\n3. The Az.CognitiveServices PowerShell module\n\n## Getting Started\n\n### Setting up Configuration Values\n\nAll configuration you need to do ahead and time is located in the configuration.json file. \n\n#### Free Trial Key\n\nIf you are not using an Azure Cognitive Services account, you will need to set the following configuration values in configuration.json:\n\n - Token endpoint. The token endpoint will be always be https://westus.api.cognitive.microsoft.com/sts/v1.0/issuetoken.\n - The subscription region which will always be westus.\n\n You will then need to save your API key encrypted in configuration.json. To do that, run `Save-ApiKey -Key \u003cYourKeyHere\u003e`. This will encrypt and save the key for use by the module later.\n\n#### Cognitive Services Account\n\nIf you are using an Azure Cognitive Services account, you will need to set the following configuration values in configuration.json:\n\n - Token endpoint. The token endpoint will be the same as what comes default but you will simply need to replace the region. https://REGIONHERE.api.cognitive.microsoft.com/sts/v1.0/issuetoken. This is the same region as your Azure subscription.\n - The subscription region\n - Your Cognitive Services account name and resource group\n \n You can find the token endpoint, subscription region and account information by running `Get-AzCognitiveServicesAccount | Select-Object -Property Endpoint,AccountName,ResourceGroupName,Location`.\n  \n```JSON\n{\n    \"TokenEndpoint\": \"https://\u003cSUBSCRIPTIONREGIONHERE\u003e.api.cognitive.microsoft.com/sts/v1.0/issuetoken\",\n    \"APIKey\": \"\",\n    \"CustomEndpoints\": [{\n        \"Name\": \"\",\n        \"Uri\": \"\"\n    }],\n    \"SubscriptionRegion\": \"\",\n    \"CognitiveServicesAccount\": {\n        \"Name\": \"\",\n        \"ResourceGroupName\": \"\"\n    }\n}\n```\n\n### Grabbing your first token\n\nYou'll need a token to authenticate to Azure and AzTextToSpeech has made it easy. Simply run `Connect-AzTextToSpeech` after the module is imported. This will use values in your configuration.json file and issue a token saving in the module scope to be reused. Tokens are only good for 10 minutes but the module has retry capabilities built in if it fails due to a token expiration issue. If so, it will automatically get another token for you.\n\n## Building Training Data\n\nThe text-to-speech API requires data to be in a specific format. You need WAV files in a specific order with a specifically formatted transcript no larger than 200MB which AzTextToSpeech calls a training data package.\n\n##TODO\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadbertram%2Faztexttospeech","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadbertram%2Faztexttospeech","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadbertram%2Faztexttospeech/lists"}