First, a program sends text to the API as a request, typically in JSON format. Optionally, text can often be formatted using SSML, a type of markup language created to improve the efficiency of speech synthesis programs.