Skip to main content


Sinapsis
Sinapsis Csm

Generate speech with a conversational speech model.

Overview

sinapsis-csm — Text to speech using CSM TTS model.

Conversational speech generation can use context to produce more natural spoken continuations than isolated sentence synthesis. Exposing it as a Template lets text creation and audio playback share one graph.

Where it fits

Model weights and GPU memory requirements matter. Use it when voice quality and conversational context justify running a local speech model.

Installation

Requires Python 3.13 or later, as declared in this package’s manifest. Install the base distribution using your preferred package manager:

uv pip install sinapsis-csm
# or
pip install sinapsis-csm

Optional features and dependencies

The base installation includes the dependencies required by the package. The following extras are declared in this package’s pyproject.toml; install only those needed by your workflow. They are standard Python optional dependencies, not separate execution profiles.

Extra Adds / when to select it
data-tools Media readers/writers or data utilities for a complete pipeline. Dependencies: sinapsis-data-readers[all], sinapsis-data-writers[soundfile]
all Bundle declared by this package; its manifest includes data-tools.

For example:

uv pip install "sinapsis-csm[data-tools]"

The manifest also defines development-only dependency groups: dev (pre-commit, ruff, ty). These support source development and testing and are not runtime extras.

🚀 Features

Templates Supported

  • CSMTTS: Converts text into speech using the CSM model.

    Attributes
    • speaker_id (int, default: 0): Speaker identity index.
    • max_audio_length_ms (int, default: 10000): Max audio length in milliseconds.
    • device ("cpu" or "cuda", default: "cpu"): Device used for inference.
    • context (context: list[str] | None = None): Optional list of past utterances for context.
    • sample_rate_hz (int, default: 24000): Output audio sample rate.

Example Agent

The following is adapted directly from the package’s shipped csm_app.yaml configuration. Save it as my_csm_agent.yaml. The example may require model checkpoints, input files, additional Template packages, or provider credentials as described in its configuration.

agent:
  name: my_csm_agent
  description: Agent that synthesizes speech from text using the CSM model.

templates:
  - template_name: InputTemplate
    class_name: InputTemplate
    attributes: {}

  - template_name: CSMTTS
    class_name: CSMTTS
    template_input: InputTemplate
    attributes:
      speaker_id: 0
      max_audio_length_ms: 10000
      device: cpu
      context: null
      sample_rate_hz: 24000
sinx jobs run my_csm_agent.yaml

More configurations: csm_app.yaml, csm_agent.yaml.

Documentation

License

Sinapsis open-source components are available under your choice of the MIT License or the Apache License 2.0, unless otherwise noted.

Metadata

Release files for sinapsis-csm 1.0.0

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

Source distribution (sdist)

Source distribution for sinapsis-csm 1.0.0
File Size Uploaded Provenance Actions
sinapsis_csm-1.0.0.tar.gz 135.7 kB Without provenance Details for sinapsis_csm-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sinapsis-csm 1.0.0
File Interpreter ABI Platform Actions
sinapsis_csm-1.0.0-py3-none-any.whl Python 3 none any Details for sinapsis_csm-1.0.0-py3-none-any.whl

Total release size: 147.0 kB

Release files / sinapsis_csm-1.0.0.tar.gz

Download URL sinapsis_csm-1.0.0.tar.gz
Size 135.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b8fc0d524361e168df9a936374731f25e04364fc6f8b5c01ffcaac31c41bfd63
BLAKE2b-256 checksum
How to use checksums
ee92162c84bf94c822a827292ce2afae508e278ed35a63350ccff3cfaf3c46a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.17

Release files / sinapsis_csm-1.0.0-py3-none-any.whl

Download URL sinapsis_csm-1.0.0-py3-none-any.whl
Size 11.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a065f4ecd8806c7904efcaeaa71fa8f8eb237e15312bcc4f668cf294c40ac966
BLAKE2b-256 checksum
How to use checksums
9c6b2cce4f1478195d39a35e4ee30bf9e94712dfcea1dd9cd3af024c748d0374
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.17

Security for sinapsis-csm 1.0.0

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.

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