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.agent.openai import OpenAIAgent
speech_tool = ElevenLabsToolSpec(api_key="your-key")
agent = OpenAIAgent.from_tools(
speech_tool.to_tool_list(),
verbose=True,
)
print(
agent.chat(
'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
Release history Release notifications | RSS feed
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
File details
Details for the file llama_index_tools_elevenlabs-0.1.0.tar.gz
.
File metadata
- Download URL: llama_index_tools_elevenlabs-0.1.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 840cae079a26f3ab93810d4a5247a76162272969144fe4ccd52cc33e2e58c9fe |
|
MD5 | 9c9bf5d03d5f98ded3a9d187c32eb210 |
|
BLAKE2b-256 | 41897af5bddd7ac7d01d649abe740926c6052cd4127b47080adc51b4ba7e446c |
File details
Details for the file llama_index_tools_elevenlabs-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: llama_index_tools_elevenlabs-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85e35848b80af10a4f66a46ce662d3e33ef62cc4df4468ed6d6968a319b84365 |
|
MD5 | 4c59c0931798047bd9feb0384605fe15 |
|
BLAKE2b-256 | d34689c19d815b2aa977c82cbaab1cee904541268238ffd5762a3f0fdc154f3e |