Skip to main content

LatentScore audio synthesis library.

Project description

LatentScore

⚠️ Alpha: This library is under active development. API may change between versions.

Generate ambient music from text descriptions. Locally. No GPU required.

Read more about how it works here.

import latentscore as ls

ls.render("warm sunset over water").play()

Repo layout

  • latentscore/: core library + CLI demo
  • data_work/: data prep, benchmarking, and Modal training workflows
  • docs/: API/DX docs and examples
  • tests/: unit + smoke tests

Install

Conda

# download the repo
git clone https://github.com/prabal-rje/latentscore
cd latentscore

# create the env, install dependencies
conda env create -f environment.yml
conda activate latentscore

# install latentscore
pip install -e .

Pip

# download the repo
git clone https://github.com/prabal-rje/latentscore
cd latentscore

# create the env
python -m venv .venv
source .venv/bin/activate

# install dependencies, install latentscore
pip install -r requirements.txt
pip install -e .

Library usage

import latentscore as ls

audio = ls.render("warm sunrise over water")
audio.play()
audio.save(".examples/quickstart.wav")
  • Local-first by default (no API keys required).
  • Streaming supports speculative preview while slower models load; see docs/latentscore-dx.md.
  • Expressive local model download: latentscore download expressive.
  • Health check: latentscore doctor.

Demo CLI

python -m latentscore.demo --model fast --save

Outputs land in .examples/ (gitignored). For external LLM demos, create a .env file at the repo root and set GEMINI_API_KEY (or override via --api-key).

Live streaming example:

python -m latentscore.demo --live --model fast

Data work

See data_work/README.md for environment setup, pipeline scripts, benchmarks, and training.

Tooling

  • make check runs ruff, pyright, and pytest.
  • make format applies ruff format.

Contributing

See CONTRIBUTE.md for environment setup and contribution guidelines.

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

latentscore-0.1.0.tar.gz (86.8 kB view details)

Uploaded Source

Built Distribution

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

latentscore-0.1.0-py3-none-any.whl (85.0 kB view details)

Uploaded Python 3

File details

Details for the file latentscore-0.1.0.tar.gz.

File metadata

  • Download URL: latentscore-0.1.0.tar.gz
  • Upload date:
  • Size: 86.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for latentscore-0.1.0.tar.gz
Algorithm Hash digest
SHA256 530f6882e1aa55612aca82eba8ec26b9d13426c687c9bf60d53589288f492e47
MD5 7eccc638b043feafe7fb156c1404f1b6
BLAKE2b-256 a94add5f9f75eef5bb13d5e2284054e68f56bcafaf19dd56dbd7eebe766bec44

See more details on using hashes here.

Provenance

The following attestation bundles were made for latentscore-0.1.0.tar.gz:

Publisher: workflow.yml on prabal-rje/latentscore

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

File details

Details for the file latentscore-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: latentscore-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 85.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for latentscore-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3db9bf256852f8babf0c4db6ee15857a29550f4708c17e270e4c563b28356cec
MD5 a1fd00ccd245f3b95611ed7837cf9fab
BLAKE2b-256 c6a9a09c69979b975ae480a1e31dae5731d5c00fe79a3aee1c2fd7706f47b0db

See more details on using hashes here.

Provenance

The following attestation bundles were made for latentscore-0.1.0-py3-none-any.whl:

Publisher: workflow.yml on prabal-rje/latentscore

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