Audio format
PCM Sample Files
PCM (.pcm) files contain raw, unformatted audio samples in Pulse Code Modulation. Used in embedded systems and DSP applications, they require external metadata (sample rate, bit depth). Use sample .pcm files to validate low-level audio processing, buffer alignment, and format conversion.
4 files
All to 5MB
SHA256 verified
Manifest included
Quick facts
Files first
PCM Sample Files — Download
Starter file
DownloadUse cases
PCM Testing Workflows
Raw Audio Playback Validation
Open Format PCMRaw Audio Transfer
Open Format PCMCompare and decide
PCM Format Comparisons
FAQ and reference
PCM File FAQ
Checksum Verification
Use checksums to confirm file integrity after download.
shasum -a 256 your_file_name_here
# Compare output with SHA256 values listed above.
Where is the machine-readable manifest?
Use the manifest when you need stable names, SHA256 values, and URLs for automation.
Use in code — curl, Python, Node, wget
Copy any snippet directly into scripts, test suites, or CI pipelines. All URLs are stable and publicly accessible with no auth required.
# Download pcm_15s_sample_file_1.3MB.pcm
curl -L -o pcm_15s_sample_file_1.3MB.pcm \
https://samplefile.com/samples/download/audio/pcm/pcm_15s_sample_file_1.3MB.pcm/
# Or fetch a random PCM file
curl -s "https://samplefile.com/samples/api/random?format=pcm" | jq -r '.download_url'
# Download pcm_15s_sample_file_1.3MB.pcm
wget -O pcm_15s_sample_file_1.3MB.pcm \
https://samplefile.com/samples/download/audio/pcm/pcm_15s_sample_file_1.3MB.pcm/
import requests
# Download a specific file
url = "https://samplefile.com/samples/download/audio/pcm/pcm_15s_sample_file_1.3MB.pcm/"
resp = requests.get(url)
with open("pcm_15s_sample_file_1.3MB.pcm", "wb") as f:
f.write(resp.content)
# Or fetch a random PCM file via API
meta = requests.get("https://samplefile.com/samples/api/random?format=pcm").json()
resp = requests.get(meta["download_url"])
with open(meta["name"], "wb") as f:
f.write(resp.content)
// Download a specific file
const fs = require("fs");
const https = require("https");
const url = "https://samplefile.com/samples/download/audio/pcm/pcm_15s_sample_file_1.3MB.pcm/";
https.get(url, (res) => {
res.pipe(fs.createWriteStream("pcm_15s_sample_file_1.3MB.pcm"));
});
// Or fetch a random PCM via the API
const meta = await fetch("https://samplefile.com/samples/api/random?format=pcm").then(r => r.json());
const file = await fetch(meta.download_url);
// use file.arrayBuffer(), file.body, etc.
# Random PCM file (JSON response)
GET https://samplefile.com/samples/api/random?format=pcm
# All PCM files
GET https://samplefile.com/samples/api/files?format=pcm
# Manifest with SHA256 checksums
GET https://samplefile.com/samples/audio/pcm/manifest.json
# Response includes: name, size_bytes, mime_type, sha256, download_url
Validation Methodology
- Verify duration, sample rate, and channel count in your decoder.
- Test metadata extraction and malformed-tag handling.
- Validate seek/stream behavior over slow networks.