Skip to main content

LLM plugin for embedding audio files (music, speech, sounds) and text using CLAP

Installation

Install this plugin in the same environment as LLM.

llm install llm-clap

Usage

Once you have installed an embedding model you can use it to embed text like this:

llm embed -m clap -c 'Hello world'

Or an audio file like this:

llm embed -m clap --binary -i AUDIO_1431.wav

Embeddings are more useful if you store them in a database - see the LLM documentation for details.

To embed every audio file in a folder and save them in a collection called "songs":

llm embed-multi songs -m clap --binary --files songs/ '*.wav'

You can then search for songs of specific things like this:

llm similar songs -c 'rap'

But you can also find songs/audio similar to a given audio file like this:

llm similar songs --binary -i MYSONG.wav

Metadata

Release files for llm-clap 0.2

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

Source distribution (sdist)

Source distribution for llm-clap 0.2
File Size Uploaded
llm_clap-0.2.tar.gz 6.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for llm-clap 0.2
File Interpreter ABI Platform
llm_clap-0.2-py3-none-any.whl Python 3 none any Details

Total release size: 13.4 kB

Release files / llm_clap-0.2.tar.gz

Download URL llm_clap-0.2.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
32052c7620d83f4939f17959990266df5b43480b38ec3b3c4af3269fc7cbfee3
BLAKE2b-256 checksum
How to use checksums
8c0ae9115156f90c1f1a5463a9b4faeebde6a34abf81f28d824b0998bf685de8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release files / llm_clap-0.2-py3-none-any.whl

Download URL llm_clap-0.2-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a4c1acc66d9f6bf95c7bb97227be574d17ab63b27df7ca3a1ddc9d5747240852
BLAKE2b-256 checksum
How to use checksums
7e0629b5d7972d899a61cc5496e83cf9cb466524a4e6323752dba92de44a4944
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release history Release notifications | RSS feed

This release

0.2 This release

2 release files

0.1

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