Skip to content
gist.link ↗

synthesizeSpeech

Mutation Intelligence API — POST https://intelligence.api.gist.link/graphql

Any signed-in user. Text-to-speech for a reply via the server’s Voicebox.

intelligence:mutation:synthesizeSpeech

The calling IAM key must hold this permission (or a wildcard that covers it: intelligence:mutation:* or intelligence:*) and the access token must have been minted with audience=intelligence. See Permissions.

type Mutation {
synthesizeSpeech(text: String!): SpeechAudio!
}
Argument Type Required Description
text String! Yes —

SpeechAudio! — see the Intelligence types reference.

Terminal window
curl https://intelligence.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation SynthesizeSpeech($text: String!) { synthesizeSpeech(text: $text) { audio mime_type } }",
"variables": {
"text": "example"
}
}
JSON