{
  "settings": {
    "type": "object",
    "title": "Sound Settings",
    "additionalProperties": false,
    "required": [
      "player"
    ],
    "properties": {
      "player": {
        "anyOf": [
          {
            "type": "string",
            "title": "select",
            "enum": [
              "auto",
              "mplayer",
              "afplay",
              "powershell",
              "mpg123",
              "mpg321",
              "play",
              "omxplayer",
              "aplay",
              "cmdmp3",
              "cvlc"
            ]
          },
          {
            "type": "string",
            "title": "custom"
          }
        ],
        "title": "Audio Player",
        "description": "The background audioplayer to use. Select \"auto\" to automatically select an available player for your system."
      }
    }
  },
  "actions": {
    "play": {
      "type": "object",
      "title": "Play",
      "mode": "listen",
      "description": "Play one or more Audio Tracks.",
      "documentation": "https://docs.adaptorex.org/basics/actions/sound/play.html",
      "required": [
        "tracks"
      ],
      "additionalProperties": false,
      "properties": {
        "tracks": {
          "type": "array",
          "format": "table",
          "default": [
            ""
          ],
          "items": {
            "$ref": "#/definitions/files",
            "title": "track"
          }
        },
        "loop": {
          "type": "integer",
          "description": "Repeat playing track or tracks multiple times. Set to -1 to repeat infinite.",
          "minimum": -1
        },
        "next": {
          "$ref": "#/definitions/next"
        }
      }
    }
  }
}