search_song

🟡 Incomplete

This API's output may have additions in the future.


Input a string, retrieve an array of Song's, sorted by how similar their titles are to the input.

Inputs

FieldTypeDescription
inputstringThe string to match against, to use as input
kindstring, one of all, sim60, sim70, sim80, top25, top5, top1See Search/Kind

Outputs

FieldTypeDescription
songsarray of Song objectsAn array of Song objects, sorted by most similar title first

Example Request

festival-cli search_song --input time --kind sim70
curl http://localhost:18425 -d '{"jsonrpc":"2.0","id":0,"method":"search_song","params":{"input":"time","kind":"sim70"}}'

Example Response

{
  "jsonrpc": "2.0",
  "result": {
    "songs": [
      {
        "title": "TIME",
        "key": 5412,
        "album": 528,
        "runtime": 249,
        "sample_rate": 44100,
        "track": 5,
        "disc": 1,
        "mime": "audio/x-flac",
        "extension": "flac"
      }
    ]
  },
  "id": 0
}