Generates speech from text and returns a JSON object that contains a base64-encoded audio string and optionally word-level durations (timestamps). This endpoint waits for the entire synthesis before responding, so it is not ideal for latency-sensitive applications.
jq -r '.audio' lmnt-output.json | base64 --decode > lmnt-audio-output.mp3
The file format of your audio output depends on the format
specified in the inital request (this example assumes format=mp3
).Your API key; get it from your LMNT account page.
OK
The response is of type object
.