{"uid":"cap__dCOMBUGM_pklgkb6ctV8","slug":"audio-calc-bitrate-file-size-calculator-be781721","name":"Audio Calc: Bitrate & File Size Calculator","description":"Audio file size from bitrate and duration, or the bitrate or duration it implies; PCM size from rate, depth and channels.","url":"https://audio-calc.x402tookit.com/bitrate-size?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":[],"properties":{"seconds":{"type":"number","description":"Duration in seconds"},"bitDepth":{"type":"integer","description":"PCM bits per sample"},"channels":{"type":"integer","description":"Number of channels (default 2)"},"sizeBytes":{"type":"number","description":"File size in bytes (to solve for bitrate or duration)"},"sampleRate":{"type":"number","description":"PCM sample rate in Hz (with bitDepth and channels)"},"bitrateKbps":{"type":"number","description":"Compressed bitrate in kilobits per second (1 kbps = 1000 bits/s)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"pcm":{"type":["boolean","null"]},"asOf":{"type":["null","string"]},"sizeGB":{"type":["null","number"]},"sizeKB":{"type":["null","number"]},"sizeMB":{"type":["null","number"]},"source":{"type":["null","string"]},"minutes":{"type":["null","number"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"seconds":{"type":["null","number"]},"sizeGiB":{"type":["null","number"]},"sizeKiB":{"type":["null","number"]},"sizeMiB":{"type":["null","number"]},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"sizeBytes":{"type":["null","number"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"bitrateKbps":{"type":["null","number"]},"bytesPerSecond":{"type":["null","number"]},"megabytesPerHour":{"type":["null","number"]}}}}}}},"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_ixS0U8FsX1u4DsXNuw481","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":"Calculates audio file size from bitrate and duration, solves for missing bitrate or duration given file size, and computes PCM file size from sample rate, bit depth, and channels.","exampleAgentPrompt":"How big will a 45-minute podcast be if I encode it at 128 kbps? Also tell me how many megabytes per hour that works out to.","exampleUseCases":[{"title":"Podcast episode storage estimate","prompt":"I'm recording a 45-minute podcast episode and planning to export it at 96 kbps — how many MB will the file be, and how much storage would I need for a full season of 12 episodes?"},{"title":"Reverse-engineer bitrate from file size","prompt":"I downloaded an audio file that's 52 MB and it's 58 minutes long — what bitrate was it encoded at?"},{"title":"PCM raw audio size for DAW project","prompt":"I'm recording a DAW session at 48000 Hz, 24-bit, stereo for 90 seconds — what will the raw PCM file size be in MB?"}],"resultDescription":"Returns file size in multiple units (bytes, KB, MB, GB, KiB, MiB, GiB), duration in seconds and minutes, bitrate in kbps, bytes per second, megabytes per hour, a human-readable summary, and a PCM flag indicating whether the calculation used PCM mode. For unsolvable inputs, returns null fields with reasons explaining what's missing.","failureModes":["Insufficient query parameters provided to solve for any single unknown — returns null results with reasons array explaining what's missing","Conflicting or zero-value inputs (e.g. zero duration) may yield null or degenerate results","Missing required combination for PCM mode (sampleRate, bitDepth, and channels all needed together)","Non-numeric or out-of-range values may cause schema validation errors"],"whenToPreferThis":"Use this endpoint when you need to compute audio file sizes, derive bitrate or duration from file size, or calculate raw PCM storage requirements — especially in agentic workflows involving podcast planning, audio streaming budget estimation, DAW session sizing, or storage capacity calculations. It handles both compressed (bitrate-based) and uncompressed (PCM) audio math in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T13:12:44.939Z","isFirstParty":false,"canonicalSlug":"audio-calc-bitrate-file-size-calculator-be781721"}