Skip to main content

ElevenLabs TTS and sound effects provider adapter for genblaze

Project description

genblaze-elevenlabs

ElevenLabs text-to-speech + sound-effects provider adapter for genblaze — AI voice and SFX pipelines with SHA-256 provenance manifests on every clip.

genblaze-elevenlabs wraps ElevenLabs' TTS models (Eleven v3, Multilingual v2, Flash v2.5) and text-to-sound-effects API as genblaze providers. Generate narration, dialogue, and sound design with tracked provenance; compose into multi-step AI pipelines; persist outputs to Backblaze B2 or any S3-compatible store.

Why genblaze-elevenlabs

  • Eleven v3 + Multilingual v2 + Flash v2.5 — Pick quality (v3), breadth (multilingual, 29 languages), or latency (~75 ms for Flash).
  • Text-to-sound-effects — generate Foley / ambient sound with the ElevenLabsSFXProvider.
  • Provenance by default — SHA-256-verified manifest on every clip; embed manifest directly into MP3 files.
  • Word-level timings — ElevenLabs alignment flows into genblaze's WordTiming / Track models for downstream subtitling + AV compositing.
  • Production-ready — retries, timeouts, moderation hooks, step caching.
  • Durable storage — plug genblaze-s3 in for Backblaze B2 / AWS S3 / R2 / MinIO persistence.

Providers + models

Provider class Modality Models
ElevenLabsTTSProvider audio eleven_v3 (most expressive, 70+ languages), eleven_multilingual_v2 (stable, 29 languages), eleven_flash_v2_5 (~75 ms latency)
ElevenLabsSFXProvider audio eleven_text_to_sound_v2

Registered via entry points as elevenlabs-tts and elevenlabs-sfx.

Install

pip install genblaze-elevenlabs

Quickstart — TTS narration

pip install genblaze-core genblaze-elevenlabs
export ELEVENLABS_API_KEY="..."
from genblaze_core import Modality, Pipeline
from genblaze_elevenlabs import ElevenLabsTTSProvider

run, manifest = (
    Pipeline("narration")
    .step(ElevenLabsTTSProvider(output_dir="output/audio"),
          model="eleven_v3",
          prompt="Welcome to Genblaze — AI media pipelines with full provenance.",
          modality=Modality.AUDIO,
          voice_id="JBFqnCBsd6RMkjVDRZzb",
          output_format="mp3_44100_128")
    .run(timeout=60)
)
print(run.steps[0].assets[0].url, manifest.canonical_hash)

Quickstart — text-to-sound-effects

from genblaze_elevenlabs import ElevenLabsSFXProvider

run, manifest = (
    Pipeline("sfx")
    .step(ElevenLabsSFXProvider(output_dir="output/sfx"),
          model="eleven_text_to_sound_v2",
          prompt="Thunder crashing during a heavy rainstorm with distant rumbling",
          modality=Modality.AUDIO, duration_seconds=10)
    .run(timeout=60)
)

Persist to Backblaze B2

from genblaze_core import KeyStrategy, ObjectStorageSink
from genblaze_s3 import S3StorageBackend

storage = ObjectStorageSink(
    S3StorageBackend.for_backblaze("my-bucket"),
    key_strategy=KeyStrategy.HIERARCHICAL,
)
# pass sink=storage to .run(…)

Backblaze B2 is the recommended default sink for AI-generated audio — cost-efficient, S3-compatible, Object Lock for immutable manifests.

Credentials

Env var Where to get it
ELEVENLABS_API_KEY https://elevenlabs.io/app/settings/api-keys

Documentation

Related packages

License

MIT

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

genblaze_elevenlabs-0.3.1.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

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

genblaze_elevenlabs-0.3.1-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file genblaze_elevenlabs-0.3.1.tar.gz.

File metadata

  • Download URL: genblaze_elevenlabs-0.3.1.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for genblaze_elevenlabs-0.3.1.tar.gz
Algorithm Hash digest
SHA256 83ff5753d24db39f2ee015cd2a740e5a574b917b98f92034c943bfe6a92e0726
MD5 9c6b52521f608c3f7d7dbfb771c53cef
BLAKE2b-256 7a0fb01c5e60ba59f44e2021a64fd2d7b9cd55e4d85fe8a671dcb2ce6a6b5370

See more details on using hashes here.

Provenance

The following attestation bundles were made for genblaze_elevenlabs-0.3.1.tar.gz:

Publisher: release.yml on backblaze-labs/genblaze

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file genblaze_elevenlabs-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for genblaze_elevenlabs-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1d28f1b1a3b0db4f044c2b77685dc0e7c70d9306bc545dac9e699709653b361e
MD5 924f17743220c09d099715bb9a3ae4a3
BLAKE2b-256 e8806867296a42ec228e298acefb3197beda88d527c96fd51f5b88ee89916ca1

See more details on using hashes here.

Provenance

The following attestation bundles were made for genblaze_elevenlabs-0.3.1-py3-none-any.whl:

Publisher: release.yml on backblaze-labs/genblaze

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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