Skip to main content

Generate realistic voices from text, other speeches, and more using the Elevenlabs library.

Project description



Sinapsis Speech

Sinapsis package with a suite of templates and utilities for seamlessly integrating, configuring, and running functionalities powered by ElevenLabs

🐍 Installation📦 Features🌐 Webapp📙 Documentation🔍 License

🐍 Installation

[!IMPORTANT] Sinapsis project requires Python 3.10 or higher.

We strongly encourage the use of uv, although any other package manager should work too. If you need to install uv please see the official documentation.

  1. Install using your favourite package manager.

Example with uv:

  uv pip install sinapsis-elevenlabs --extra-index-url https://pypi.sinapsis.tech

or with raw pip:

  pip install sinapsis-elevenlabs --extra-index-url https://pypi.sinapsis.tech

Change the name of the package for the one you want to install.

[!TIP] You can also install all the packages within this project:

  uv pip install sinapsis-speech[all] --extra-index-url https://pypi.sinapsis.tech

📦 Features

This package provides a suite of templates and utilities for seamlessly integrating, configuring, and running text-to-speech (TTS) and voice generation functionalities powered by ElevenLabs:

  • Text-to-speech: Template for converting text into speech using ElevenLabs' voice models.

  • Voice generation: Template for generating custom synthetic voices based on user-provided descriptions.

🌐 Webapps

The webapps included in this project showcase the modularity of the templates, in this case for speech generation tasks.

[!IMPORTANT] To run the app you first need to clone this repository:

git clone git@github.com:Sinapsis-ai/sinapsis-speech.git
cd sinapsis-speech

[!NOTE] If you'd like to enable external app sharing in Gradio, export GRADIO_SHARE_APP=True

[!IMPORTANT] Elevenlabs requires an api key to run any inference. Please go to the official website, create an account. If you already have an account, go to the token page and generate a token.

[!IMPORTANT] set your env var using export ELEVENLABS_API_KEY='your-api-key'

🐳 Build with Docker
  1. Build the Docker image:
docker compose -f docker/compose.yaml build
  1. Launch the service:
docker compose -f docker/compose_apps.yaml up -d sinapsis-elevenlabs
  1. Check the logs
docker logs -f sinapsis-elevenlabs
  1. The logs will display the URL to access the webapp, e.g.,::
Running on local URL:  http://127.0.0.1:7860
  1. To stop the app:
docker compose -f docker/compose_apps.yaml down sinapsis-elevenlabs
💻 UV
  1. Sync the virtual environment:
uv sync --frozen
  1. Install the wheel:
uv pip install sinapsis-speech[all] --extra-index-url https://pypi.sinapsis.tech
  1. Activate the virtual environment:
source .venv/bin/activate
  1. Launch the demo:
python webapps/elevenlabs/elevenlabs_tts_app.py
  1. Open the displayed URL, e.g.:
Running on local URL:  http://127.0.0.1:7860

NOTE: The URL can be different, please make sure you check the logs.

📙 Documentation

Documentation is available on the sinapsis website

Tutorials for different projects within sinapsis are available at sinapsis tutorials page

🔍 License

This project is licensed under the AGPLv3 license, which encourages open collaboration and sharing. For more details, please refer to the LICENSE file.

For commercial use, please refer to our official Sinapsis website for information on obtaining a commercial license.

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

sinapsis_elevenlabs-0.1.0.tar.gz (46.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sinapsis_elevenlabs-0.1.0-py3-none-any.whl (35.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sinapsis_elevenlabs-0.1.0.tar.gz
  • Upload date:
  • Size: 46.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.16

File hashes

Hashes for sinapsis_elevenlabs-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cb4c2173a612914cec1456279adff2562d0e3122eefb826818a4475ba2f4916e
MD5 d67a55d643cbaf7dbe461211dfa07be1
BLAKE2b-256 767efb3a9d3df17fb003c6a9fc2fecd397e9beb4b4afaef4766b48914a785640

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sinapsis_elevenlabs-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5be62e1ab0b4463f992f9e0e52b7dd57776f50815a54d6c9fcdc14f209e976ea
MD5 a900e5b610ff5900c3299c7956ba25e5
BLAKE2b-256 f3f43a3ab8bfb910aa2812a9d141b1f006f7e30b34ae90b7d86e4242a4215266

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