Skip to content
Proyek

NeptuneHub/audiomuse-ai-plugin

Lihat di GitHub

Tentang

AudioMuse-AI Jellyfin Plugin enhances music discovery by using sonic analysis to queue similar songs in real time.

Desain dan media

Cara angka ini diukur

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
+1
dalam 15 hari
+3
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

GitHub license Latest Tag Media Server Support: Jellyfin 12.0 Donate using Liberapay

AudioMuse AI-Plugin - The Jellyfin AudioMuse AI plugin

AudioMuse-AI Logo

AudioMuse-AI-Plugin is a Jellyfin plugin that integrates core AudioMuse-AI features into the Jellyfin front-end. It also provides a 1:1 API mapping, allowing front-end developers to interact directly with Jellyfin endpoints for seamless integration.

For the end-user the plugin directly integrate in Jellyfin this scheduled task:

  • Analysis task: By default scheduled daily
  • Clustering task: By default scheduled weekly
  • Sonic Fingerprint task: By default scheduled weekly

Front-End tested with the plugin are:

Other frontnend not in this list could also work by using the below API.

IMPORTANT NOTE:

  • After installation, the AudioMuse-AI-Plugin must be configured with the correct AudioMuse-AI endpoint. Make sure the AudioMuse-AI core container application is also deployed, as the plugin depends on it.

The full list of AudioMuse-AI related repository are:

Table of Contents

Versioning TAG

You will always have a specific tag version pluse the laster version. In future the devel tag could also be included.

Here some example:

  • v0.0.1-alpha (developer preview)
  • latest (always points to the newest release)

Prerequisites

  • A running Jellyfin server
  • An existing AudioMuse-AI deployment (in its own container)

Installation and Configuration

  • Go on Jellyfin > Control Panel > Plugin Catalog
  • Click on the gear-shaped settings icon on the top on the page to add a new manifest
  • Add the AudioMuse AI manifest: https://raw.githubusercontent.com/NeptuneHub/audiomuse-ai-plugin/master/manifest.json
  • Going back on Plugin Catalog youl will now show the plugin under the General section. Click on it and then install.
  • RESTART JELLYFIN
  • Now go back to the list of plugin installed, and you just need to configure the URL to reach AudioMuse-AI container, for example: http://192.168.3.14:8000
  • Media Server Name (optional): if your AudioMuse-AI backend is configured with multiple media servers (multi-server setup), you can also type the name of the media server (as configured in AudioMuse-AI) that this Jellyfin instance corresponds to. When set, the plugin automatically appends the server=NAME-OF-THE-SERVER parameter to the supported API calls. If left blank, the parameter is not sent and the backend uses its default server.

Usage

For Developer: Once Jellyfin is back online, the AudioMuse-AI middleware will be loaded automatically. Your applications can now call Jellyfin’s API endpoints directly so no additional proxying through the AudioMuse-AI service is required.

For the final user: In the scheduled task section you will find all the AudioMuse AI tasks. You can wait for their schedule or launch them manually (the first time it is recommended to manually launch them). The InstantMix functionality is reachable as usual by clicking on a specific Artist, Album, Song or Playlist with the right button and selecting the Instant Mix functionality.

Build yourself

If you want download the repo, do some change and then re-build locally, here the steps:

  • Download the repo locally and do your change
git clone https://github.com/NeptuneHub/audiomuse-ai-plugin.git
  • go in the root folder of the repo and run this command:
dotnet restore && dotnet publish -c Release -o ./publish
  • The only file that you need is this one, you can ignore all the other:
Jellyfin.Plugin.AudioMuseAi.dll

In this build-yourself scenario you will need to copy&past the dll in an AudioMuse-AI directory under plugin manully.

IF instead you fork this repo, there is an automated workflow that automatically build when you add a new tag from git:

git tag v0.0.6-alpha        
git push origin v0.0.6-alpha

Requirements: For compiling the actual version of the repo you need dotnet-sdk-8.0, new version could require something newer, on Ubuntu/Debian install in this way:

sudo apt-get update
sudo apt-get install -y dotnet-sdk-8.0

API CALL EXAMPLE

Below some API call example that you can run from linux cli, just remember to put in YOUR-JELLYFIN-URL:PORT and YOUR-JELLYFIN-API-TOKEN. For integration in a front-end you probably will not need the token because you will use the login session of the user.

For a more complete documentation rembemer to see the AudioAMuse-AI repo and also remember that the AudioMuse-AI API have an apiddocs that you can use like http://YOUR-AUDIOMUSE-URL:PORT/apidocs/.

The aims is to replicate them 1:1, if this dosen't happen please feel a detailed issue (maybe with an example of call directly to AudioMuse-AI API and the different call to the AudioMuse-AI-Plugin API for check).

[!IMPORTANT]

  • If AudioMuse-Ai has multiple Music Server configured, you need to configure the 'server' in the plugin to match the server name on AudioMuse-AI. You don't need to pass it in any of the bleow api example

info

Used for know the version of the plugin and the APi actually exposed.

Important: this API return the full list of API. If this are not documented here means that they are experimental.

curl -G 'http://YOUR-JELLYFIN-URL:PORT/AudioMuseAI/info' \
  -H 'Authorization: MediaBrowser Client="MyCLI", Device="Ubuntu CLI", DeviceId="ubuntu-cli-01", Version="1.0.0", Token="YOUR-JELLYFIN-API-TOKEN"' \
  -H 'Accept: application/json'

Output

{
  "Version": "0.1.18.0",
  "AvailableEndpoints": [
    "GET /AudioMuseAI/active_tasks",
    "GET /AudioMuseAI/find_path",
    "GET /AudioMuseAI/health",
    "GET /AudioMuseAI/last_task",
    "GET /AudioMuseAI/playlists",
    "GET /AudioMuseAI/search_tracks",
    "GET /AudioMuseAI/similar_tracks",
    "GET /AudioMuseAI/sonic_fingerprint/generate",
    "GET /AudioMuseAI/status/{task_id}",
    "POST /AudioMuseAI/analysis",
    "POST /AudioMuseAI/cancel_all/{task_type_prefix}",
    "POST /AudioMuseAI/cancel/{task_id}",
    "POST /AudioMuseAI/chat/create_playlist",
    "POST /AudioMuseAI/chat/playlist",
    "POST /AudioMuseAI/clustering",
    "POST /AudioMuseAI/create_playlist"
  ]
}

Search Tracks

Used for the similar track feature to search for tracks by artist and retrieve matching items.

curl -G 'http://YOUR-JELLYFIN-URL:PORT/AudioMuseAI/search_tracks' \
  --data-urlencode 'artist=red' \
  -H 'Authorization: MediaBrowser Client="MyCLI", Device="Ubuntu CLI", DeviceId="ubuntu-cli-01", Version="1.0.0", Token="YOUR-JELLYFIN-API-TOKEN"' \
  -H 'Accept: application/json'

Output

[
  {"author":"author1","item_id":"7190693ae7d0b7740fbfc26e5bddd0b3","title":"song1"},
  {"author":"author2","item_id":"e614f2119e654493012ea80f7dd5c617","title":"song2"},
  {"author":"author3","item_id":"6110790c7650a09bbc72a9db84987c50","title":"song3"},
  {"author":"author4","item_id":"f3365202f0bec5011d84ab2d07a10d5b","title":"song4"},
  {"author":"author5","item_id":"9387b1a062ede11cd92229c4d6c9c5e5","title":"song5"},
  … 
]

Similar Tracks

Used for the similar track feature; you supply an item_id and it returns a list of similar tracks.

curl -G 'http://YOUR-JELLYFIN-URL:PORT/AudioMuseAI/similar_tracks' \
  --data-urlencode 'item_id=07a998a337ab3fd4576006ae301d1d94' \
  --data-urlencode 'n=10' \
  --data-urlencode 'eliminate_duplicates=true' \
  -H 'Authorization: MediaBrowser Client="MyCLI", Device="Ubuntu CLI", DeviceId="ubuntu-cli-01", Version="1.0.0", Token="YOUR-JELLYFIN-API-TOKEN"' \
  -H 'Accept: application/json'

Output

[
  {"author":"author1","distance":0.356,"item_id":"8d6bb1079eb9d6d16e4a5eb65435300d","title":"song1"},
  {"author":"author2","distance":0.396,"item_id":"fe6981aa033a80d4594a4148171beb2f","title":"song2"},
  {"author":"author3","distance":0.431,"item_id":"4fc055539c1cba3f143384609d10a3f6","title":"song3"},
  {"author":"author4","distance":0.431,"item_id":"54300affe6f9839596a37a3735690f92","title":"song4"},
  {"author":"author5","distance":0.477,"item_id":"31a92ee2d6f43da314cd8012b357cd8d","title":"song5"},
  … 
]

Find Path

Used for the pathfinding feature; you supply a start_song_id and an end_song_id, and it returns a path of tracks connecting them that include initial and last song. You can also specify max_steps to control the maximum number of hops.

curl -G 'http://YOUR-JELLYFIN-URL:PORT/AudioMuseAI/find_path' \
  --data-urlencode 'start_song_id=START-ID' \
  --data-urlencode 'end_song_id=END-ID' \
  --data-urlencode 'max_steps=25' \
  -H 'Authorization: MediaBrowser Client="MyCLI", Device="Ubuntu CLI", DeviceId="ubuntu-cli-01", Version="1.0.0", Token="YOUR-JELLYFIN-API-TOKEN"' \
  -H 'Accept: application/json'

Output

{
  "path": [
    {"author":"author1","energy":0.072433084,"item_id":"07a998a337ab3fd4576006ae301d1d94","key":"D","mood_vector":"funk:0.226,rock:0.216,soul:0.125,jazz:0.121,80s:0.109","other_features":"danceable:0.56,aggressive:0.32,happy:0.28,party:0.66,relaxed:0.17,sad:0.17","scale":"minor","tempo":117.1875,"title":"song1"},
    {"author":"author2","energy":0.06923786,"item_id":"fe6981aa033a80d4594a4148171beb2f","key":"D","mood_vector":"rock:0.295,blues:0.248,funk:0.147,classic rock:0.136,jazz:0.093","other_features":"danceable:0.36,aggressive:0.25,happy:0.60,party:0.70,relaxed:0.15,sad:0.06","scale":"minor","tempo":110.29412,"title":"song2"},
    {"author":"author3","energy":0.11755472,"item_id":"66f8d07a3f016b0d1b4e04d7438b5a8b","key":"A","mood_vector":"rock:0.258,indie:0.093,alternative:0.089,blues:0.088,funk:0.084","other_features":"danceable:0.55,aggressive:0.47,happy:0.41,party:0.47,relaxed:0.17,sad:0.16","scale":"minor","tempo":104.166664,"title":"song3"},
    ...
  ],
  "total_distance":269.55337715148926
}

Create Playlist

Used for the similar track feature to create a playlist from a list of track IDs.

curl -X POST 'http://YOUR-JELLYFIN-URL:PORT/AudioMuseAI/create_playlist' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: MediaBrowser Client="MyCLI", Device="Ubuntu CLI", DeviceId="ubuntu-cli-01", Version="1.0.0", Token="YOUR-JELLYFIN-API-TOKEN"' \
  -d '{
        "playlist_name":"Similar to 21st Century2",
        "track_ids":[
          "07a998a337ab3fd4576006ae301d1d94",
          "8d6bb1079eb9d6d16e4a5eb65435300d",
          "fe6981aa033a80d4594a4148171beb2f",
          "4fc055539c1cba3f143384609d10a3f6",
          "54300affe6f9839596a37a3735690f92",
          "31a92ee2d6f43da314cd8012b357cd8d",
          "a335ef8354cf8e8d97fe0a91efdb55eb",
          "f9580efb7958d2454c76d8c463876cd3",
          "95f0ed149054afe123f5a7eb041add6f",
          "f2ecc48919b82e4bffe00dd2f5297501",
          "6d54b36b7a6421e361a593c283319ddf"
        ]
      }'

Output

{"message":"Playlist 'Similar to 21st Century2' created successfully!","playlist_id":null}

Start Analysis

Start the analysis batch task using default AudioMuse-AI settings.

curl -X POST 'http://YOUR-JELLYFIN-URL:PORT/AudioMuseAI/analysis' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: MediaBrowser Client="MyCLI", Device="Ubuntu CLI", DeviceId="ubuntu-cli-01", Version="1.0.0", Token="YOUR-JELLYFIN-API-TOKEN"' \
  -d '{}'

Output

{"status":"queued","task_id":"218f4340-f784-45ea-9f84-a034b2ca2898","task_type":"main_analysis"}

Cancel Task

Used to cancel a batch task (analysis or clustering).

curl -X POST 'http://YOUR-JELLYFIN-URL:PORT/AudioMuseAI/cancel/e14b1eb8-2641-4b1c-8853-6b16d726ff40' \
  -H 'Authorization: MediaBrowser Client="MyCLI", Device="Ubuntu CLI", DeviceId="ubuntu-cli-01", Version="1.0.0", Token="YOUR-JELLYFIN-API-TOKEN"'

Output

{"cancelled_jobs_count":5,"message":"Task e14b1eb8-2641-4b1c-8853-6b16d726ff40 and its children cancellation initiated. 5 total jobs affected.","task_id":"e14b1eb8-2641-4b1c-8853-6b16d726ff40"}

Last Task

Used to retrieve the status of the last batch task run (analysis or clustering).

curl 'http://YOUR-JELLYFIN-URL:PORT/AudioMuseAI/last_task' \
  -H 'Authorization: MediaBrowser Client="MyCLI", Device="Ubuntu CLI", DeviceId="ubuntu-cli-01", Version="1.0.0", Token="YOUR-JELLYFIN-API-TOKEN"' \
  -H 'Accept: application/json'

Output

{"details":{"message":"Task cancellation processed by API."},"progress":100,"running_time_seconds":38.143,"status":"REVOKED","task_id":"8a6b7eca-e85c-4065-8358-24f815f838a0","task_type":"album_analysis"}

Active Tasks

Used to list any currently running batch tasks (analysis or clustering).

curl 'http://YOUR-JELLYFIN-URL:PORT/AudioMuseAI/active_tasks' \
  -H 'Authorization: MediaBrowser Client="MyCLI", Device="Ubuntu CLI", DeviceId="ubuntu-cli-01", Version="1.0.0", Token="YOUR-JELLYFIN-API-TOKEN"' \
  -H 'Accept: application/json'

Output

{}

Clustering

Start the clustering batch task using default AudioMuse-AI settings.

curl -X POST 'http://YOUR-JELLYFIN-URL:PORT/AudioMuseAI/clustering' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: MediaBrowser Client="MyCLI", Device="Ubuntu CLI", DeviceId="ubuntu-cli-01", Version="1.0.0", Token="YOUR-JELLYFIN-API-TOKEN"' \
  -d '{
        "clustering_method":"kmeans",
        "max_distance":0.5,
        "max_songs_per_cluster":0,
        "pca_components_min":0,
        "pca_components_max":8,
        "clustering_runs":5000,
        "min_songs_per_genre_for_stratification":100,
        "stratified_sampling_target_percentile":50,
        "score_weight_diversity":2,
        "score_weight_purity":1,
        "score_weight_silhouette":0,
        "score_weight_davies_bouldin":0,
        "score_weight_calinski_harabasz":0,
        "score_weight_other_feature_diversity":0,
        "score_weight_other_feature_purity":0,
        "dbscan_eps_min":0.1,
        "dbscan_eps_max":0.5,
        "dbscan_min_samples_min":5,
        "dbscan_min_samples_max":20,
        "num_clusters_min":40,
        "num_clusters_max":100,
        "gmm_n_components_min":40,
        "gmm_n_components_max":100,
        "spectral_n_clusters_min":40,
        "spectral_n_clusters_max":100,
        "ai_model_provider":"NONE",
        "ollama_server_url":"http://192.168.3.15:11434/api/generate",
        "ollama_model_name":"mistral:7b",
        "gemini_api_key":"YOUR-GEMINI-API-KEY-HERE",
        "gemini_model_name":"gemini-1.5-flash-latest",
        "enable_clustering_embeddings":false
      }'

Output

{"status":"queued","task_id":"1d609fa0-fc66-49e0-90b3-a5655b6c4292","task_type":"main_clustering"}

Instant Chat Playlist

Used in the Instant Playlist feature to chat with the AI. You send a user query, and it returns both the AI’s reply and the list of tracks found.

curl -X POST 'http://YOUR-JELLYFIN-URL:PORT/AudioMuseAI/chat/playlist' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: MediaBrowser Client="MyCLI", Device="Ubuntu CLI", DeviceId="ubuntu-cli-01", Version="1.0.0", Token="YOUR-JELLYFIN-API-TOKEN"' \
  -d '{
        "userInput":"Song with high energy",
        "ai_provider":"GEMINI",
        "ai_model":"gemini-1.5-flash-latest",
        "gemini_api_key":"YOUR-GEMINI-API-KEY"
      }'

Output

Sample response not provided.


Sonic Fingerprint Search

Used in the Audio Fingerprinting feature to identify tracks in your Jellyfin library. You send a request, and it returns a list of matching tracks with metadata.

curl -X GET "http://YOUR-JELLYFIN-URL:PORT/AudioMuseAI/sonic_fingerprint/generate?jellyfin_user_identifier=YOUR-USER&jellyfin_token=YOUR-JELLYFIN-API-TOKEN" \
  -H "Accept: application/json"

Output

[
  {"author":"Author1","distance":0.0,"item_id":"<ID1>","title":"Song1"},
  {"author":"Author2","distance":0.0,"item_id":"<ID2>","title":"Song2"},
  {"author":"Author3","distance":0.0,"item_id":"<ID3>","title":"Song3"},
  {"author":"Author4","distance":0.0,"item_id":"<ID4>","title":"Song4"},
  {"author":"Author5","distance":0.0,"item_id":"<ID5>","title":"Song5"},
  ...
  {"author":"AuthorN","distance":0.07,"item_id":"<IDN>","title":"SongN"}
]

Song Alchemy

Song Alchemy ask a list of ADD or SUBTRACT song *AND/OR ARTIST (minimum one ADD is required), a number of song that you want as output and the distance from the subtract. As a result it will give back a list of songs AND/OR componenet that rappresent the Artist. In fact each artist is rappresentend with 1 or more GMM componenet that rappresent the different artist styles.

NOTE: you can add a the temperature value, typically 1, if you want randomness in the result. Having it 0 or not passing it means no randomness.

You don't only have the item_id but also the embedding_2d that could be useful if you want to visually rappresent them on an XY graph.

curl POST 'http://YOUR-JELLYFIN-URL:PORT/AudioMuseAI/alchemy' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: MediaBrowser Client="MyCLI", Device="Ubuntu CLI", DeviceId="ubuntu-cli-01", Version="1.0.0", Token="YOUR-JELLYFIN-API-TOKEN"' \
  -d '{
    "items": [
      {"id": "ITEM-ID-1", "op": "ADD", "type": "song"},
      {"id": "ITEM-ID-2", "op": "ADD", "type": "artist"},
      {"id": "ITEM-ID-3", "op": "SUBTRACT", "type": "song"},
      {"id": "ITEM-ID-4", "op": "SUBTRACT", "type": "artist"}
    ],
    "n": 10,
    "subtract_distance": 0.2,
    "temperature": 1
  }'

Output

{
  "add_centroid_2d": [0.0100, 0.0200],
  "add_points": [
    {
      "author": "Artist A1",
      "embedding_2d": [-0.10, 0.20],
      "item_id": "add_item_01",
      "title": "Track A1"
    },
    {
      "author": "Artist A1",
      "embedding_2d": [0.58, 0.35],
      "item_id": "add_item_02",
      "title": "Track A2"
    },
    {
      "author": "Artist A1",
      "embedding_2d": [0.27, 0.02],
      "item_id": "add_item_03",
      "title": "Track A3"
    },
    {
      "author": "Artist A1",
      "embedding_2d": [0.48, 0.18],
      "item_id": "add_item_04",
      "title": "Track A4"
    }
  ],
  "centroid_2d": [0.0100, 0.0200],
  "distance_threshold": 0.015,
  "filtered_out": [
    {
      "author": "Artist F1",
      "embedding_2d": [0.33, 0.26],
      "energy": 0.24,
      "image": "",
      "item_id": "filtered_01",
      "key": "Key1",
      "mood_vector": "tagA:0.58,tagB:0.55,tagC:0.53",
      "other_features": "danceable:0.32,aggressive:0.48,mellow:0.36,happy:0.61,sad:0.22,angry:0.52,warm:0.18,cool:0.27,sparse:0.12,thick:0.44",
      "scale": "minor",
      "tempo": 82.0,
      "title": "Filtered Track 1"
    },
    {
      "author": "Artist F2",
      "embedding_2d": [0.42, 0.26],
      "energy": 0.18,
      "image": "",
      "item_id": "filtered_02",
      "key": "Key2",
      "mood_vector": "tagA:0.59,tagB:0.54,tagC:0.52",
      "other_features": "danceable:0.31,aggressive:0.60,mellow:0.33,happy:0.63,sad:0.27,angry:0.47,warm:0.24,cool:0.29,sparse:0.14,thick:0.41",
      "scale": "minor",
      "tempo": 124.0,
      "title": "Filtered Track 2"
    }
  ],
  "projection": "none",
  "results": [
    {
      "author": "Artist R1",
      "distance": 0.092181,
      "embedding_2d": [0.39, 0.21],
      "energy": 0.20,
      "image": "",
      "item_id": "result_01",
      "key": "KeyX",
      "mood_vector": "tagA:0.60,tagB:0.55,tagC:0.54",
      "other_features": "danceable:0.30,aggressive:0.58,mellow:0.35,happy:0.52,sad:0.28,angry:0.43,warm:0.27,cool:0.32,sparse:0.18,thick:0.39",
      "scale": "minor",
      "tempo": 117.2,
      "title": "Result Track 1"
    },
    {
      "author": "Artist R2",
      "distance": 0.094652,
      "embedding_2d": [0.35, 0.13],
      "energy": 0.19,
      "image": "",
      "item_id": "result_02",
      "key": "KeyY",
      "mood_vector": "tagA:0.59,tagB:0.56,tagC:0.53",
      "other_features": "danceable:0.22,aggressive:0.40,mellow:0.37,happy:0.51,sad:0.26,angry:0.41,warm:0.26,cool:0.33,sparse:0.20,thick:0.36",
      "scale": "minor",
      "tempo": 117.2,
      "title": "Result Track 2"
    },
    ...
  ],
  "sub_points": [
    {
      "author": "Artist S1",
      "embedding_2d": [-0.56, 0.34],
      "item_id": "sub_item_01",
      "title": "Subtracted Track 1"
    },
    {
      "author": "Artist S2",
      "embedding_2d": [-0.54, 0.22],
      "item_id": "sub_item_02",
      "title": "Subtracted Track 2"
    },
    ...
  ],
  "subtract_centroid_2d": [0.0020, 0.2100]
}

Max Distance

Get in input the id of the song and return as a result the max distanace possible from that song and the id of this max distantsong. In case of cosine similarity (enabled by default in AudioMuse-AI) the distance is between 0 and 2 where 0 is the same song and 2 id the totally opposite song.

curl 'http://YOUR-JELLYFIN-URL:PORT/AudioMuseAI/max_distance?item_id=07a998a337ab3fd4576006ae301d1d94' \
  -H 'Authorization: MediaBrowser Client="MyCLI", Device="Ubuntu CLI", DeviceId="ubuntu-cli-01", Version="1.0.0", Token="YOUR-JELLYFIN-API-TOKEN"' \
  -H 'Accept: application/json'

Output

{"farthest_item_id":"c1ea3fb87ff0cd6e68b881715104fb28","max_distance":1.3198845386505127}

Here's the anonymized version of your API call example:


Similar Artists Search

Used in the Music Discovery feature to find similar artists based on audio analysis. You send a request with the artist id or the artist name, and it returns a list of similar artists with component match details.

Example with ARTIST_ID

curl -X GET "http://YOUR-JELLYFIN-URL:PORT/AudioMuseAI/similar_artists?artist_id=ARTIST_ID&n=10&include_component_matches=true" \
  -H 'Authorization: MediaBrowser Client="YOUR_CLIENT", Device="YOUR_DEVICE", DeviceId="YOUR_DEVICE_ID", Version="1.0.0", Token="YOUR_JELLYFIN_API_TOKEN"'

Example with artist

curl GET 'http://jellyfin.192.168.3.131.nip.io:8087/AudioMuseAI/similar_artists?artist=Ligabue&n=10&include_component_matches=true' \
  -H 'Authorization: MediaBrowser Client="YOUR_CLIENT", Device="YOUR_DEVICE", DeviceId="YOUR_DEVICE_ID", Version="1.0.0", Token="YOUR_JELLYFIN_API_TOKEN"'

Output

[
  {
    "artist": "Artist1",
    "artist_id": "<ARTIST_ID_1>",
    "candidate_artist_components": 10,
    "component_matches": [
      {
        "artist1_representative_songs": [
          {"distance_to_component": 5.43, "item_id": "<SONG_ID_1>", "title": "Song Title 1"},
          {"distance_to_component": 5.69, "item_id": "<SONG_ID_2>", "title": "Song Title 2"},
          {"distance_to_component": 7.06, "item_id": "<SONG_ID_3>", "title": "Song Title 3"}
        ],
        "artist2_representative_songs": [
          {"distance_to_component": 5.65, "item_id": "<SONG_ID_4>", "title": "Song Title 4"},
          {"distance_to_component": 5.68, "item_id": "<SONG_ID_5>", "title": "Song Title 5"},
          {"distance_to_component": 6.09, "item_id": "<SONG_ID_6>", "title": "Song Title 6"}
        ],
        "component1_index": 2,
        "component1_weight": 0.255,
        "component2_index": 6,
        "component2_weight": 0.181,
        "distance": 7.39
      }
    ],
    "divergence": 47.64,
    "query_artist_components": 6
  },
  {
    "artist": "Artist2",
    "artist_id": "<ARTIST_ID_2>",
    "candidate_artist_components": 4,
    "component_matches": [
      {
        "artist1_representative_songs": [...],
        "artist2_representative_songs": [...],
        "component1_index": 1,
        "component1_weight": 0.177,
        "component2_index": 1,
        "component2_weight": 0.174,
        "distance": 9.68
      }
    ],
    "divergence": 50.63,
    "query_artist_components": 6
  }
]

Note: The divergence value indicates how different the artists are (lower = more similar). Results are sorted by similarity, with the most similar artists appearing first.

Text Search

This API use the new CLAP Model to do the text search. You only need the text query and the number of result that you want and it will return

Example with ARTIST_ID

curl POST 'http://YOUR-JELLYFIN-URL:PORT/AudioMuseAI/clap/search' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: MediaBrowser Client="MyCLI", Device="Ubuntu CLI", DeviceId="ubuntu-cli-01", Version="1.0.0", Token="YOUR-JELLYFIN-API-TOKEN"' \
  -d '{
    "query": "dreamy chant indie pop",
    "limit": 50
  }'

Output

{
  "count": 50,
  "query": "example search query",
  "results": [
    {
      "author": "Artist A",
      "item_id": "abc123",
      "similarity": 0.6082059144973755,
      "title": "Song One"
    },
    {
      "author": "Artist B",
      "item_id": "def456",
      "similarity": 0.606999933719635,
      "title": "Song Two"
    },
    {
      "author": "Artist A",
      "item_id": "ghi789",
      "similarity": 0.6036282181739807,
      "title": "Song Three"
    }
  ]
}

Sem Grove Search

This API uses the Sem Grove semantic search to find tracks similar to a seed song. You send the item_id of the seed track and the number of results you want, and it returns a list of similar songs with mood and feature details (the seed itself is included with is_seed: true).

curl POST 'http://YOUR-JELLYFIN-URL:PORT/AudioMuseAI/sem_grove/search' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: MediaBrowser Client="MyCLI", Device="Ubuntu CLI", DeviceId="ubuntu-cli-01", Version="1.0.0", Token="YOUR-JELLYFIN-API-TOKEN"' \
  -d '{
    "item_id": "SEED-ITEM-ID",
    "limit": 3
  }'

Output

{
  "count": 3,
  "results": [
    {
      "album": "Album A",
      "author": "Artist A",
      "is_seed": true,
      "item_id": "SEED-ITEM-ID",
      "distance": 0.0,
      "title": "Seed Song"
    },
    {
      "album": "Album B",
      "author": "Artist B",
      "item_id": "abc123",
      "distance": 0.261120617389679,
      "title": "Song One"
    },
    {
      "album": "Album C",
      "author": "Artist C",
      "item_id": "def456",
      "distance": 0.2632527947425842,
      "title": "Song Two"
    }
  ]
}

Lyrics Text Search

This API searches for tracks by their lyrics content. You send a free text query and the number of results you want, and it returns the matching songs ordered by similarity with mood and feature details.

curl POST 'http://YOUR-JELLYFIN-URL:PORT/AudioMuseAI/lyrics/search/text' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: MediaBrowser Client="MyCLI", Device="Ubuntu CLI", DeviceId="ubuntu-cli-01", Version="1.0.0", Token="YOUR-JELLYFIN-API-TOKEN"' \
  -d '{
    "query": "love",
    "limit": 2
  }'

Output

{
  "count": 2,
  "query": "love",
  "results": [
    {
      "album": "Album A",
      "author": "Artist A",
      "item_id": "abc123",
      "mood_vector": "tagA:0.572,tagB:0.549,tagC:0.541",
      "other_features": "danceable:0.61,aggressive:0.62,happy:0.65,party:0.61,relaxed:0.60,sad:0.66",
      "similarity": 0.7711977958679199,
      "title": "Song One",
      "top_genre": "rock"
    },
    {
      "album": "Album B",
      "author": "Artist B",
      "item_id": "def456",
      "mood_vector": "tagA:0.546,tagB:0.542,tagC:0.542",
      "other_features": "danceable:0.61,aggressive:0.62,happy:0.64,party:0.67,relaxed:0.57,sad:0.51",
      "similarity": 0.7607326507568359,
      "title": "Song Two",
      "top_genre": "pop"
    }
  ]
}

Hyperbolic Similarity Search

This API ranks the catalogue by Poincare distance from a seed song, using the hyperbolic projection built in AudioMuse AI. You send the item_id of the seed track and the number of results you want. The seed itself is excluded by the backend. It requires the hyperbolic projection to have been built, and the backend clamps limit to its HYPERBOLIC_MAX_LIMIT (default 100).

curl POST 'http://YOUR-JELLYFIN-URL:PORT/AudioMuseAI/hyperbolic/similar'   -H 'Content-Type: application/json'   -H 'Authorization: MediaBrowser Client="MyCLI", Device="Ubuntu CLI", DeviceId="ubuntu-cli-01", Version="1.0.0", Token="YOUR-JELLYFIN-API-TOKEN"'   -d '{
    "item_id": "abc123",
    "mode": "similar",
    "limit": 2
  }'

Output

{
  "count": 2,
  "mode": "similar",
  "radial_spread": 0.15,
  "results": [
    {
      "album": "Album A",
      "author": "Artist A",
      "distance": 0.1548825632081347,
      "hyperbolic_distance": 0.1832675039768219,
      "hyperbolic_radius": 0.7421875,
      "item_id": "abc123",
      "title": "Song One",
      "top_genre": "rock"
    },
    {
      "album": "Album B",
      "author": "Artist B",
      "distance": 0.19428164886982668,
      "hyperbolic_distance": 0.2411284893751144,
      "hyperbolic_radius": 0.7539062,
      "item_id": "def456",
      "title": "Song Two",
      "top_genre": "pop"
    }
  ],
  "seed_item_id": "seed789",
  "seed_radius": 0.7304688
}

Smart Fade

This API orders any list of songs (the output of Similar Tracks, Song Alchemy, Hyperbolic, CLAP, or a plain user queue) so that each song flows into the next, using the neural fingerprint built in AudioMuse AI. You send the item_ids and it returns the same songs in smart fade order. The first song always stays first.

For each song it says where to start it (fade_in_seconds) and where it hands over to the next one (fade_out_seconds). The first song starts at 0 and the last one plays to its end (duration_seconds). Songs without a neural fingerprint come last, with null times. It requires the neural fingerprint (Search by Recording) to be enabled in AudioMuse AI.

The full frontend guide, with every field and charts of real transitions, is in AudioMuse-AI PR #1019, updated by PR #1037 (seven kinds of transition) and PR #1039 (lengths per genre).

curl -X POST 'http://YOUR-JELLYFIN-URL:PORT/AudioMuseAI/recording_search/smart_fade'   -H 'Content-Type: application/json'   -H 'Authorization: MediaBrowser Client="MyCLI", Device="Ubuntu CLI", DeviceId="ubuntu-cli-01", Version="1.0.0", Token="YOUR-JELLYFIN-API-TOKEN"'   -d '{
    "item_ids": ["abc123", "def456"]
  }'

Output

{
  "count": 2,
  "results": [
    {
      "duration_seconds": 186.5,
      "fade_in_seconds": 0.0,
      "fade_out_seconds": 163.5,
      "item_id": "abc123"
    },
    {
      "duration_seconds": 198.5,
      "fade_in_seconds": 25.0,
      "fade_out_seconds": 198.5,
      "item_id": "def456"
    }
  ]
}

Smart Fade Transition

This API returns everything a player needs to mix the current song into the next of a Smart Fade list. You send the two songs and their smart fade points: out is the fade_out_seconds of the song playing now and in is the fade_in_seconds of the next song. AudioMuse AI listens to both songs around those points and returns numbers only, no audio: the client plays them.

AudioMuse AI picks one of seven kinds of transition for each pair, from what it measures in the two songs, so one list usually mixes several kinds. The length also depends on the two songs (their beats and their genre: longer for pop, shorter for rock), so it changes from pair to pair.

type When What changes
beat_mix the beats of both songs lock the tempo glides (speed) and the highs, mids and bass pass from one song to the other, one band after the other
beat_rise the same lock, and the next song is much louder as beat_mix, but the next song's bass comes in through an opening high-pass (to.highpass_hz)
percussion_mix both parts are drum-led, their hits line up and no voices overlap one kick drum at a time (bass_db) while the hi-hats cross (high_db)
eq_blend no beat lock, and one of the two parts has no drums native speed: the bass lines swap in one move, the highs and mids are handed over
filter_rise no beat lock, both parts have drums, the next song comes in louder native speed: the next song comes in through an opening high-pass (to.highpass_hz)
vocal_handoff no beat lock, both parts have drums, two voices overlap native speed: the mids (the voices) move from one singer to the other
crossfade every other pair (the default) one song goes down while the next comes up, filters flat (a gentle EQ only when voices compete)
  • start: the second of the current song where the transition starts. duration: how many seconds both songs play together. middle: seconds after start where the next song takes over (show it as "now playing" there).

  • Every list (speed, volume, high_db, mid_db, bass_db, highpass_hz) is a curve with one value every step seconds from start, and all lists have the same length. step is close to 0.1 s but not fixed: the server sets it so that a whole number of steps fills duration exactly (0.099663 in the first example below), so always use the value it returns. Join the values with straight lines (Web Audio: setValueCurveAtTime).

  • filters: the corners of the three tone filters both songs play through: high_hz (high shelf), mid_hz and mid_q (peaking), bass_hz (low shelf).

  • from (the song playing now) and to (the next song):

    • gain: a multiplier for the whole song, not only the transition, so every song plays equally loud (-14 LUFS).
    • speed: the playback rate at each point (1 = normal, 1.02 = 2% faster). Play the song's own audio at it, like a DJ deck without key lock (Web Audio: AudioBufferSourceNode.playbackRate), so the pitch moves slightly with it. It is all 1 in the kinds that play at native speed (eq_blend, filter_rise, vocal_handoff, crossfade).
    • to.start: the second of the next song where it comes in. The current song is already playing at start.
    • There is no position list: the position follows from speed. Song A is at start and song B at to.start when the transition begins, and each moves on by speed × step per point. Song B reaches exactly to.continue_from when the transition ends.
    • volume: the fader at each point, on top of gain (0 = silent, 1 = full).
    • high_db, mid_db and bass_db: how far each filter turns the song down at each point, in dB (0 = unchanged, -40 = almost gone). The server fits these curves to the two songs, so they are not perfectly smooth and can go a few dB above 0. They are all 0 in a plain crossfade.
    • to.highpass_hz: in beat_rise and filter_rise, a list with the corner of a high-pass used instead of the bass filter. It is null in every other kind.
    • to.continue_from: the second where the next song plays on alone once the transition ends.
  • How to wire it: each song plays its own audio at speed, through highs filter → mids filter → bass filter → fader → gain, then to the output. All curves start together, when song A reaches start, and run for duration.

    Stage Web Audio node Fixed setting (filters) Curve over the transition
    song audio AudioBufferSourceNode playbackRate ← speed
    highs filter BiquadFilterNode highshelf frequency = high_hz gain ← high_db
    mids filter BiquadFilterNode peaking frequency = mid_hz, Q = mid_q gain ← mid_db
    bass filter BiquadFilterNode lowshelf frequency = bass_hz gain ← bass_db
    fader GainNode gain ← volume
    gain GainNode gain = gain, for the whole song

    In beat_rise and filter_rise, song B's bass filter is a highpass instead: its frequency follows to.highpass_hz, it uses Q = -3.01 (a Butterworth high-pass; Web Audio counts a high-pass Q in dB), and to.bass_db stays all 0. After duration, stop song A and leave song B playing from to.continue_from with every filter at 0 dB and the fader at 1.

  • info is not needed to play: the two tempos (null without a steady beat), confidence (high, medium or low) and the loudness of each whole song (LUFS). Other keys can appear, so don't rely on a fixed set: vocal_overlap (how much two voices compete near the middle), end_margin_seconds, recovered_seconds and ending_recovered_seconds (how the server moved the cue points to keep audible music), and beat_rejection (why there is no beat lock: tempo_gap, beat_alignment, no_beat_grid or audible_cue).

Call it once per hand-over, while the current song plays. An answer takes a few seconds, because both songs are fetched from the media server and analysed. If the call fails (any status other than 200), just crossfade for 10 s at the smart fade points.

curl -G 'http://YOUR-JELLYFIN-URL:PORT/AudioMuseAI/recording_search/transition'   --data-urlencode 'from_id=abc123'   --data-urlencode 'to_id=def456'   --data-urlencode 'out=39.5'   --data-urlencode 'in=10.0'   -H 'Authorization: MediaBrowser Client="MyCLI", Device="Ubuntu CLI", DeviceId="ubuntu-cli-01", Version="1.0.0", Token="YOUR-JELLYFIN-API-TOKEN"'   -H 'Accept: application/json'

Output

Below are five real answers, one per kind, from two smart fade lists. The first one is the answer to the call above. The number of values in the lists changes with every transition: it is exactly duration / step + 1 (113 in the first answer), and all lists of one answer have the same length. Only the first two values of each list and the last one are shown, so ... is not part of the real answer.

beat_mix (out=39.5, in=10.0): both songs at 172 BPM, so the beats lock. The speed barely moves, and the three bands pass from song A to song B.

{
  "type": "beat_mix",
  "start": 31.7026,
  "duration": 11.1622,
  "middle": 5.5807,
  "step": 0.099663,
  "filters": {"high_hz": 4000.0, "mid_hz": 1000.0, "mid_q": 0.5, "bass_hz": 180.0},
  "from": {
    "gain": 0.7728,
    "speed": [1.0, 1.0, ..., 0.99974],
    "volume": [1.0, 0.9933, ..., 0.0],
    "high_db": [0.0, -0.01, ..., -40.0],
    "mid_db": [0.0, -0.01, ..., -12.7],
    "bass_db": [0.0, -0.05, ..., -40.0]
  },
  "to": {
    "gain": 0.8192,
    "start": 9.8234,
    "speed": [1.00026, 1.00026, ..., 1.0],
    "volume": [0.0, 0.0139, ..., 1.0],
    "high_db": [-40.0, -40.0, ..., 0.0],
    "mid_db": [-6.7, -6.71, ..., 0.0],
    "bass_db": [-40.0, -40.0, ..., 0.0],
    "highpass_hz": null,
    "continue_from": 20.9871
  },
  "info": {"tempo_from": 172.0, "tempo_to": 172.0, "confidence": "high", "loudness_from": -11.76, "loudness_to": -12.27, "vocal_overlap": 0.8163, "end_margin_seconds": 8.4367, "recovered_seconds": 3.4881, "ending_recovered_seconds": 0.0}
}

filter_rise (out=260.5, in=13.0): no beat lock (beat_rejection: tempo_gap, 103.5 vs 168.1 BPM) and song B is louder. Both songs stay at speed 1 and song B comes in through a high-pass that opens from 800 Hz to 10 Hz, so to.bass_db is all 0.

{
  "type": "filter_rise",
  "start": 256.3907,
  "duration": 8.6979,
  "middle": 4.3489,
  "step": 0.099976,
  "filters": {"high_hz": 4000.0, "mid_hz": 1000.0, "mid_q": 0.5, "bass_hz": 180.0},
  "from": {
    "gain": 0.9415,
    "speed": [1.0, 1.0, ..., 1.0],
    "volume": [1.0, 1.0122, ..., 0.0],
    "high_db": [0.0, -0.01, ..., 0.0],
    "mid_db": [0.0, 0.0, ..., 0.0],
    "bass_db": [0.0, 0.01, ..., -40.0]
  },
  "to": {
    "gain": 0.5794,
    "start": 8.2587,
    "speed": [1.0, 1.0, ..., 1.0],
    "volume": [0.0, 0.0183, ..., 1.0],
    "high_db": [0.0, -0.01, ..., 0.0],
    "mid_db": [0.0, 0.0, ..., 0.0],
    "bass_db": [0.0, 0.0, ..., 0.0],
    "highpass_hz": [800.0, 798.02, ..., 10.0],
    "continue_from": 16.9566
  },
  "info": {"tempo_from": 103.5, "tempo_to": 168.1, "confidence": "medium", "loudness_from": -13.56, "loudness_to": -9.26, "vocal_overlap": 0.0056, "end_margin_seconds": 9.7021, "recovered_seconds": 4.0, "ending_recovered_seconds": 0.0, "beat_rejection": "tempo_gap"}
}

eq_blend (out=157.0, in=1.0): no beat lock and no drums to clash. Both songs stay at speed 1; the bass lines swap, song B's highs and mids open while song A's close.

{
  "type": "eq_blend",
  "start": 144.5937,
  "duration": 9.0789,
  "middle": 4.5395,
  "step": 0.099768,
  "filters": {"high_hz": 4000.0, "mid_hz": 1000.0, "mid_q": 0.5, "bass_hz": 180.0},
  "from": {
    "gain": 0.4688,
    "speed": [1.0, 1.0, ..., 1.0],
    "volume": [1.0, 1.002, ..., 0.0],
    "high_db": [0.0, -0.01, ..., -12.0],
    "mid_db": [0.0, 0.02, ..., -11.95],
    "bass_db": [0.0, 0.0, ..., -40.0]
  },
  "to": {
    "gain": 0.5302,
    "start": 2.9594,
    "speed": [1.0, 1.0, ..., 1.0],
    "volume": [0.0, 0.0173, ..., 1.0],
    "high_db": [-12.0, -11.95, ..., 0.0],
    "mid_db": [-5.97, -5.96, ..., 0.0],
    "bass_db": [-40.0, -40.0, ..., 0.0],
    "highpass_hz": null,
    "continue_from": 12.0383
  },
  "info": {"tempo_from": 119.0, "tempo_to": 131.9, "confidence": "medium", "loudness_from": -7.42, "loudness_to": -8.49, "vocal_overlap": 0.4979, "end_margin_seconds": 16.9211, "recovered_seconds": 1.5, "ending_recovered_seconds": 0.0, "beat_rejection": "tempo_gap"}
}

vocal_handoff (out=183.0, in=18.0): no beat lock and two voices overlap (vocal_overlap: 1.0). The mids (the voices) move from song A to song B.

{
  "type": "vocal_handoff",
  "start": 176.9494,
  "duration": 8.9726,
  "middle": 4.4863,
  "step": 0.099696,
  "filters": {"high_hz": 4000.0, "mid_hz": 1000.0, "mid_q": 0.5, "bass_hz": 180.0},
  "from": {
    "gain": 0.8593,
    "speed": [1.0, 1.0, ..., 1.0],
    "volume": [1.0, 0.9753, ..., 0.0],
    "high_db": [0.0, -0.01, ..., -6.0],
    "mid_db": [0.0, 0.01, ..., -12.0],
    "bass_db": [0.0, -0.03, ..., 0.0]
  },
  "to": {
    "gain": 0.7728,
    "start": 10.004,
    "speed": [1.0, 1.0, ..., 1.0],
    "volume": [0.0, 0.017, ..., 1.0],
    "high_db": [-3.0, -3.01, ..., 0.0],
    "mid_db": [-6.0, -5.99, ..., 0.0],
    "bass_db": [0.0, -0.03, ..., 0.0],
    "highpass_hz": null,
    "continue_from": 18.9766
  },
  "info": {"tempo_from": 93.6, "tempo_to": 172.0, "confidence": "medium", "loudness_from": -12.68, "loudness_to": -11.76, "vocal_overlap": 1.0, "end_margin_seconds": 2.4274, "recovered_seconds": 4.0, "ending_recovered_seconds": 0.0, "beat_rejection": "tempo_gap"}
}

crossfade (out=224.0, in=14.0): the default. The beats don't line up (beat_rejection: beat_alignment), so it is a plain crossfade: speed 1 and every filter at 0, only the faders move.

{
  "type": "crossfade",
  "start": 224.0046,
  "duration": 5.8782,
  "middle": 2.9391,
  "step": 0.099631,
  "filters": {"high_hz": 4000.0, "mid_hz": 1000.0, "mid_q": 0.5, "bass_hz": 180.0},
  "from": {
    "gain": 0.5302,
    "speed": [1.0, 1.0, ..., 1.0],
    "volume": [1.0, 0.9825, ..., 0.0],
    "high_db": [0.0, 0.0, ..., 0.0],
    "mid_db": [0.0, 0.0, ..., 0.0],
    "bass_db": [0.0, 0.0, ..., 0.0]
  },
  "to": {
    "gain": 0.6498,
    "start": 9.6749,
    "speed": [1.0, 1.0, ..., 1.0],
    "volume": [0.0, 0.0262, ..., 1.0],
    "high_db": [0.0, 0.0, ..., 0.0],
    "mid_db": [0.0, 0.0, ..., 0.0],
    "bass_db": [0.0, 0.0, ..., 0.0],
    "highpass_hz": null,
    "continue_from": 15.5531
  },
  "info": {"tempo_from": 132.7, "tempo_to": 136.0, "confidence": "medium", "loudness_from": -8.49, "loudness_to": -10.25, "vocal_overlap": 0.0, "end_margin_seconds": 10.1218, "recovered_seconds": 3.0, "ending_recovered_seconds": 0.0, "beat_rejection": "beat_alignment"}
}

InstantMix

The InstantMix feature in the AudioMuse-AI plugin generates dynamic song mixes based on the selected item (song, album, artist, playlist, or genre). It uses a multi-step fallback system to ensure results even when some services are unavailable.

Similarity Provider

The Similarity Provider setting on the plugin configuration page chooses which AudioMuse AI search supplies the songs. It applies where the plugin overrides Jellyfin: the InstantMix and the "More Like This" rows.

Provider Backend endpoint Requires
Similar Song (default) GET /api/similar_tracks nothing extra; the historical behaviour
Lyrics by Song POST /api/sem_grove/search the SemGrove index (lyrics + audio analysis) built in AudioMuse AI
Hyperbolic Similarity POST /api/hyperbolic/similar the hyperbolic projection built in AudioMuse AI
DCLAP POST /api/clap/search_by_song CLAP enabled and the DCLAP analysis run in AudioMuse AI
Song Alchemy POST /api/alchemy nothing extra; the seed song is the only ADD item, and the Temperature setting (default 1) adds randomness: 0 returns the closest songs, higher values pick more varied songs

Every provider takes the same seed song and returns the same thing to the client; only the source of the songs on AudioMuse AI changes.

If the selected provider is unavailable, for example the index has not been built yet, the backend rejection is logged and the InstantMix falls back to the native Jellyfin mix.

Mix Generation Logic

For each input type, the process follows this structure:

  1. Initial Song: Sets the first track in the mix.
  2. Seed Selection: Chooses seed tracks to generate similar songs.
  3. AudioMuse Similarity: Fetches similar tracks using the configured Similarity Provider.
  4. Fallbacks: Fallback steps (in order) if AudioMuse fails or results are insufficient.

Song

  • Initial Song: The selected song.

  • Seed: Only the original song.

  • AudioMuse: Requests limit - 1 similar songs in one call.

  • Fallbacks:

    1. Jellyfin “Similar To” on the song.
    2. Random songs from the song’s genre(s).
    3. Random songs from the entire library.

Album

  • Initial Song: Random song from the album.

  • Seed: All album tracks, shuffled.

  • AudioMuse: Requests limit_per_seed * 4 similar tracks per song.

  • Fallbacks:

    1. Jellyfin “Similar To” on the album.
    2. Random songs from combined genres of album tracks.
    3. Random songs from the entire library.

Playlist

  • Initial Song: Random song from the playlist.

  • Seed: Random shuffle of all tracks; up to 20 used as seeds.

  • AudioMuse: Requests limit_per_seed * 4 per seed.

  • Fallbacks:

    1. Jellyfin “Similar To” on each seed song.
    2. Random songs from combined genres of playlist tracks.
    3. Random songs from the entire library.

Artist

  • Initial Song: Random song by the artist.

  • Seed: Random shuffle of all tracks; up to 20 used as seeds.

  • AudioMuse: Requests limit_per_seed * 4 per seed.

  • Fallbacks:

    1. Jellyfin “Similar To” on the artist.
    2. Random songs from combined genres of artist's tracks.
    3. Random songs from the entire library.

Genre

  • Initial Song: None.

  • Seed: None.

  • AudioMuse: Skipped.

  • Fallbacks:

    1. Random songs from the selected genre.
    2. Random songs from the entire library if genre is too small.

Notes

  • AudioMuse is always the first step (when applicable).
  • If AudioMuse fails or returns too few results, fallback steps ensure the mix is filled.
  • Genre mixes bypass AudioMuse and go straight to genre-based random selection.

Screenshots

Here are a few glimpses of AudioMuse AI Plugin in action

Plugin Configurations page

Screenshot of AudioMuse AI Plugin's web interface showing the configuration page.

Plugin Tasks page

Screenshot of AudioMuse AI Plugin's web interface showing the tasks page.

Contributing & Feedback

This is an alpha release for testing. Please open issues or pull requests on GitHub to report bugs, request features, or contribute improvements.

For mantainer: to start the github workflwo for compilation you just need to add a tag with git, so:

git tag v0.0.7-alpha        
git push origin v0.0.7-alpha

Code Mirror

AudioMuse AI-Plugin repository code is mirrored here:

DO NOT USE MIRROR TO RAISE ISSUE, PR OTHER ACTION DIFFERENT FROM GET THE CODE

Jelajahi proyek terkait

Memuat…