Skip to content
HALOWERK

File Formats and Conversion

audio cue pcm alignment

Audio cue sample alignment translates a track start to PCM sample frames and reports any fractional sample. Use it when an agent needs positioning a decoder at a cue boundary.

POST https://format.halowerk.com/v1/audio-cue-pcm-alignment

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
textstringYes
trackintegerYes
sample_rateintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "text": {
      "type": "string",
      "maxLength": 18000,
      "minLength": 1
    },
    "track": {
      "type": "integer",
      "minimum": 1,
      "maximum": 99
    },
    "sample_rate": {
      "type": "integer",
      "minimum": 8000,
      "maximum": 384000
    }
  },
  "required": [
    "text",
    "track",
    "sample_rate"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "text": "FILE \"6RDuz0d7.M5S.wav\" WAVE\nTRACK 02 AUDIO\nINDEX 01 00:00:00\nTRACK 03 AUDIO\nINDEX 01 02:31:37\nTRACK 04 AUDIO\nINDEX 01 07:33:18",
  "track": 3,
  "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": {
        "sample_frame": {
          "type": "integer"
        },
        "remainder_over_75": {
          "type": "integer"
        }
      },
      "required": [
        "sample_frame",
        "remainder_over_75"
      ]
    },
    "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 โ†’