Generate embeddings for audio files using CLAP with llm
Project description
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 clip -c 'Hello world'
Or an audio file like this:
llm embed -m clip --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'
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file llm_clap-0.1.tar.gz
.
File metadata
- Download URL: llm_clap-0.1.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f099e6a313280a74a67e813010ce5ba66e61ebbe3b98763e9cce8319b82cd1a9 |
|
MD5 | 2bcfab70f7b3ed74e27e8175d8558eb4 |
|
BLAKE2b-256 | 43f57a31ff8a3d4913070efad4b1621e103e84b040a28fabb57b3f1f8ba029a0 |
File details
Details for the file llm_clap-0.1-py3-none-any.whl
.
File metadata
- Download URL: llm_clap-0.1-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f01179e65d445e1906d4e435f6d5277af4d5db40f5f8307c2d87ee9050ff965 |
|
MD5 | 95a9178ea5ddd5a719165f747ad63a23 |
|
BLAKE2b-256 | a5a7ace67abd704c189946c48029ea0e673e771fe1c44af5006d61e75ba22219 |