75trust / 100

Speech Music Segment

by ton.halowerk.com in AI models & inference

x402 APIPassing, checked 4 h ago

Split audio into speech, music, silence and noise segments with start/end times, using disclosed signal features and rules (no model). Decodes up to 10 minutes (mono, 16 kHz). Frame features (64 ms, 20 ms hop): energy, spectral flatness 100–6000 Hz, periodicity as Boersma (1993) window-corrected autocorrelation (70–500 Hz) and zero-crossing rate.

POST
https://ton.halowerk.com/v1/speech-music-segment
Price
$0.005
per call in USDC
Uptime
91.3%
last 30 days
Response time
130 ms
162 ms slowest 5%
Last check
Passed
4 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

POST https://ton.halowerk.com/v1/speech-music-segment

Each call costs $0.005 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

POST https://ton.halowerk.com/v1/speech-music-segment
content-type: application/json

{
  "audio_url": "https://ton.halowerk.com/beispiel/speech-music-segment-audio.ogg",
  "include_windows": true
}

Parameters

ParameterTypeRequiredDescription
audio_base64stringNo
audio_urlstring (uri)No
include_windowsbooleanNo Default: false.

Example response

The provider's example. We can't check it without paying.

Example response, 166 lines
{
  "limitations": [
    "Rule thresholds were checked on clean synthetic speech and music; speech over music is labelled by the dominant class.",
    "Singing is usually labelled music; unpitched percussion without tonal instruments is labelled noise.",
    "Window resolution is 0.5 s; boundaries are accurate to about 0.5 s."
  ],
  "result": {
    "rules": [
      "silence: level < -55 dBFS or more than 45 dB below the 95th-percentile window level",
      "noise: flatness >= 0.25, periodicity < 0.5 and pitch-grid concentration < 0.6",
      "music: pitch-grid concentration >= 0.7, or >= 0.5 without speech-like cues",
      "speech: low-energy ratio >= 0.25, high-ZCR ratio >= 0.1 or >= 3 voicing changes per second",
      "otherwise: noise (other sound)",
      "then 3-window median and merging of segments shorter than 1 s"
    ],
    "segments": [
      {
        "duration_s": 6.63,
        "end_s": 6.63,
        "start_s": 0,
        "type": "speech"
      }
    ],
    "source": {
      "analysed_s": 6.625,
      "analysis_rate_hz": 16000,
      "bytes": 26328,
      "channels": 1,
      "codec": "opus",
      "container": "ogg",
      "duration_s": 6.632,
      "sample_rate": 48000,
      "sha256": "01ff5cfd61fb876b4222d6a73debfeb3c844d0bb8ec1a28eb218a588eb364ba2"
    },
    "totals_s": {
      "music": 0,
      "noise": 0,
      "silence": 0,
      "speech": 6.63
    },
    "windows": [
      {
        "flatness": 0,
        "high_zcr_ratio": 0.18,
        "label": "speech",
        "level_db": -11.5,
        "low_energy_ratio": 0.4,
        "periodicity": 0.975,
        "pitch_grid_concentration": 0.064,
        "start_s": 0,
        "voiced": 1,
        "voicing_changes_per_s": 0
      },
      {
        "flatness": 0.001,
        "high_zcr_ratio": 0.28,
        "label": "speech",
        "level_db": -12,
        "low_energy_ratio": 0.46,
        "periodicity": 0.962,
        "pitch_grid_concentration": 0.112,
        "start_s": 0.5,
        "voiced": 1,
        "voicing_changes_per_s": 0
      },
      {
        "flatness": 0.001,
        "high_zcr_ratio": 0.26,
        "label": "speech",
        "level_db": -14,
        "low_energy_ratio": 0.34,
        "periodicity": 0.952,
        "pitch_grid_concentration": 0.436,
        "start_s": 1,
        "voiced": 1,
        "voicing_changes_per_s": 0
      },
      {
        "flatness": 0.001,
        "high_zcr_ratio": 0.12,
        "label": "speech",
        "level_db": -12.4,
        "low_energy_ratio": 0.26,
        "periodicity": 0.969,
        "pitch_grid_concentration": 0.506,
        "start_s": 1.5,
        "voiced": 1,
        "voicing_changes_per_s": 0
      },
      {
        "flatness": 0.001,
        "high_zcr_ratio": 0.14,
        "label": "speech",
        "level_db": -13.1,
        "low_energy_ratio": 0.38,
        "periodicity": 0.971,
        "pitch_grid_concentration": 0.291,
        "start_s": 2,
        "voiced": 1,
        "voicing_changes_per_s": 0
      },
      {
        "flatness": 0.002,
        "high_zcr_ratio": 0.16,
        "label": "speech",
        "level_db": -14.7,
        "low_energy_ratio": 0.36,
        "periodicity": 0.973,
        "pitch_grid_concentration": 0.348,
        "start_s": 2.5,
        "voiced": 1,
        "voicing_changes_per_s": 0
      },
      {
        "flatness": 0.001,
        "high_zcr_ratio": 0.1,
        "label": "speech",
        "level_db": -13.4,
        "low_energy_ratio": 0.26,
        "periodicity": 0.971,
        "pitch_grid_concentration": 0.518,
        "start_s": 3,
        "voiced": 1,
        "voicing_changes_per_s": 0
      },
      {
        "flatness": 0.002,
        "high_zcr_ratio": 0.24,
        "label": "speech",
        "level_db": -14.5,
        "low_energy_ratio": 0.38,
        "periodicity": 0.961,
        "pitch_grid_concentration": 0.425,
        "start_s": 3.5,
        "voiced": 1,
        "voicing_changes_per_s": 0
      },
      {
        "flatness": 0.002,
        "high_zcr_ratio": 0.26,
        "label": "speech",
        "level_db": -16.9,
        "low_energy_ratio": 0.58,
        "periodicity": 0.948,
        "pitch_grid_concentration": 0.071,
        "start_s": 4,
        "voiced": 1,
        "voicing_changes_per_s": 0
      },
      {
        "flatness": 0.002,
        "high_zcr_ratio": 0.22,
        "label": "speech",
        "level_db": -15.4,
        "low_energy_ratio": 0.44,
        "periodicity": 0.946,
        "pitch_grid_concentration": 0.114,
        "start_s": 4.5,
        "voiced": 1,
        "voicing_changes_per_s": 0
      }
    ]
  },
  "service": "speech-music-segment",
  "status": "success"
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.005.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://ton.halowerk.com/v1/speech-music-segment' \
  -H 'content-type: application/json' \
  --data-raw '{"audio_url":"https://ton.halowerk.com/beispiel/speech-music-segment-audio.ogg","include_windows":true}'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://ton.halowerk.com/v1/speech-music-segment' \
  -H 'content-type: application/json' \
  --data-raw '{"audio_url":"https://ton.halowerk.com/beispiel/speech-music-segment-audio.ogg","include_windows":true}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.005 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.005" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.005 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fton.halowerk.com%2Fv1%2Fspeech-music-segment&method=POST
const res = await pay("https://ton.halowerk.com/v1/speech-music-segment", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "audio_url": "https://ton.halowerk.com/beispiel/speech-music-segment-audio.ogg",
    "include_windows": true
  }),
});
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.005 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.005"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://ton.halowerk.com/v1/speech-music-segment",
        json={
            "audio_url": "https://ton.halowerk.com/beispiel/speech-music-segment-audio.ogg",
            "include_windows": True,
        },
    )
    print(res.status_code, res.text)

Security scan

No findings

We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
4 h agoPassed402127 ms$0.005
14 h agoPassed402119 ms$0.005
29 h agoTimed out---
3 days agoTimed out---
4 days agoPassed402123 ms$0.005
Show 10 older checks
5 days agoPassed402121 ms$0.005
5 days agoPassed402153 ms$0.005
6 days agoPassed402137 ms$0.005
6 days agoPassed402130 ms$0.005
6 days agoPassed402134 ms$0.005
7 days agoPassed40248 ms$0.005
7 days agoPassed402131 ms$0.005
7 days agoPassed402111 ms$0.005
8 days agoPassed402134 ms$0.005
8 days agoPassed402128 ms$0.005