tts

Handler for the /speak endpoint

post/speak

Request body

textstring required

The text to synthesize

Example request

{
  "text": "Hello, world!",
  "tts_config": {
    "audio_format": "linear16",
    "connection_timeout": 30,
    "model": "aura-asteria-en",
    "pronunciations": [
      {
        "pronunciation": "A P I",
        "word": "API"
      }
    ],
    "provider": "deepgram",
    "request_timeout": 60,
    "sample_rate": 24000,
    "speaking_rate": 1,
    "voice_id": "aura-asteria-en"
  }
}

Response

Audio generated successfully

Changes

Changed in 3 of the 13 revisions of this API.15

    • added the new optional request property /

      new-optional-request-property

    • the endpoint scheme security auth was added to the API

      api-security-added

    • the endpoint scheme security bearer_auth was removed from the API

      api-security-removed

    This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • d85b83f25aea12See the full diff
    • removed the request property /

      request-property-removed

    • the endpoint scheme security bearer_auth was added to the API

      api-security-added

    • the endpoint scheme security auth was removed from the API

      api-security-removed

    This revision also has 29 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog