Telnyx · Capability

Telnyx API — Text To Speech Commands

Telnyx API — Text To Speech Commands. 3 operations. Lead operation: Stream text to speech over WebSocket. Self-contained Naftiko capability covering one Telnyx business surface.

Run with Naftiko TelnyxText To Speech Commands

What You Can Do

GET
Texttospeechoverws — Stream text to speech over WebSocket
/v1/text-to-speech/speech
POST
Generatespeech — Generate speech from text
/v1/text-to-speech/speech
GET
Listvoices — List available voices
/v1/text-to-speech/voices

MCP Tools

stream-text-speech-over-websocket

Stream text to speech over WebSocket

read-only idempotent
generate-speech-text

Generate speech from text

list-available-voices

List available voices

read-only idempotent

Capability Spec

telnyx-text-to-speech-commands.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Telnyx API — Text To Speech Commands
  description: 'Telnyx API — Text To Speech Commands. 3 operations. Lead operation: Stream text to speech over WebSocket.
    Self-contained Naftiko capability covering one Telnyx business surface.'
  tags:
  - Telnyx
  - Text To Speech Commands
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TELNYX_API_KEY: TELNYX_API_KEY
capability:
  consumes:
  - type: http
    namespace: telnyx-text-to-speech-commands
    baseUri: https://api.telnyx.com/v2
    description: Telnyx API — Text To Speech Commands business capability. Self-contained, no shared references.
    resources:
    - name: text-to-speech-speech
      path: /text-to-speech/speech
      operations:
      - name: texttospeechoverws
        method: GET
        description: Stream text to speech over WebSocket
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: generatespeech
        method: POST
        description: Generate speech from text
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: text-to-speech-voices
      path: /text-to-speech/voices
      operations:
      - name: listvoices
        method: GET
        description: List available voices
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: provider
          in: query
          type: string
          description: Filter voices by provider. If omitted, voices from all providers are returned.
        - name: api_key
          in: query
          type: string
          description: API key for providers that require one to list voices (e.g. ElevenLabs).
    authentication:
      type: bearer
      token: '{{env.TELNYX_API_KEY}}'
  exposes:
  - type: rest
    namespace: telnyx-text-to-speech-commands-rest
    port: 8080
    description: REST adapter for Telnyx API — Text To Speech Commands. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/text-to-speech/speech
      name: text-to-speech-speech
      description: REST surface for text-to-speech-speech.
      operations:
      - method: GET
        name: texttospeechoverws
        description: Stream text to speech over WebSocket
        call: telnyx-text-to-speech-commands.texttospeechoverws
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: generatespeech
        description: Generate speech from text
        call: telnyx-text-to-speech-commands.generatespeech
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/text-to-speech/voices
      name: text-to-speech-voices
      description: REST surface for text-to-speech-voices.
      operations:
      - method: GET
        name: listvoices
        description: List available voices
        call: telnyx-text-to-speech-commands.listvoices
        with:
          provider: rest.provider
          api_key: rest.api_key
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: telnyx-text-to-speech-commands-mcp
    port: 9090
    transport: http
    description: MCP adapter for Telnyx API — Text To Speech Commands. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: stream-text-speech-over-websocket
      description: Stream text to speech over WebSocket
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: telnyx-text-to-speech-commands.texttospeechoverws
      outputParameters:
      - type: object
        mapping: $.
    - name: generate-speech-text
      description: Generate speech from text
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: telnyx-text-to-speech-commands.generatespeech
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: list-available-voices
      description: List available voices
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: telnyx-text-to-speech-commands.listvoices
      with:
        provider: tools.provider
        api_key: tools.api_key
      outputParameters:
      - type: object
        mapping: $.