agentskit.js
ToolsIntegrations

elevenlabs

ElevenLabs text-to-speech — high-quality voices in 30+ languages. For narration, voice agents, IVR flows.

import { elevenlabs } from '@agentskit/tools'

const runtime = createRuntime({
  adapter,
  tools: [...elevenlabs({ apiKey: process.env.ELEVENLABS_API_KEY! })],
})

Sub-tools

NamePurpose
elevenlabsTtsConvert text to audio (returns buffer + content-type)

Bundled: elevenlabs(config).

Config

type ElevenLabsConfig = {
  apiKey: string
  defaultVoiceId?: string
  modelId?: string          // e.g. 'eleven_multilingual_v2'
  fetch?: typeof fetch
}

Example — narrate a digest

const runtime = createRuntime({
  adapter,
  tools: [
    ...elevenlabs({ apiKey, defaultVoiceId: '21m00Tcm4TlvDq8ikWAM' }),
    ...s3({ client, bucket: 'podcast-output' }),
  ],
})

await runtime.run('Summarize today\'s PRs, narrate with ElevenLabs, save MP3 to S3.')
✎ Edit this page on GitHub·Found a problem? Open an issue →·How to contribute →

On this page