Skip to main content

Elevenlabs.io Tool

This tool allows Agents to use Elevenlabs.io text-to-speech to create audio files from text. To see more and get started, visit https://elevenlabs.io/

Usage

This tool has a more extensive example usage documented in a Jupyter notebook here

from llama_index.tools.elevenlabs import ElevenLabsToolSpec
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI

speech_tool = ElevenLabsToolSpec(api_key="your-key")

agent = FunctionAgent(
    tools=speech_tool.to_tool_list(),
    llm=OpenAI(model="gpt-4.1"),
)
print(
    await agent.run(
        'Create speech from the following text "Hello world!" and output the file to "speech.wav"'
    )
)

text_to_speech: Takes an input string and synthesizes audio to play on the users computer get_voices: Lists the dumped Pydantic models for all available elevenlabs.io voices

This loader is designed to be used as a way to load data as a Tool in a Agent.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llama_index_tools_elevenlabs-0.4.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llama_index_tools_elevenlabs-0.4.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file llama_index_tools_elevenlabs-0.4.0.tar.gz.

File metadata

  • Download URL: llama_index_tools_elevenlabs-0.4.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llama_index_tools_elevenlabs-0.4.0.tar.gz
Algorithm Hash digest
SHA256 c9650a52775e3cb57cde3696445bcf832378e5e38385cebe188d8bbb5fa69090
MD5 f22b1047a8f20ddca752ab32e7c1594d
BLAKE2b-256 c7f2bf1ab76348a46aab78af967c1b45515566a08c62db13b4efec9c56a0659c

See more details on using hashes here.

File details

Details for the file llama_index_tools_elevenlabs-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: llama_index_tools_elevenlabs-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llama_index_tools_elevenlabs-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dfbe1d9b78971c95cbcdb43ba50b2b16d5783c9683b5bd24142a70f9c93db1f8
MD5 f33aebc37f11f40ff134a1abcef5a632
BLAKE2b-256 16027f4b55d771aacf23499b33980f2cfd1547f43504e773d28c3731b5a7d3d8

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 files

0.3.0

2 files

0.2.1

2 files

0.2.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page