Where a speech asset comes from, what it is licensed under, and how it lands on disk.
resources/vis-models/manifest.json lists the models and data Vis can install.
Each entry gives the license, attribution, and permission for commercial use.
Vis does not download speech assets that the manifest does not list.
Each entry lists its sources in preference order and every source delivers the
SAME bytes, so one :sha256 verifies them all:
hf Hugging Face. SKIPPED unless a token is configured, tried FIRST when one is. A token is never required — it only changes WHERE the same bytes come from. pack the shared Vis assets-pack release, the default, so a first run needs no account anywhere. upstream the project that published the artifact, last, as a fallback.
Sources are tried in that order and the first that installs cleanly wins, so an asset host being down is a slower install rather than a dead feature.
Where a speech asset comes from, what it is licensed under, and how it lands on
disk.
`resources/vis-models/manifest.json` lists the models and data Vis can install.
Each entry gives the license, attribution, and permission for commercial use.
Vis does not download speech assets that the manifest does not list.
Each entry lists its sources in preference order and every source delivers the
SAME bytes, so one `:sha256` verifies them all:
hf Hugging Face. SKIPPED unless a token is configured, tried FIRST
when one is. A token is never required — it only changes WHERE
the same bytes come from.
pack the shared Vis assets-pack release, the default, so a first run
needs no account anywhere.
upstream the project that published the artifact, last, as a fallback.
Sources are tried in that order and the first that installs cleanly wins, so
an asset host being down is a slower install rather than a dead feature.(ensure! asset)(ensure! asset on-progress)Install asset if it is not already there (blocking). Returns the install
dir.
This is the AUTOMATIC path, so it refuses an :is-opt-in asset: one whose
terms we will not accept on a user's behalf arrives only through an explicit
install!, never because something wanted to speak.
Install `asset` if it is not already there (blocking). Returns the install dir. This is the AUTOMATIC path, so it refuses an `:is-opt-in` asset: one whose terms we will not accept on a user's behalf arrives only through an explicit `install!`, never because something wanted to speak.
(entry id)The manifest entry with id. Throws rather than returning nil: an unknown id
is a bug in the caller, not a missing download.
The manifest entry with `id`. Throws rather than returning nil: an unknown id is a bug in the caller, not a missing download.
(env-value name)A configured environment value, with blank treated as absent.
A configured environment value, with blank treated as absent.
(for-engine engine)Every asset an engine owns, in manifest order.
Every asset an engine owns, in manifest order.
(hf-token)The configured Hugging Face token, or nil. OPTIONAL by design: without one every entry still resolves, from the Vis asset pack. Returned only to the downloader that needs it — never logged, never put in an ex-info.
The configured Hugging Face token, or nil. OPTIONAL by design: without one every entry still resolves, from the Vis asset pack. Returned only to the downloader that needs it — never logged, never put in an ex-info.
Both names the Hugging Face tooling itself reads, so a machine already set up
for huggingface-cli needs no extra configuration.
Both names the Hugging Face tooling itself reads, so a machine already set up for `huggingface-cli` needs no extra configuration.
(install! entry)(install! entry on-progress)(install! entry dir on-progress)Download + verify + ATOMICALLY install entry, trying each source in turn.
The final directory never holds partial files: an interrupted or corrupt
download can't leave a truncated .onnx that native-aborts the JVM on the
next load, it just stays absent. Returns the install dir.
on-progress (optional) is called with {:phase :downloading|:extracting
:progress 0..99}. Transfer owns 0..89 and unpacking owns 90..98, so the number
keeps MOVING through a multi-minute bzip2 extraction instead of parking on 99%
and looking hung.
Download + verify + ATOMICALLY install `entry`, trying each source in turn.
The final directory never holds partial files: an interrupted or corrupt
download can't leave a truncated `.onnx` that native-aborts the JVM on the
next load, it just stays absent. Returns the install dir.
`on-progress` (optional) is called with {:phase :downloading|:extracting
:progress 0..99}. Transfer owns 0..89 and unpacking owns 90..98, so the number
keeps MOVING through a multi-minute bzip2 extraction instead of parking on 99%
and looking hung.(install-dir entry)Absolute directory this entry installs into.
Absolute directory this entry installs into.
(manifest)Every asset entry, in manifest order.
Every asset entry, in manifest order.
(missing-files entry)(missing-files entry dir)The :requires paths of entry that are not present under dir.
The `:requires` paths of `entry` that are not present under `dir`.
(models-root)Where installed assets live. A function, never a top-level def:
native-image initializes this namespace at BUILD time, so a captured
user.home would point every installed binary at the BUILDER's home.
Where installed assets live. A function, never a top-level `def`: `native-image` initializes this namespace at BUILD time, so a captured `user.home` would point every installed binary at the BUILDER's home.
(sources entry)(sources entry is-token-available)The sources of entry worth trying, in order. Sources that need a token are
dropped when there is none and moved to the FRONT when there is one, which is
the whole of the policy: a token changes where the bytes come from and never
whether they can be had.
The sources of `entry` worth trying, in order. Sources that need a token are dropped when there is none and moved to the FRONT when there is one, which is the whole of the policy: a token changes where the bytes come from and never whether they can be had.
Manifest id of the local transcription model. Named in the CATALOG's own
namespace so a caller can ask whether it is installed — installed? on its
entry — without loading the speech backend that would use it.
Manifest id of the local transcription model. Named in the CATALOG's own namespace so a caller can ask whether it is installed — [[installed?]] on its [[entry]] — without loading the speech backend that would use it.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |