Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Swarmauri Logo

swarmauri_tts_deepinfra_kokoro

Alpha Swarmauri DeepInfraKokoroTTS component. Native Kokoro text/preset_voice schema, separate from OpenAI-compatible speech.

Downloads Hits Python License Version

Features

  • File synthesis, async synthesis and bounded batches from JSON-encoded audio.
  • Provider-specific schemas and local input validation.
  • Fixed provider endpoints and no automatic replay of billable requests.
  • Python 3.10-3.14; no swarmauri_standard dependency.

Installation

uv add --prerelease allow swarmauri_tts_deepinfra_kokoro
pip install --pre swarmauri_tts_deepinfra_kokoro

This source candidate needs swarmauri_base>=0.11.0.dev12 published first.

Usage

import os
from swarmauri_tts_deepinfra_kokoro import DeepInfraKokoroTTS

provider = DeepInfraKokoroTTS(
    api_key=os.environ["DEEPINFRA_API_KEY"],
    preset_voices=["af_bella", "af_heart"],
    speed=1.0,
)
path = provider.predict("Welcome to Swarmauri.", "welcome.wav")
# await provider.apredict(text, audio_path)
# provider.batch({"Hello": "hello.wav"})
# await provider.abatch({"Hello": "hello.wav"}, max_concurrent=2)

API boundary

File responses must contain successful inference status (when reported) and base64 audio or an audio data URI. URLs are rejected and never downloaded. The reported output format must match the request. WAV responses need a RIFF/WAVE header; no transcoding is performed. response_format supports wav (default), mp3, opus, flac and pcm. Select matching file extensions. The component can be used with TextToSpeechAgent; set its output_path to match the codec.

stream/astream raise NotImplementedError locally, before an API call. Catalog streaming claims alone do not establish native framing or codec semantics. No complete JSON response is presented as an incremental stream. Webhooks, voice creation/deletion, reference uploads and account management are excluded. Kokoro uses text, preset_voice (a nonempty list for voice mixing), output_format, speed (0.25-4) and stream=false. Its text limit is 10000 characters.

Primary reference: provider API.

Verification and alpha status

Live API behavior is unverified; tracked in #6305. No paid synthesis was run. Retain version 0.1.0a1 and Development Status :: 3 - Alpha until maintainers review sufficient live evidence. Mocked schemas do not prove playable audio, model availability, voice controls, quality, latency or cost.

Live tests require SWARMAURI_LIVE_TTS=1 plus private DEEPINFRA_API_KEY. Configure SWARMAURI_TTS_VOICE for your account. Select the model with SWARMAURI_TTS_MODEL. A key alone never enables the suite. Default selection is predict only (one billable request). SWARMAURI_LIVE_TTS_OPERATIONS selects a comma-separated operation list. The four supported operations make six billable requests per model. Streaming tests stay skipped. Never paste credentials or unmasked headers into issues or logs. See the verification tracker.

License

Apache-2.0. Part of the Swarmauri SDK.

Metadata

Release files for swarmauri_tts_deepinfra_kokoro 0.1.0a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for swarmauri_tts_deepinfra_kokoro 0.1.0a1
File Size Uploaded Provenance Actions
swarmauri_tts_deepinfra_kokoro-0.1.0a1.tar.gz 8.3 kB Without provenance Details for swarmauri_tts_deepinfra_kokoro-0.1.0a1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for swarmauri_tts_deepinfra_kokoro 0.1.0a1
File Interpreter ABI Platform Actions
swarmauri_tts_deepinfra_kokoro-0.1.0a1-py3-none-any.whl Python 3 none any Details for swarmauri_tts_deepinfra_kokoro-0.1.0a1-py3-none-any.whl

Total release size: 18.4 kB

Release files / swarmauri_tts_deepinfra_kokoro-0.1.0a1.tar.gz

Download URL swarmauri_tts_deepinfra_kokoro-0.1.0a1.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a851d0b3e2ed1cc97c315454f391633da556baf2efe501d46bc4a493d6284718
BLAKE2b-256 checksum
How to use checksums
c6ef9a2ae850e24f994d7ee48d9ab2dc939fc1a11cb32d9926806276841acc4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / swarmauri_tts_deepinfra_kokoro-0.1.0a1-py3-none-any.whl

Download URL swarmauri_tts_deepinfra_kokoro-0.1.0a1-py3-none-any.whl
Size 10.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c0269c88a65b826cc0c0a1f0c8097f84d546c86f05d745048d7af9a89efc363b
BLAKE2b-256 checksum
How to use checksums
7ae336664ae992538831705ca100619320915cf0e417dfda0cf8f51f614440c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for swarmauri_tts_deepinfra_kokoro 0.1.0a1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page