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.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


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.1.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for llama_index_tools_elevenlabs-0.1.0.tar.gz
Algorithm Hash digest
SHA256 840cae079a26f3ab93810d4a5247a76162272969144fe4ccd52cc33e2e58c9fe
MD5 9c9bf5d03d5f98ded3a9d187c32eb210
BLAKE2b-256 41897af5bddd7ac7d01d649abe740926c6052cd4127b47080adc51b4ba7e446c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_tools_elevenlabs-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 85e35848b80af10a4f66a46ce662d3e33ef62cc4df4468ed6d6968a319b84365
MD5 4c59c0931798047bd9feb0384605fe15
BLAKE2b-256 d34689c19d815b2aa977c82cbaab1cee904541268238ffd5762a3f0fdc154f3e

See more details on using hashes here.

Supported by

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