curl --request POST \
--url https://api.vivgrid.com/v1/audio/speech \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input": "Hello, world! Welcome to Vivgrid text-to-speech.",
"voice": "zf_001",
"response_format": "mp3"
}
'"<string>"Generates audio from text input (text-to-speech).
curl --request POST \
--url https://api.vivgrid.com/v1/audio/speech \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input": "Hello, world! Welcome to Vivgrid text-to-speech.",
"voice": "zf_001",
"response_format": "mp3"
}
'"<string>"Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Audio stream
The response is of type file.