Skip to content
Design preview: examples use a local mock server.
EndpointsVoices

Get a voice

GET
/v1/voices/{voice_id}

Responds with one stock voice.

Authorization

apiKey
headerAuthorizationBearer <API key>

Send your API key as a bearer token: Authorization: Bearer <key>. Test keys start with wsk_test_. The mock server accepts any key, but it rejects a request with no Authorization header.

Path parameters

voice_id*string

The voice’s id: plainspoken, authoritative, warm, thoughtful, energetic, or steady.

Match^[a-z0-9-]+$
Lengthlength <= 200

Response body

The voice.

application/json
  1. response
id*string

The voice’s id.

name*string
tagline*string
default_for*array<string>

The content types this voice suits, for an organization that uses the six voices. The Watership voice is the default for every type, and the six are optional alternatives. The tone scales decide which types each voice suits, and a type that none of the six suits (such as interface text) isn’t listed under any voice.

personality*array<>

Three traits, each with the failure it must not slide into.

scales*

The voice’s position on each of the six tone scales.

Example request
curl -X GET 'http://127.0.0.1:4010/v1/voices/plainspoken'
Example response
{  "id": "plainspoken",  "name": "Plainspoken",  "tagline": "Direct, clear, helpful.",  "default_for": [    "concept",    "task",    "tutorial",    "reference",    "interface guide",    "troubleshooting",    "migration guide",    "comparison"  ],  "personality": [    {      "trait": "Direct",      "not": "blunt"    },    {      "trait": "Clear",      "not": "simplistic"    },    {      "trait": "Helpful",      "not": "hovering"    }  ],  "scales": {    "register": {      "rest": 50,      "error": 50,      "position": "the center"    },    "levity": {      "rest": 32,      "error": 24,      "position": "toward sober"    },    "deference": {      "rest": 52,      "error": 60,      "position": "the center"    },    "energy": {      "rest": 40,      "error": 28,      "position": "toward calm"    },    "confidence": {      "rest": 56,      "error": 56,      "position": "toward assertive"    },    "detail": {      "rest": 50,      "error": 50,      "position": "the center"    }  }}