12 · Reference
Changelog
Short history. Full notes with diffs live on GitHub Releases.
0.4.0
recording era — writing files
sound_rs.write(path, audio, rate, subtype=)writes WAV in PCM16, PCM24 or float32. Arrays are(frames, channels), matchingload, so a load/write round-trip needs no transpose.Recorder.record_to(path, seconds, subtype=)records and saves in one call.- Non-contiguous arrays (
audio[:, 0]) are accepted bywriteandplay_arrayinstead of raising.
0.3.2
accuracy
load_bytestrims AAC priming too: the MP4 edit list is read from the buffer, so bytes decode to the same frame count as a file.record(seconds)never returns more than the requested frames; the extra device buffer at the end is cut.
0.3.1
documentation
- PyPI carries the corrected README: roadmap, and one figure for time-to-first-sound.
0.3.0
reliability, datasets, recording
- Stable error codes, mutation fuzzing, deterministic decode hashes, underrun and latency reporting.
load(..., sample_rate, mono, offset, duration),load_bytes,Recorder,Player.enqueue,begin_feed/feed.- Benchmark harness v2 and abi3 wheels for five platforms.
0.2.2
command line
soundrsconsole command:play,info,devices,docs,--version,--help.- Documentation link in the package metadata.
0.2.1
packaging and metadata
sound_rs.__version__.- Metadata for discovery: keywords, classifiers, documentation links; wheels and
requires-pythonnow agree on Python 3.10+. - Small internal cleanups; no behaviour change.
0.2.0
streaming player
Playerwith play, pause, resume, stop, seek, volume, position, duration.- Streaming decode: constant memory, ~11 ms to first sound on a 10-minute file.
- rubato resampler replaces linear interpolation; downsampling no longer aliases.
- MP3 decoded with minimp3 (1.1× faster than libsndfile, previously slower).
load_many,list_devices, device selection, typed stubs,SoundRsError.
0.1.8
correctness
- Gapless trimming for MP3 and OGG; AAC priming read from the MP4 edit list.
- Metadata without decoding; header-only duration.
- Playback waits for the exact device drain time instead of a fixed 100 ms.
0.1.7
builds
- Wheels for Linux, Windows and macOS across Python 3.10–3.14, published from CI.