This simple console app generates markdown tables for Azure AI Speech supported languages, text-to-speech voices, and their features. It uses some of the Azure AI Speech REST APIs to fetch the data and formats it into markdown files.
The generated markdown tables can be used to replace the existing tables in the Azure AI documentation repository.
An example of rendered language and locales tables at learn.microsoft.com can be found here.
-
Prerequisites:
- .NET 8.0 or later
- C# 12 or later (required for collection expression syntax)
-
Install dependencies:
dotnet add package Newtonsoft.Json dotnet add package DotNetEnv
-
Create a
.envfile in the project root with your Azure Speech credentials:SPEECH_KEY=your-key-here SPEECH_REGION=your-region-here
-
Run the application:
dotnet run
Generates markdown tables for Azure AI Speech voices, locales, and features. Output files are saved in the output/ directory:
language-identification.md: Language identification supportstt.md: Speech to text languages and featurestts.md: Text to speech voicesvoice-styles-and-roles.md: Voice styles and roles