Skip to content
AnthusAIPublic

About

Open-source just-in-time TTS embed for the web (MIT)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Auritus

Open-source (MIT) drop-in web embed that just-in-time generates TTS audio of a page's content. You choose the open model, its parameters, and where synthesis runs: a GPU you control first, with AWS GPU capacity available as a dependable fallback.

Site: aurit.us

What it does

  1. A generator module walks the host page DOM, applies ignore rules, and builds a TTS input string plus a stable content hash.
  2. A player module requests (or waits for) audio for that hash and plays it.
  3. A cloud backend (CDK) stores jobs behind a DynamoDB mutex. A local GPU worker can claim jobs; if none claims within a configurable timeout (default 15 minutes), Step Functions submits an AWS Batch GPU job.
  4. Pluggable TTS backends: Kokoro (default speech), Qwen 3 CustomVoice, F5-TTS, Higgs Audio v3, Chatterbox, and Fish Speech.

How it works

Auritus architecture: the publisher page sends a content hash to Auritus; a local GPU worker handles synthesis first, AWS handles the fallback, and the reader receives a private signed audio URL.

Auritus is designed for teams that want the convenience of embedded narration without handing their page content and model choices to a TTS vendor. The browser sends only the content it needs to narrate to infrastructure you operate. A local worker can remove cloud GPU cost for ordinary work; AWS Batch keeps the experience available when that worker is offline or busy.

AWS deployment architecture

AWS architecture: a publisher origin calls the Auritus API, which coordinates DynamoDB, Step Functions, AWS Batch, private audio storage, and a short-lived playback URL; an optional local worker can claim first.

The complete component explanation, identity choices, and security-design status are in docs/ARCHITECTURE.md. To regenerate these SVGs from their D2 source, see docs/diagrams/README.md and run make diagrams.

Status

The public site is live at aurit.us. The home page and example pages play Kokoro, Qwen, F5, Higgs, Chatterbox, and Fish Speech. Local GPU workers generate that audio when they claim jobs; the AWS Batch GPU image is the fallback after the claim timeout. Operator CLI login is Cognito email and password. The CLI is not yet published to PyPI; install from source or a GitHub release. See the Kanbus board (kbs now) for remaining milestones.

Quick start (operators)

git clone https://github.com/AnthusAI/Auritus.git
cd Auritus
pip install -e cli/
auritus deploy
auritus login --username [email protected]
auritus site create --origin https://example.com
auritus worker

auritus deploy writes Cognito pool and client ids into local config. auritus login then prompts for your Cognito password when --password is omitted.

Embed snippet (after auritus site create):

<script
  src="https://aurit.us/embed.js"
  data-auritus-site-key="YOUR_SITE_KEY"
  data-auritus-api="YOUR_API_URL"
  data-auritus-name="Article title"
  data-auritus-byline="By Author"
></script>

Use as a library

Other programs can synthesize speech offline, with no login, config file or AWS. You only need the chosen backend's dependencies.

from auritus import SpeechOptions, Voice, synthesize

speech = synthesize(
    "Welcome to the show. [[auritus:break]] Tonight, something new.",
    Voice.parse("kokoro:af_heart"),
    SpeechOptions(speed=1.1, seed=3),
)
speech.wav          # mono 16-bit WAV bytes
speech.sample_rate  # e.g. 24000
speech.segments     # one timed Segment per [[auritus:break]] block
speech.provenance   # engine, version, backend, model, voice, options
speech.request_key  # stable SHA-256 of the request, for caching

request_key(text, voice, options) gives the same key without synthesizing. A backend that can't honour an option raises UnsupportedOption rather than ignoring it. The fake backend makes a deterministic tone for tests.

Use from another language

Run python -m auritus.speech_bridge and exchange protocol-v1 newline-delimited JSON requests. The process handles multiple requests until EOF. stdout contains JSON responses; diagnostics go to stderr. Start with a capabilities request:

{"protocol":1,"id":"check-1","op":"capabilities","voice":"kokoro:af_heart"}

Synthesis accepts text, voice, speed, seed, and outputDir alongside protocol, id, and op: "synthesize". Create an empty, non-symlink segment directory for each request. The bridge publishes speech.wav and speech.json together there and returns sample counts, digests, and model provenance.

Install runtime dependencies and model and voice files explicitly before use. The bridge does not download them or fall back to a paid provider. Readiness currently checks Kokoro's cached files; it does not prove successful inference. Other real backends report not ready until their offline loading is supported. The fake backend is simulated and intended for protocol tests.

request_key identifies the Auritus request but does not include immutable snapshot revisions. Consumers caching bridge audio must include both modelRevision and extensions["auritus.kokoro"].voiceRevision, and disable reuse when either is unavailable or cacheDisabledReason is non-null.

Layout

Path Role
cli/ Python CLI (auritus)
cdk/ Python CDK backend
embed/ TypeScript generator + player
worker-image/ GPU Batch container
site/ Next.js site on Amplify
features/ Gherkin specifications
docs/ Architecture and self-hosting

Development

make check

Git Flow: product PRs target develop. main is the release branch (semantic-release + PyPI). Kanbus board commits go straight to develop (no PR).

License

MIT. See LICENSE. TTS model licenses are recorded separately in docs/TTS_LICENSES.md.

About

Open-source just-in-time TTS embed for the web (MIT)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages