Skip to main content
Pre-release

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

Swarmauri Logo

Swarmauri Text-to-Speech Agent

swarmauri_agent_texttospeech provides a stateless agent that converts each text prompt into an audio file through any Swarmauri TTSBase provider.

PyPI Downloads Hits Python Versions License PyPI Version

Features

  • Converts one fresh text input into one audio file.
  • Uses any provider implementing Swarmauri's TTSBase contract.
  • Keeps no conversation history, memory, or system context.
  • Supports synchronous, asynchronous, and batch agent execution.
  • Generates distinct default paths for batch outputs.

Installation

uv add swarmauri_agent_texttospeech
pip install swarmauri_agent_texttospeech

Install a TTS provider package alongside the agent. For PlayHT:

uv add swarmauri_tts_playht

Or with pip:

pip install swarmauri_tts_playht

Usage

import os

from swarmauri_agent_texttospeech import TextToSpeechAgent
from swarmauri_tts_playht import PlayHTModel

tts = PlayHTModel(
    api_key=os.environ["PLAYHT_API_KEY"],
    user_id=os.environ["PLAYHT_USER_ID"],
    name="Play3.0-mini",
    voice="Adolfo",
)
agent = TextToSpeechAgent(tts=tts, output_path="greeting.mp3")

audio_path = agent.exec("Welcome to Swarmauri.")
print(audio_path)

Each call is independent. The agent passes only that call's text to the TTS provider and never constructs a conversation or system message.

Contributing

This package is part of the Swarmauri SDK. Contributions should follow the repository contribution and style guides.

License

Apache-2.0

Metadata

Release files for swarmauri_agent_texttospeech 0.11.0.dev4

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_agent_texttospeech 0.11.0.dev4
File Size Uploaded
swarmauri_agent_texttospeech-0.11.0.dev4.tar.gz 7.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for swarmauri_agent_texttospeech 0.11.0.dev4
File Interpreter ABI Platform
swarmauri_agent_texttospeech-0.11.0.dev4-py3-none-any.whl Python 3 none any Details

Total release size: 16.8 kB

Release files / swarmauri_agent_texttospeech-0.11.0.dev4.tar.gz

Download URL swarmauri_agent_texttospeech-0.11.0.dev4.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
4a4d7cc65f2ca595e1c69267061ce2d1963e8b9cc98e204d6bbe3e69fe3e4eea
BLAKE2b-256 checksum
How to use checksums
17d47b971e8230e1760cf627115ba15f7a8b1b0b5f8c18c3f8487ea81d219cf2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","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_agent_texttospeech-0.11.0.dev4-py3-none-any.whl

Download URL swarmauri_agent_texttospeech-0.11.0.dev4-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3cf61ade32d303807fbb1ea1a9bcbca6af990693e7be3df5e6ec8787d4a58c3e
BLAKE2b-256 checksum
How to use checksums
53980b13e10f9b4e0df7f192c6675aef254a2d879969c01d63ab46b531b85a5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","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 history Release notifications | RSS feed

This release

0.11.0.dev4 This release

2 release files

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