{
  "name": "Tonedetection",
  "description": "Detects spans of monotonic audio within an audio file",
  "app_version": "v2.1",
  "mmif_version": "1.2.0",
  "app_license": "Apache 2.0",
  "identifier": "http://apps.clams.ai/tonedetection/v2.1",
  "url": "https://github.com/clamsproject/app-tonedetection",
  "input": [
    [
      {
        "@type": "http://clams.ai/vocabulary/type/AudioDocument/v2",
        "required": true
      },
      {
        "@type": "http://clams.ai/vocabulary/type/VideoDocument/v2",
        "required": true
      }
    ]
  ],
  "output": [
    {
      "@type": "http://clams.ai/vocabulary/type/TimeFrame/v6",
      "properties": {
        "label": "tone"
      }
    }
  ],
  "parameters": [
    {
      "name": "minToneDuration",
      "description": "minimum length threshold (in ms)",
      "type": "integer",
      "default": 2000,
      "multivalued": false
    },
    {
      "name": "stopAt",
      "description": "stop point for audio processing (in ms). Defaults to the length of the file",
      "type": "integer",
      "default": 3600000,
      "multivalued": false
    },
    {
      "name": "tolerance",
      "description": "threshold value for a \"match\" within audio processing",
      "type": "number",
      "default": 1,
      "multivalued": false
    },
    {
      "name": "pretty",
      "description": "The JSON body of the HTTP response will be re-formatted with 2-space indentation",
      "type": "boolean",
      "default": false,
      "multivalued": false
    },
    {
      "name": "runningTime",
      "description": "The running time of the app will be recorded in the view metadata",
      "type": "boolean",
      "default": true,
      "multivalued": false
    },
    {
      "name": "hwFetch",
      "description": "The hardware information (architecture, GPU and vRAM) will be recorded in the view metadata",
      "type": "boolean",
      "default": false,
      "multivalued": false
    },
    {
      "name": "tfSamplingMode",
      "description": "Sampling mode for TimeFrame annotations. Has no effect when the app does not process TimeFrames. \"representatives\" uses all representative timepoints if present, otherwise skips the TimeFrame. \"single\" uses the middle representative if present, otherwise extracts an image from the midpoint of the start/end interval (midpoint is calculated by floor division of the sum of start and end). \"all\" uses all target timepoints if present, otherwise extracts all images from the time interval.",
      "type": "string",
      "choices": [
        "representatives",
        "single",
        "all"
      ],
      "default": "representatives",
      "multivalued": false
    }
  ]
}