Skip to content
HALOWERK

Podcast and Music Analysis

disc cue sample count fit

CD cue file-length validation checks whether every index fits the given PCM sample count and reports partial CD frames. Use it when an agent needs a structural check of the audio file against its cue markers.

POST https://ton.halowerk.com/v1/disc-cue-sample-count-fit

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
sheetstringYes
samplesintegerYes
sample_rateintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "sheet": {
      "type": "string",
      "maxLength": 12000,
      "minLength": 1
    },
    "samples": {
      "type": "integer",
      "minimum": 1,
      "maximum": 5000000000
    },
    "sample_rate": {
      "type": "integer",
      "minimum": 8000,
      "maximum": 384000
    }
  },
  "required": [
    "sheet",
    "samples",
    "sample_rate"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "sheet": "FILE \"interval.wav\" WAVE\nTRACK 01 AUDIO\nINDEX 01 00:00:00\nTRACK 02 AUDIO\nFLAGS PRE\nINDEX 00 00:01:00\nINDEX 01 00:02:00",
  "samples": 264600,
  "sample_rate": 44100
}

Result & documentation

Show published result schema
{
  "type": "object",
  "required": [
    "measured_at",
    "source",
    "data",
    "limitations"
  ],
  "properties": {
    "measured_at": {
      "type": "string"
    },
    "source": {
      "type": "object",
      "required": [
        "reference",
        "retrieved_at"
      ],
      "properties": {
        "reference": {
          "type": "string"
        },
        "retrieved_at": {
          "type": "string"
        }
      }
    },
    "data": {
      "type": "object",
      "properties": {
        "complete_frames": {
          "type": "integer"
        },
        "remainder_numerator": {
          "type": "integer"
        },
        "unreachable_indexes": {
          "type": "integer"
        }
      },
      "required": [
        "complete_frames",
        "remainder_numerator",
        "unreachable_indexes"
      ]
    },
    "limitations": {
      "type": "string"
    }
  }
}

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.

More endpoints in this hub

All endpoints in this hub โ†’