Skip to main content

llama-index tools elevenlabs integration

Project description

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.

Project details


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.2.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.2.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for llama_index_tools_elevenlabs-0.2.0.tar.gz
Algorithm Hash digest
SHA256 be95805ec49135ad233bf13e435b894e6334419d607548b5de52baec0b75af0c
MD5 9f2b41276f22123f5200789c03a3fd41
BLAKE2b-256 ae4c5b27f8d630f152fe87c2388b080daebaef5f60d4c3f64ad0566b8dc008ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_tools_elevenlabs-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 07edd112a1a6eb21eb3bc844739c09ab636fb038b0fb3f7eef2399da7ee6e5ac
MD5 f21b806f302a2e259da49c27bacbd2eb
BLAKE2b-256 4ae67ff7d1f08c8669b7e62d9989a6ded1b72a08974bd05a4a8d92128a6f215f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page