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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llama_index_tools_elevenlabs-0.3.0.tar.gz.
File metadata
- Download URL: llama_index_tools_elevenlabs-0.3.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
091c28aee999a897c4c5b4935b2f0ad474644c44ab103d6ff0c5355cdf62c4d4
|
|
| MD5 |
118fbfff2f7de03a677044ed4d420314
|
|
| BLAKE2b-256 |
07429273a56877d62f7f2317617a7f5f03512df9452381759f09516efe984843
|
File details
Details for the file llama_index_tools_elevenlabs-0.3.0-py3-none-any.whl.
File metadata
- Download URL: llama_index_tools_elevenlabs-0.3.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea0108c27ecb5f08e6f49e28c61627a0c1e12a2d11d28dd765890284b3c9b496
|
|
| MD5 |
6808c63ccbc16449ed1d33b6fcc09fa9
|
|
| BLAKE2b-256 |
6885e95381c04fef889076b6afdb4e47b9fcc8fc9251a93f20af801d1f3619ec
|