{"uid":"cap_wNc2_DEdN4brb-7eJe-TX","slug":"audio-calc-buffer-size-to-latency-converter-7d04dc47","name":"Audio Calc: Buffer Size to Latency Converter","description":"Audio buffer size to latency in ms (one way and round trip) at a sample rate, or the buffer needed for a latency target.","url":"https://audio-calc.x402tookit.com/buffer-latency?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["sampleRate"],"properties":{"buffers":{"type":"number","description":"Number of buffers in the path (default 2, as on input plus output)"},"targetMs":{"type":"number","description":"Latency target in ms to find a buffer for"},"sampleRate":{"type":"number","description":"Sample rate in Hz"},"converterMs":{"type":"number","description":"Fixed converter and driver latency to add in ms (default 0)"},"bufferSamples":{"type":"number","description":"Buffer size in samples (use this, or targetMs)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"source":{"type":["null","string"]},"buffers":{"type":["null","number"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"targetMs":{},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"sampleRate":{"type":["null","number"]},"commonSizes":{"type":["array","null"],"items":{"type":"object","properties":{"oneBufferMs":{"type":["null","number"]},"roundTripMs":{"type":["null","number"]},"bufferSamples":{"type":["null","number"]}}}},"converterMs":{"type":["null","number"]},"oneBufferMs":{"type":["null","number"]},"roundTripMs":{"type":["null","number"]},"samplesPerMs":{"type":["null","number"]},"bufferSamples":{"type":["null","number"]},"bufferForTarget":{}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_wH2lozD2fPEdgqvyTONEs","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts audio buffer size (in samples) to one-way and round-trip latency in milliseconds at a given sample rate, or finds the buffer size needed to meet a latency target.","exampleAgentPrompt":"What's the one-way and round-trip latency for a 256-sample buffer at 48000 Hz, assuming 2 buffers in the path?","exampleUseCases":[{"title":"DAW recording latency check","prompt":"I'm setting up my DAW with a 128-sample buffer at 44100 Hz — what will the round-trip latency be? I want to know if it's low enough for live monitoring."},{"title":"Finding buffer size for live performance","prompt":"I need under 5ms round-trip latency for a live performance rig running at 48000 Hz — what's the smallest buffer size that gets me there?"},{"title":"Comparing buffer sizes at high sample rate","prompt":"Can you show me the one-way and round-trip latencies for common buffer sizes at 96kHz so I can decide which one to use for my studio session?"}],"resultDescription":"Returns one-way latency (oneBufferMs) and round-trip latency (roundTripMs) in milliseconds for the given buffer size and sample rate, or the buffer size (bufferForTarget) needed to meet a millisecond latency target. Also includes samples-per-millisecond, a table of common buffer sizes with their latencies, and any converter/driver offset applied.","failureModes":["Missing required sampleRate parameter returns an error","Providing both bufferSamples and targetMs may produce ambiguous results","Very low sample rates or zero values may return nonsensical latency figures","Extremely small targetMs values may yield no achievable standard buffer size"],"whenToPreferThis":"Use this endpoint when you need to compute audio buffer-to-latency relationships for real-time audio work — e.g. configuring DAWs, audio interfaces, or low-latency monitoring chains. It handles both directions: samples→ms and ms→samples. Prefer this over general-purpose calculators when you need the audio-specific round-trip model (N buffers in path) and converter/driver offset support.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T13:14:28.465Z","isFirstParty":false,"canonicalSlug":"audio-calc-buffer-size-to-latency-converter-7d04dc47"}