> ## 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.

# ElevenLabs Multilingual v2

> Stream multilingual speech synthesis from ElevenLabs Multilingual v2 over WebSocket with broad language coverage and ultra-low-latency real-time output.



## AsyncAPI

````yaml api-reference/asyncapi/tts-elevenlabs.asyncapi.yaml /v1/tts/elevenlabs/eleven-multilingual:2
id: /v1/tts/elevenlabs/eleven-multilingual:2
title: ElevenLabs Multilingual v2
description: >-
  Stream multilingual speech synthesis from ElevenLabs Multilingual v2 over
  WebSocket with broad language coverage and ultra-low-latency real-time output.
servers:
  - id: production
    protocol: wss
    host: api.slng.ai
    bindings: []
    variables: []
address: /v1/tts/elevenlabs/eleven-multilingual:2
parameters: []
bindings:
  - protocol: ws
    version: latest
    value:
      method: GET
      headers:
        type: object
        properties:
          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-44>
        x-parser-schema-id: WebsocketHeadersElevenLabsElevenMultilingual2
    schemaProperties:
      - name: method
        type: string
        description: GET
        required: false
      - name: headers
        type: object
        required: false
        properties:
          - 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: ttsElevenMultilingual2ReceiveInit
    title: Tts eleven multilingual2 receive init
    description: Initialize session on ElevenLabs Multilingual v2
    type: receive
    messages:
      - &ref_12
        id: TtsInitRequest
        contentType: application/json
        payload:
          - name: Init Request
            description: Initialize a TTS session with voice and synthesis configuration.
            type: object
            properties:
              - name: type
                type: string
                description: init
                required: true
              - name: voice
                type: string
                description: Voice identifier
                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
                    enumValues:
                      - linear16
                      - mp3
                      - opus
                    required: false
                  - name: language
                    type: string
                    description: ISO 639-1 language code. Supported by multilingual models.
                    enumValues:
                      - ar
                      - cs
                      - de
                      - en
                      - es
                      - fil
                      - fr
                      - hi
                      - it
                      - ja
                      - nl
                      - pl
                      - pt
                      - ro
                      - sk
                      - sv
                      - tr
                      - zh
                    required: false
                  - name: speed
                    type: number
                    description: Speech speed multiplier (e.g., 1.0 for normal)
                    required: false
                  - name: enable_logging
                    type: boolean
                    description: >-
                      Enable request logging. Set false for zero retention mode
                      (enterprise only).
                    required: false
                  - name: enable_ssml_parsing
                    type: boolean
                    description: Enable SSML parsing for websocket synthesis.
                    required: false
                  - name: inactivity_timeout
                    type: integer
                    description: Websocket inactivity timeout in seconds.
                    required: false
                  - name: sync_alignment
                    type: boolean
                    description: Include alignment data with each websocket audio chunk.
                    required: false
                  - name: auto_mode
                    type: boolean
                    description: Reduce latency by disabling chunk schedule and buffers.
                    required: false
                  - name: chunk_length_schedule
                    type: array
                    description: >-
                      Websocket shorthand for
                      generation_config.chunk_length_schedule.
                    required: false
                    properties:
                      - name: item
                        type: integer
                        required: false
        headers: []
        jsonPayloadSchema:
          type: object
          description: >-
            Initialize a session with voice and synthesis configuration before
            sending text. The model is determined by the channel URL.
          required:
            - type
          properties:
            type:
              type: string
              const: init
              default: init
              x-parser-schema-id: <anonymous-schema-2>
            voice:
              type: string
              description: Voice identifier
              x-parser-schema-id: <anonymous-schema-3>
            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
                  enum:
                    - linear16
                    - mp3
                    - opus
                  x-parser-schema-id: <anonymous-schema-5>
                language:
                  type: string
                  description: ISO 639-1 language code. Supported by multilingual models.
                  enum:
                    - ar
                    - cs
                    - de
                    - en
                    - es
                    - fil
                    - fr
                    - hi
                    - it
                    - ja
                    - nl
                    - pl
                    - pt
                    - ro
                    - sk
                    - sv
                    - tr
                    - zh
                  default: en
                  x-parser-schema-id: ElevenLabsLanguage
                speed:
                  type: number
                  description: Speech speed multiplier (e.g., 1.0 for normal)
                  x-parser-schema-id: <anonymous-schema-6>
                enable_logging:
                  type: boolean
                  description: >-
                    Enable request logging. Set false for zero retention mode
                    (enterprise only).
                  default: true
                  x-parser-schema-id: <anonymous-schema-7>
                enable_ssml_parsing:
                  type: boolean
                  description: Enable SSML parsing for websocket synthesis.
                  default: false
                  x-parser-schema-id: <anonymous-schema-8>
                inactivity_timeout:
                  type: integer
                  minimum: 1
                  maximum: 180
                  description: Websocket inactivity timeout in seconds.
                  default: 20
                  x-parser-schema-id: <anonymous-schema-9>
                sync_alignment:
                  type: boolean
                  description: Include alignment data with each websocket audio chunk.
                  default: false
                  x-parser-schema-id: <anonymous-schema-10>
                auto_mode:
                  type: boolean
                  description: Reduce latency by disabling chunk schedule and buffers.
                  default: false
                  x-parser-schema-id: <anonymous-schema-11>
                chunk_length_schedule:
                  type: array
                  description: >-
                    Websocket shorthand for
                    generation_config.chunk_length_schedule.
                  items:
                    type: integer
                    minimum: 1
                    x-parser-schema-id: <anonymous-schema-13>
                  x-parser-schema-id: <anonymous-schema-12>
              x-parser-schema-id: <anonymous-schema-4>
          x-parser-schema-id: <anonymous-schema-1>
        title: Init Request
        description: Initialize a TTS session with voice and synthesis configuration.
        example: |-
          {
            "type": "init",
            "voice": "pNInz6obpgDQGcFmaJgB",
            "config": {
              "sample_rate": 24000,
              "encoding": "mp3",
              "auto_mode": false
            }
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: TtsInitRequest
    bindings: []
    extensions: &ref_0
      - id: x-parser-unique-object-id
        value: /v1/tts/elevenlabs/eleven-multilingual:2
  - &ref_2
    id: ttsElevenMultilingual2ReceiveText
    title: Tts eleven multilingual2 receive text
    description: Send text to ElevenLabs Multilingual v2
    type: receive
    messages:
      - &ref_13
        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-15>
            text:
              type: string
              description: Text to synthesize
              x-parser-schema-id: <anonymous-schema-16>
            flush:
              type: boolean
              description: Whether to flush remaining audio immediately after this text
              x-parser-schema-id: <anonymous-schema-17>
          x-parser-schema-id: <anonymous-schema-14>
        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: ttsElevenMultilingual2ReceiveFlush
    title: Tts eleven multilingual2 receive flush
    description: Flush buffered output on ElevenLabs Multilingual v2
    type: receive
    messages:
      - &ref_14
        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-19>
          x-parser-schema-id: <anonymous-schema-18>
        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: ttsElevenMultilingual2ReceiveClear
    title: Tts eleven multilingual2 receive clear
    description: Clear queued output on ElevenLabs Multilingual v2
    type: receive
    messages:
      - &ref_15
        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-21>
          x-parser-schema-id: <anonymous-schema-20>
        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: ttsElevenMultilingual2ReceiveClose
    title: Tts eleven multilingual2 receive close
    description: Close session on ElevenLabs Multilingual v2
    type: receive
    messages:
      - &ref_16
        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-23>
          x-parser-schema-id: <anonymous-schema-22>
        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: ttsElevenMultilingual2SendReady
    title: Tts eleven multilingual2 send ready
    description: Receive ready signal from ElevenLabs Multilingual v2
    type: send
    messages:
      - &ref_17
        id: TtsReadyResponse
        contentType: application/json
        payload:
          - name: Ready Response
            description: Indicates the session is ready to receive messages.
            type: object
            properties:
              - name: type
                type: string
                description: ready
                required: true
              - name: session_id
                type: string
                description: Unique session identifier
                required: true
        headers: []
        jsonPayloadSchema:
          type: object
          description: Indicates the session is ready to receive messages.
          required:
            - type
            - session_id
          properties:
            type:
              type: string
              const: ready
              x-parser-schema-id: <anonymous-schema-25>
            session_id:
              type: string
              description: Unique session identifier
              x-parser-schema-id: <anonymous-schema-26>
          x-parser-schema-id: <anonymous-schema-24>
        title: Ready Response
        description: Indicates the session is ready to receive messages.
        example: |-
          {
            "type": "ready",
            "session_id": "sess_tts_abc123"
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: TtsReadyResponse
    bindings: []
    extensions: *ref_0
  - &ref_7
    id: ttsElevenMultilingual2SendAudioChunk
    title: Tts eleven multilingual2 send audio chunk
    description: Receive audio chunk from ElevenLabs Multilingual v2
    type: send
    messages:
      - &ref_18
        id: TtsAudioChunk
        contentType: application/json
        payload:
          - name: Audio Chunk
            description: Chunk of base64-encoded audio data.
            type: object
            properties:
              - name: type
                type: string
                description: audio_chunk
                required: true
              - name: data
                type: string
                description: Base64-encoded audio data
                required: true
              - name: sequence
                type: integer
                description: Sequence number for ordering chunks
                required: false
        headers: []
        jsonPayloadSchema:
          type: object
          description: Chunk of base64-encoded audio data.
          required:
            - type
            - data
          properties:
            type:
              type: string
              const: audio_chunk
              x-parser-schema-id: <anonymous-schema-28>
            data:
              type: string
              format: byte
              description: Base64-encoded audio data
              x-parser-schema-id: <anonymous-schema-29>
            sequence:
              type: integer
              description: Sequence number for ordering chunks
              x-parser-schema-id: <anonymous-schema-30>
          x-parser-schema-id: <anonymous-schema-27>
        title: Audio Chunk
        description: Chunk of base64-encoded audio data.
        example: |-
          {
            "type": "audio_chunk",
            "data": "UklGRiQAAABXQVZFZm10IBAAAAABAAEA...",
            "sequence": 1
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: TtsAudioChunk
    bindings: []
    extensions: *ref_0
  - &ref_8
    id: ttsElevenMultilingual2SendFlushed
    title: Tts eleven multilingual2 send flushed
    description: Receive flushed confirmation from ElevenLabs Multilingual v2
    type: send
    messages:
      - &ref_19
        id: TtsFlushed
        contentType: application/json
        payload:
          - name: Flushed
            description: Acknowledges that buffered output was flushed.
            type: object
            properties:
              - name: type
                type: string
                description: flushed
                required: true
        headers: []
        jsonPayloadSchema:
          type: object
          description: Acknowledges that buffered output was flushed.
          required:
            - type
          properties:
            type:
              type: string
              const: flushed
              x-parser-schema-id: <anonymous-schema-32>
          x-parser-schema-id: <anonymous-schema-31>
        title: Flushed
        description: Acknowledges that buffered output was flushed.
        example: |-
          {
            "type": "flushed"
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: TtsFlushed
    bindings: []
    extensions: *ref_0
  - &ref_9
    id: ttsElevenMultilingual2SendCleared
    title: Tts eleven multilingual2 send cleared
    description: Receive cleared confirmation from ElevenLabs Multilingual v2
    type: send
    messages:
      - &ref_20
        id: TtsCleared
        contentType: application/json
        payload:
          - name: Cleared
            description: Acknowledges that queued output was cleared.
            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-34>
          x-parser-schema-id: <anonymous-schema-33>
        title: Cleared
        description: Acknowledges that queued output was cleared.
        example: |-
          {
            "type": "cleared"
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: TtsCleared
    bindings: []
    extensions: *ref_0
  - &ref_10
    id: ttsElevenMultilingual2SendAudioEnd
    title: Tts eleven multilingual2 send audio end
    description: Receive audio end from ElevenLabs Multilingual v2
    type: send
    messages:
      - &ref_21
        id: TtsAudioEnd
        contentType: application/json
        payload:
          - name: Audio End
            description: Signals the end of audio generation.
            type: object
            properties:
              - name: type
                type: string
                description: audio_end
                required: true
              - name: data
                type: string
                description: >-
                  Always null on audio_end. Present for shape parity with
                  audio_chunk.
                required: false
        headers: []
        jsonPayloadSchema:
          type: object
          description: >-
            Signals the end of audio generation. Emitted after flush or close
            when the upstream provider marks the stream as final.
          required:
            - type
          properties:
            type:
              type: string
              const: audio_end
              x-parser-schema-id: <anonymous-schema-36>
            data:
              type: string
              description: >-
                Always null on audio_end. Present for shape parity with
                audio_chunk.
              x-parser-schema-id: <anonymous-schema-37>
          x-parser-schema-id: <anonymous-schema-35>
        title: Audio End
        description: Signals the end of audio generation.
        example: |-
          {
            "type": "audio_end",
            "data": null
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: TtsAudioEnd
    bindings: []
    extensions: *ref_0
  - &ref_11
    id: ttsElevenMultilingual2SendError
    title: Tts eleven multilingual2 send error
    description: Receive error from ElevenLabs Multilingual v2
    type: send
    messages:
      - &ref_22
        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-39>
            code:
              type: string
              description: Error code.
              enum:
                - auth_error
                - config_error
                - rate_limit
                - provider_error
              x-parser-schema-id: <anonymous-schema-40>
            message:
              type: string
              description: Human-readable error description
              x-parser-schema-id: <anonymous-schema-41>
          x-parser-schema-id: <anonymous-schema-38>
        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
  - *ref_11
sendMessages:
  - *ref_12
  - *ref_13
  - *ref_14
  - *ref_15
  - *ref_16
receiveMessages:
  - *ref_17
  - *ref_18
  - *ref_19
  - *ref_20
  - *ref_21
  - *ref_22
extensions:
  - id: x-parser-unique-object-id
    value: /v1/tts/elevenlabs/eleven-multilingual:2
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: []

````