Skip to main content

vcref (Python)

Read, write and verify .vcref voice reference bundles. Format: SPEC.md.

pip install vcref            # no dependencies
pip install "vcref[audio]"   # + soundfile/numpy: decode clips to arrays, pack from WAV/ndarray
import vcref

with vcref.Bundle("dean.vcref") as b:          # path, bytes or file object
    b.name, b.default, b.tags, b.config, b.cadence, b.id
    b.verify()                                  # SHA-256 of every clip and part
    tag = b.select_tag("Really?")               # first matching rule, else the default
    clip = b.clip(tag)                          # Clip(tag, text, seconds, label, sample_rate, flac)
    audio, sr = b.read(tag)                     # float32 array (needs the audio extra)
    b.unpack("out/")                            # <tag>.flac + <tag>.txt (wav=True for WAV)

vcref.pack("voice.vcref",
           {"neutral": {"wav": "neutral.wav", "text": "What is said in the clip."},
            "question": {"flac": flac_bytes, "text": "Is it?"}},
           name="voice", rules=[{"pattern": r"\?\s*$", "tag": "question"}], config={"engine": "voxcpm"})

vcref.set_cadence("voice.vcref", cadence_dict)  # rewrite only the cadence block

Errors are vcref.VcrefError. Command line: vcref info|verify <file>, vcref unpack <file> <dir> [--wav].

Metadata

Release files for vcref 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vcref 0.1.0
File Size Uploaded Provenance Actions
vcref-0.1.0.tar.gz 6.7 kB With provenance Details for vcref-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vcref 0.1.0
File Interpreter ABI Platform Actions
vcref-0.1.0-py3-none-any.whl Python 3 none any Details for vcref-0.1.0-py3-none-any.whl

Total release size: 14.0 kB

Release files / vcref-0.1.0.tar.gz

Download URL vcref-0.1.0.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2e7982e265e0fa7087f43933e080e7ca1508118611aeb19b744614ec9963f564
BLAKE2b-256 checksum
How to use checksums
3268a22ba2fba170c607835b2740a4fe4650b9e6331587ddfbdbc099de65a3c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Release files / vcref-0.1.0-py3-none-any.whl

Download URL vcref-0.1.0-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2cc8d09d4aa3458701aed40ed909e1dc6b057bfc765c43a32a51d4b93e0e159c
BLAKE2b-256 checksum
How to use checksums
4bc09ae4c2d71b12ff8864dab1d7d05aeae991a48783de5dc8611a157bf8ecc5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Security for vcref 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for vcref-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page