Convert text to speech

POST https://{{region}}.tts.speech.microsoft.com/cognitiveservices/v1

Official documentation

This section teaches you how to convert text to speech, using a voice selected from the list generated in the last request.

The body contains the language, gender and name of the voice (taken from the generated list) as well as the text to be converted.

You may refer to Audio Outputs for a list of output formats to use for the X-Microsoft-OutputFormat header.

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
X-Microsoft-OutputFormatstring