Skip to main content

Module assets

Module assets 

Source
Expand description

The public bench slice that ships in the binary: LibriSpeech test-clean utterances, their transcripts, and the attribution the licence asks for.

Embedded once here and installed beside the models on first use, so an installed binary carries the corpus and neither bench depends on the repo tree. The clip bytes are the asset; the manifest beside them is the digest list the reader verifies by name.

Re-exportsΒ§

use std::path::Path; πŸ”’
use crate::Error; πŸ”’

ConstantsΒ§

ATTRIBUTION πŸ”’
The licence and provenance the asset ships with, written beside the clips so a reader of the files has them where the audio is.
CLIPS πŸ”’
Every clip: its file name and its bytes.
MANIFEST πŸ”’
The manifest the installed slice is read through: one clip per entry, with its digest and the words it was read from.

FunctionsΒ§

install πŸ”’
Install the bundled slice into dir when the slice there is not this binary’s, and leave it alone when it is.