Skip to main content

A Python library for integrating with ElevenLabs.io's API

Project description

elevenlabs

PyPI - Downloads PyPI - Status PyPI

elevenlabs is an unofficial Python library that provides an easy-to-use interface for elevenlabs.io’ API. With this library, you can easily integrate with the API to generate voices.

Installation

To install elevenlabs, run:

pip install --upgrade elevenlabs

Basic Usage

Here’s an example of how you can use elevenlabs to retrieve data from the API:

from elevenlabs import ElevenLabs

eleven = ElevenLabs(api_key)

# Get a Voice object, by name or UUID
voice = eleven.voices["Arnold"]

# Generate the TTS
audio = voice.generate("Hey buddy! It's a beautiful day.")

# Save the TTS to a file named 'my_first_tts' in the working directory
audio.save("my_first_tts")

See example.py for more. For more advanced usage, refer to the (currently non-existent!) documentation and the API reference.

See the official ElevenLabs documentation for more information.

Real World Example

I’m currently using this library to produce fully-automated weather reports on my radio station, BMIX94. For a sample of how it sounds, here’s link to the latest weather report that will actually be broadcasting at various times throughout the day. That link is always pointing to the most recent weather report generated.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

elevenlabs-0.1.tar.gz (5.7 kB view details)

Uploaded Source

File details

Details for the file elevenlabs-0.1.tar.gz.

File metadata

  • Download URL: elevenlabs-0.1.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for elevenlabs-0.1.tar.gz
Algorithm Hash digest
SHA256 98e89d4e88988eea7915bf7096172b9db579b32a47f5e7c557dff9823b7ce304
MD5 0e4ff3908264483538c33398a204635a
BLAKE2b-256 6e63601585327aea135d8af737235a81cb452507b89ff0fcbf12e69567a80885

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