Skip to content
HALOWERK

File Formats and Conversion

wave header duration

WAV duration returns the number of complete declared audio frames and their playback length. Use it when an agent needs the duration before fetching the audio payload.

POST https://format.halowerk.com/v1/wave-header-duration

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
header_base64stringYes
Show full input schema
{
  "type": "object",
  "properties": {
    "header_base64": {
      "type": "string",
      "maxLength": 12010,
      "minLength": 1
    }
  },
  "required": [
    "header_base64"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "header_base64": "UklGRvoZAABXQVZFZm10IBAAAAABAAIAESsAACJWAAACAAgAZGF0YdYZAAA="
}

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": {
        "frames": {
          "type": "integer"
        },
        "sample_rate": {
          "type": "integer"
        },
        "seconds": {
          "type": "number"
        }
      },
      "required": [
        "frames",
        "sample_rate",
        "seconds"
      ]
    },
    "limitations": {
      "type": "string"
    }
  }
}

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-20 UTC.

More endpoints in this hub

All endpoints in this hub โ†’