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 demodata_work/: data prep, benchmarking, and Modal training workflowsdocs/: API/DX docs and examplestests/: 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 checkruns ruff, pyright, and pytest.make formatappliesruff 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
530f6882e1aa55612aca82eba8ec26b9d13426c687c9bf60d53589288f492e47
|
|
| MD5 |
7eccc638b043feafe7fb156c1404f1b6
|
|
| BLAKE2b-256 |
a94add5f9f75eef5bb13d5e2284054e68f56bcafaf19dd56dbd7eebe766bec44
|
Provenance
The following attestation bundles were made for latentscore-0.1.0.tar.gz:
Publisher:
workflow.yml on prabal-rje/latentscore
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
latentscore-0.1.0.tar.gz -
Subject digest:
530f6882e1aa55612aca82eba8ec26b9d13426c687c9bf60d53589288f492e47 - Sigstore transparency entry: 814001012
- Sigstore integration time:
-
Permalink:
prabal-rje/latentscore@8b96ec7db22cb34ab0fd9f5a9c0c1853cb8e328a -
Branch / Tag:
refs/tags/v0.1.0-alpha - Owner: https://github.com/prabal-rje
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@8b96ec7db22cb34ab0fd9f5a9c0c1853cb8e328a -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3db9bf256852f8babf0c4db6ee15857a29550f4708c17e270e4c563b28356cec
|
|
| MD5 |
a1fd00ccd245f3b95611ed7837cf9fab
|
|
| BLAKE2b-256 |
c6a9a09c69979b975ae480a1e31dae5731d5c00fe79a3aee1c2fd7706f47b0db
|
Provenance
The following attestation bundles were made for latentscore-0.1.0-py3-none-any.whl:
Publisher:
workflow.yml on prabal-rje/latentscore
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
latentscore-0.1.0-py3-none-any.whl -
Subject digest:
3db9bf256852f8babf0c4db6ee15857a29550f4708c17e270e4c563b28356cec - Sigstore transparency entry: 814001013
- Sigstore integration time:
-
Permalink:
prabal-rje/latentscore@8b96ec7db22cb34ab0fd9f5a9c0c1853cb8e328a -
Branch / Tag:
refs/tags/v0.1.0-alpha - Owner: https://github.com/prabal-rje
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@8b96ec7db22cb34ab0fd9f5a9c0c1853cb8e328a -
Trigger Event:
release
-
Statement type: