Skip to main content

Module model

Module model 

Source
Expand description

The files a speaking model is made of: one ONNX model and a directory of <voice>.bin styles.

Re-exportsΒ§

use std::io::Read; πŸ”’
use std::path::Path; πŸ”’
use std::path::PathBuf; πŸ”’
use sha2::Digest as _; πŸ”’
use sha2::Sha256; πŸ”’
use crate::Error; πŸ”’

StructsΒ§

ModelFiles
A model’s files, and the digests the install declared for them.

FunctionsΒ§

verify_digest
Hash path and compare it with expected, when one is declared.