> ## Documentation Index
> Fetch the complete documentation index at: https://docs.slng.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Aura 2 (Spanish)

> Stream low-latency conversational Spanish text-to-speech from SLNG-hosted Deepgram Aura 2 over WebSocket, optimized for production voice agents.



## AsyncAPI

````yaml api-reference/asyncapi/tts-slng.asyncapi.yaml /v1/tts/slng/deepgram/aura:2-es
id: /v1/tts/slng/deepgram/aura:2-es
title: Aura 2 (Spanish)
description: >-
  Stream low-latency conversational Spanish text-to-speech from SLNG-hosted
  Deepgram Aura 2 over WebSocket, optimized for production voice agents.
servers:
  - id: production
    protocol: wss
    host: api.slng.ai
    bindings: []
    variables: []
address: /v1/tts/slng/deepgram/aura:2-es
parameters: []
bindings:
  - protocol: ws
    version: latest
    value:
      method: GET
      headers:
        type: object
        properties:
          X-Region-Override:
            type: string
            description: >-
              Target region override. Auto-selected if not provided. Available
              regions: `eu-north-1`.
            enum:
              - eu-north-1
            x-parser-schema-id: <anonymous-schema-199>
          X-World-Part-Override:
            type: string
            description: >-
              Target world part override. Auto-selected if not provided.
              Available world parts: `eu`.
            enum:
              - eu
            x-parser-schema-id: <anonymous-schema-200>
        x-parser-schema-id: WebsocketHeadersSlngAuraEs
    schemaProperties:
      - name: method
        type: string
        description: GET
        required: false
      - name: headers
        type: object
        required: false
        properties:
          - name: X-Region-Override
            type: string
            description: >-
              Target region override. Auto-selected if not provided. Available
              regions: `eu-north-1`.
            enumValues:
              - eu-north-1
            required: false
          - name: X-World-Part-Override
            type: string
            description: >-
              Target world part override. Auto-selected if not provided.
              Available world parts: `eu`.
            enumValues:
              - eu
            required: false
operations:
  - &ref_1
    id: ttsSlngDeepgramAura2EsReceiveInit
    title: Tts slng deepgram aura2 es receive init
    description: Initialize session on Aura 2 (Spanish)
    type: receive
    messages:
      - &ref_11
        id: SlngDeepgramAura2EsTtsInitRequest
        contentType: application/json
        payload:
          - name: Init Request
            description: Initialize an SLNG Deepgram Aura 2 Spanish TTS session.
            type: object
            properties:
              - name: type
                type: string
                description: init
                required: true
              - name: model
                type: string
                description: Voice model identifier (Spanish)
                enumValues:
                  - aura-2-agustina-es
                  - aura-2-alvaro-es
                  - aura-2-antonia-es
                  - aura-2-aquila-es
                  - aura-2-carina-es
                  - aura-2-celeste-es
                  - aura-2-diana-es
                  - aura-2-estrella-es
                  - aura-2-gloria-es
                  - aura-2-javier-es
                  - aura-2-luciano-es
                  - aura-2-nestor-es
                  - aura-2-olivia-es
                  - aura-2-selena-es
                  - aura-2-silvia-es
                  - aura-2-sirio-es
                  - aura-2-valerio-es
                required: true
              - name: voice
                type: string
                description: Voice identifier (same as model)
                enumValues:
                  - aura-2-agustina-es
                  - aura-2-alvaro-es
                  - aura-2-antonia-es
                  - aura-2-aquila-es
                  - aura-2-carina-es
                  - aura-2-celeste-es
                  - aura-2-diana-es
                  - aura-2-estrella-es
                  - aura-2-gloria-es
                  - aura-2-javier-es
                  - aura-2-luciano-es
                  - aura-2-nestor-es
                  - aura-2-olivia-es
                  - aura-2-selena-es
                  - aura-2-silvia-es
                  - aura-2-sirio-es
                  - aura-2-valerio-es
                required: false
              - name: config
                type: object
                description: Synthesis configuration options
                required: false
                properties:
                  - name: sample_rate
                    type: integer
                    description: Audio sample rate in Hz.
                    enumValues:
                      - 8000
                      - 16000
                      - 22050
                      - 24000
                      - 32000
                      - 44100
                      - 48000
                    required: false
                  - name: encoding
                    type: string
                    description: >-
                      Audio encoding format (mp3/opus not supported for
                      self-hosted Deepgram WebSocket streaming)
                    enumValues:
                      - linear16
                      - mulaw
                      - alaw
                    required: false
                  - name: speed
                    type: number
                    description: Speech speed multiplier (e.g., 1.0 for normal)
                    required: false
        headers: []
        jsonPayloadSchema:
          type: object
          description: >-
            Initialize a session with model and voice configuration. Encoding
            restricted to linear16/mulaw/alaw for self-hosted Deepgram WebSocket
            streaming.
          required:
            - type
            - model
          properties:
            type:
              type: string
              const: init
              default: init
              x-parser-schema-id: <anonymous-schema-169>
            model:
              type: string
              description: Voice model identifier (Spanish)
              enum:
                - aura-2-agustina-es
                - aura-2-alvaro-es
                - aura-2-antonia-es
                - aura-2-aquila-es
                - aura-2-carina-es
                - aura-2-celeste-es
                - aura-2-diana-es
                - aura-2-estrella-es
                - aura-2-gloria-es
                - aura-2-javier-es
                - aura-2-luciano-es
                - aura-2-nestor-es
                - aura-2-olivia-es
                - aura-2-selena-es
                - aura-2-silvia-es
                - aura-2-sirio-es
                - aura-2-valerio-es
              x-parser-schema-id: <anonymous-schema-170>
            voice:
              type: string
              description: Voice identifier (same as model)
              enum:
                - aura-2-agustina-es
                - aura-2-alvaro-es
                - aura-2-antonia-es
                - aura-2-aquila-es
                - aura-2-carina-es
                - aura-2-celeste-es
                - aura-2-diana-es
                - aura-2-estrella-es
                - aura-2-gloria-es
                - aura-2-javier-es
                - aura-2-luciano-es
                - aura-2-nestor-es
                - aura-2-olivia-es
                - aura-2-selena-es
                - aura-2-silvia-es
                - aura-2-sirio-es
                - aura-2-valerio-es
              x-parser-schema-id: <anonymous-schema-171>
            config:
              type: object
              description: Synthesis configuration options
              properties:
                sample_rate:
                  type: integer
                  description: Audio sample rate in Hz.
                  enum:
                    - 8000
                    - 16000
                    - 22050
                    - 24000
                    - 32000
                    - 44100
                    - 48000
                  x-parser-schema-id: SampleRate
                encoding:
                  type: string
                  description: >-
                    Audio encoding format (mp3/opus not supported for
                    self-hosted Deepgram WebSocket streaming)
                  default: linear16
                  enum:
                    - linear16
                    - mulaw
                    - alaw
                  x-parser-schema-id: <anonymous-schema-173>
                speed:
                  type: number
                  description: Speech speed multiplier (e.g., 1.0 for normal)
                  x-parser-schema-id: <anonymous-schema-174>
              x-parser-schema-id: <anonymous-schema-172>
          x-parser-schema-id: <anonymous-schema-168>
        title: Init Request
        description: Initialize an SLNG Deepgram Aura 2 Spanish TTS session.
        example: |-
          {
            "type": "init",
            "model": "aura-2-celeste-es",
            "voice": "aura-2-celeste-es",
            "config": {
              "sample_rate": 24000,
              "encoding": "linear16"
            }
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: SlngDeepgramAura2EsTtsInitRequest
    bindings: []
    extensions: &ref_0
      - id: x-parser-unique-object-id
        value: /v1/tts/slng/deepgram/aura:2-es
  - &ref_2
    id: ttsSlngDeepgramAura2EsReceiveText
    title: Tts slng deepgram aura2 es receive text
    description: Send text to Aura 2 (Spanish)
    type: receive
    messages:
      - &ref_12
        id: TtsTextMessage
        contentType: application/json
        payload:
          - name: Text Message
            description: Send text to synthesize into audio output.
            type: object
            properties:
              - name: type
                type: string
                description: text
                required: true
              - name: text
                type: string
                description: Text to synthesize
                required: true
              - name: flush
                type: boolean
                description: Whether to flush remaining audio immediately after this text
                required: false
        headers: []
        jsonPayloadSchema:
          type: object
          description: Send text to synthesize into audio output.
          required:
            - type
            - text
          properties:
            type:
              type: string
              const: text
              x-parser-schema-id: <anonymous-schema-8>
            text:
              type: string
              description: Text to synthesize
              x-parser-schema-id: <anonymous-schema-9>
            flush:
              type: boolean
              description: Whether to flush remaining audio immediately after this text
              x-parser-schema-id: <anonymous-schema-10>
          x-parser-schema-id: <anonymous-schema-7>
        title: Text Message
        description: Send text to synthesize into audio output.
        example: |-
          {
            "type": "text",
            "text": "Hello, this is a test of text-to-speech synthesis."
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: TtsTextMessage
    bindings: []
    extensions: *ref_0
  - &ref_3
    id: ttsSlngDeepgramAura2EsReceiveFlush
    title: Tts slng deepgram aura2 es receive flush
    description: Flush buffered output on Aura 2 (Spanish)
    type: receive
    messages:
      - &ref_13
        id: TtsFlushMessage
        contentType: application/json
        payload:
          - name: Flush Message
            description: Force any buffered text/audio to be finalized and delivered.
            type: object
            properties:
              - name: type
                type: string
                description: flush
                required: true
        headers: []
        jsonPayloadSchema:
          type: object
          description: Force any buffered text/audio to be finalized and delivered.
          required:
            - type
          properties:
            type:
              type: string
              const: flush
              x-parser-schema-id: <anonymous-schema-12>
          x-parser-schema-id: <anonymous-schema-11>
        title: Flush Message
        description: Force any buffered text/audio to be finalized and delivered.
        example: |-
          {
            "type": "flush"
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: TtsFlushMessage
    bindings: []
    extensions: *ref_0
  - &ref_4
    id: ttsSlngDeepgramAura2EsReceiveClear
    title: Tts slng deepgram aura2 es receive clear
    description: Clear queued output on Aura 2 (Spanish)
    type: receive
    messages:
      - &ref_14
        id: TtsClearMessage
        contentType: application/json
        payload:
          - name: Clear Message
            description: Clear any queued text/audio from the current session.
            type: object
            properties:
              - name: type
                type: string
                description: clear
                required: true
        headers: []
        jsonPayloadSchema:
          type: object
          description: Clear any queued text/audio from the current session.
          required:
            - type
          properties:
            type:
              type: string
              const: clear
              x-parser-schema-id: <anonymous-schema-14>
          x-parser-schema-id: <anonymous-schema-13>
        title: Clear Message
        description: Clear any queued text/audio from the current session.
        example: |-
          {
            "type": "clear"
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: TtsClearMessage
    bindings: []
    extensions: *ref_0
  - &ref_5
    id: ttsSlngDeepgramAura2EsReceiveClose
    title: Tts slng deepgram aura2 es receive close
    description: Close session on Aura 2 (Spanish)
    type: receive
    messages:
      - &ref_15
        id: TtsCloseMessage
        contentType: application/json
        payload:
          - name: Close Message
            description: Close the session and stop any further audio.
            type: object
            properties:
              - name: type
                type: string
                description: close
                required: true
        headers: []
        jsonPayloadSchema:
          type: object
          description: Close the session and stop any further audio.
          required:
            - type
          properties:
            type:
              type: string
              const: close
              x-parser-schema-id: <anonymous-schema-16>
          x-parser-schema-id: <anonymous-schema-15>
        title: Close Message
        description: Close the session and stop any further audio.
        example: |-
          {
            "type": "close"
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: TtsCloseMessage
    bindings: []
    extensions: *ref_0
  - &ref_6
    id: ttsSlngDeepgramAura2EsSendMetadata
    title: Tts slng deepgram aura2 es send metadata
    description: Receive metadata response from Aura 2 (Spanish)
    type: send
    messages:
      - &ref_16
        id: SlngDeepgramAura2EsMetadataResponse
        contentType: application/json
        payload:
          - name: Metadata Response
            description: >-
              Server metadata response after SLNG Deepgram Aura 2 Spanish
              session initialization.
            type: object
            properties:
              - name: type
                type: string
                description: Metadata
                required: true
              - name: request_id
                type: string
                description: Unique request identifier
                required: true
              - name: model_name
                type: string
                description: Name of the model used for synthesis
                required: true
              - name: model_version
                type: string
                description: Version of the model
                required: true
              - name: model_uuid
                type: string
                description: Unique model identifier
                required: true
        headers: []
        jsonPayloadSchema:
          type: object
          description: >-
            Metadata response sent by the server after a successful session
            initialization. Contains model information and a unique request
            identifier.
          required:
            - type
            - request_id
            - model_name
            - model_version
            - model_uuid
          properties:
            type:
              type: string
              const: Metadata
              x-parser-schema-id: <anonymous-schema-176>
            request_id:
              type: string
              format: uuid
              description: Unique request identifier
              x-parser-schema-id: <anonymous-schema-177>
            model_name:
              type: string
              description: Name of the model used for synthesis
              x-parser-schema-id: <anonymous-schema-178>
            model_version:
              type: string
              description: Version of the model
              x-parser-schema-id: <anonymous-schema-179>
            model_uuid:
              type: string
              format: uuid
              description: Unique model identifier
              x-parser-schema-id: <anonymous-schema-180>
          x-parser-schema-id: <anonymous-schema-175>
        title: Metadata Response
        description: >-
          Server metadata response after SLNG Deepgram Aura 2 Spanish session
          initialization.
        example: |-
          {
            "type": "Metadata",
            "request_id": "a7e2f4b1-3c89-4d5a-b6e1-9f8a7c6d5e4b",
            "model_name": "aura-2-celeste-es",
            "model_version": "2025-04-15.0",
            "model_uuid": "f1a2b3c4-5d6e-7f8a-9b0c-1d2e3f4a5b6c"
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: SlngDeepgramAura2EsMetadataResponse
    bindings: []
    extensions: *ref_0
  - &ref_7
    id: ttsSlngDeepgramAura2EsSendAudioChunk
    title: Tts slng deepgram aura2 es send audio chunk
    description: Receive audio chunk from Aura 2 (Spanish)
    type: send
    messages:
      - &ref_17
        id: SlngDeepgramAuraTtsAudioChunk
        contentType: application/octet-stream
        payload:
          - name: Audio Chunk
            description: Raw binary audio buffer from SLNG Deepgram Aura.
            type: object
            properties:
              - name: type
                type: string
                description: >-
                  Placeholder discriminator. The actual message is a raw binary
                  WebSocket frame, not JSON.
                required: true
        headers: []
        jsonPayloadSchema:
          type: object
          description: >-
            Raw binary audio data sent as a WebSocket binary frame. This is NOT
            a JSON message — it is a raw audio buffer (e.g. linear16 PCM bytes).
            The encoding and sample rate match the values specified in the init
            message config. The object schema below is for documentation
            purposes only as required by the AsyncAPI tooling.
          required:
            - type
          properties:
            type:
              type: string
              const: binary
              description: >-
                Placeholder discriminator. The actual message is a raw binary
                WebSocket frame, not JSON.
              x-parser-schema-id: <anonymous-schema-162>
          x-parser-schema-id: <anonymous-schema-161>
        title: Audio Chunk
        description: Raw binary audio buffer from SLNG Deepgram Aura.
        example: >-
          "0000FF00000000FF00000000010101010101010100000000FFFFFFFFFFFEFEFDFEFEFEFEFDFDFEFEFEFEFEFEFEFEFEFFFFFFFFFEFEFEFEFF0001000001020303030303030303030201010000FFFFFEFDFDFDFDFEFFFFFFFF0001020303020201000000FFFDFCFBFAFAFBFAF9F8F7F7F7F6F6F4F2F2F3F7FC000406090F14191A19181715110E0A05FEF9F6F3F0EEECEBEBECEEF2F6F9FC0005090D0F101010100E0C080401"
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: SlngDeepgramAuraTtsAudioChunk
    bindings: []
    extensions: *ref_0
  - &ref_8
    id: ttsSlngDeepgramAura2EsSendFlushed
    title: Tts slng deepgram aura2 es send flushed
    description: Receive flushed confirmation from Aura 2 (Spanish)
    type: send
    messages:
      - &ref_18
        id: SlngDeepgramAuraTtsFlushed
        contentType: application/json
        payload:
          - name: Flushed
            description: >-
              Acknowledges that buffered output was flushed from SLNG Deepgram
              Aura.
            type: object
            properties:
              - name: type
                type: string
                description: Flushed
                required: true
              - name: sequence_id
                type: integer
                description: Sequence identifier for the flushed segment
                required: true
        headers: []
        jsonPayloadSchema:
          type: object
          description: Acknowledges that buffered output was flushed.
          required:
            - type
            - sequence_id
          properties:
            type:
              type: string
              const: Flushed
              x-parser-schema-id: <anonymous-schema-164>
            sequence_id:
              type: integer
              description: Sequence identifier for the flushed segment
              x-parser-schema-id: <anonymous-schema-165>
          x-parser-schema-id: <anonymous-schema-163>
        title: Flushed
        description: Acknowledges that buffered output was flushed from SLNG Deepgram Aura.
        example: |-
          {
            "type": "Flushed",
            "sequence_id": 0
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: SlngDeepgramAuraTtsFlushed
    bindings: []
    extensions: *ref_0
  - &ref_9
    id: ttsSlngDeepgramAura2EsSendCleared
    title: Tts slng deepgram aura2 es send cleared
    description: Receive cleared confirmation from Aura 2 (Spanish)
    type: send
    messages:
      - &ref_19
        id: SlngDeepgramAuraTtsCleared
        contentType: application/json
        payload:
          - name: Cleared
            description: >-
              Acknowledges that queued output was cleared from SLNG Deepgram
              Aura.
            type: object
            properties:
              - name: type
                type: string
                description: Cleared
                required: true
        headers: []
        jsonPayloadSchema:
          type: object
          description: Acknowledges that queued output was cleared.
          required:
            - type
          properties:
            type:
              type: string
              const: Cleared
              x-parser-schema-id: <anonymous-schema-167>
          x-parser-schema-id: <anonymous-schema-166>
        title: Cleared
        description: Acknowledges that queued output was cleared from SLNG Deepgram Aura.
        example: |-
          {
            "type": "Cleared"
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: SlngDeepgramAuraTtsCleared
    bindings: []
    extensions: *ref_0
  - &ref_10
    id: ttsSlngDeepgramAura2EsSendError
    title: Tts slng deepgram aura2 es send error
    description: Receive error from Aura 2 (Spanish)
    type: send
    messages:
      - &ref_20
        id: TtsErrorResponse
        contentType: application/json
        payload:
          - name: Error Response
            description: Indicates an error occurred during synthesis.
            type: object
            properties:
              - name: type
                type: string
                description: error
                required: true
              - name: code
                type: string
                description: Error code.
                enumValues:
                  - auth_error
                  - config_error
                  - rate_limit
                  - provider_error
                required: true
              - name: message
                type: string
                description: Human-readable error description
                required: true
        headers: []
        jsonPayloadSchema:
          type: object
          description: Indicates an error occurred during synthesis.
          required:
            - type
            - code
            - message
          properties:
            type:
              type: string
              const: error
              x-parser-schema-id: <anonymous-schema-38>
            code:
              type: string
              description: Error code.
              enum:
                - auth_error
                - config_error
                - rate_limit
                - provider_error
              x-parser-schema-id: <anonymous-schema-39>
            message:
              type: string
              description: Human-readable error description
              x-parser-schema-id: <anonymous-schema-40>
          x-parser-schema-id: <anonymous-schema-37>
        title: Error Response
        description: Indicates an error occurred during synthesis.
        example: |-
          {
            "type": "error",
            "code": "provider_error",
            "message": "Provider returned an unexpected error"
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: TtsErrorResponse
    bindings: []
    extensions: *ref_0
sendOperations:
  - *ref_1
  - *ref_2
  - *ref_3
  - *ref_4
  - *ref_5
receiveOperations:
  - *ref_6
  - *ref_7
  - *ref_8
  - *ref_9
  - *ref_10
sendMessages:
  - *ref_11
  - *ref_12
  - *ref_13
  - *ref_14
  - *ref_15
receiveMessages:
  - *ref_16
  - *ref_17
  - *ref_18
  - *ref_19
  - *ref_20
extensions:
  - id: x-parser-unique-object-id
    value: /v1/tts/slng/deepgram/aura:2-es
securitySchemes:
  - id: bearer
    name: bearer
    type: http
    description: >
      API key issued by SLNG. Pass as `Authorization: Bearer <token>` in the
      WebSocket upgrade request headers.
    scheme: bearer
    extensions: []

````