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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for llama_index_tools_elevenlabs-0.2.1.tar.gz
Algorithm Hash digest
SHA256 3987025b680c1fbcaa9379d5e2f3843344f46bb1505d9b4e541581b15b60c491
MD5 9c06fc135fb660204bd86a635a062aba
BLAKE2b-256 0844523406ad577ff21a299dbff7b22cfc699c388f74242e331afbe76fcf2eb5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_tools_elevenlabs-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6c652fcdc498065edd429d3362c645b557ea1825550b688820e673613d43312e
MD5 ff1b648c258db0dfef9b1c07c5767700
BLAKE2b-256 322d481859bf19b58008ebe3725b86ea6a0abb7d5dab8956c0cdfbfbcf9b1648

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