MCPcopy Create free account
hub / github.com/evilsocket/cake / from_path

Method from_path

cake-core/src/models/luxtts/config.rs:91–95  ·  view source on GitHub ↗
(path: &Path)

Source from the content-addressed store, hash-verified

89
90impl LuxTTSConfig {
91 pub fn from_path(path: &Path) -> Result<Self> {
92 let content = std::fs::read_to_string(path)?;
93 let config: Self = serde_json::from_str(&content)?;
94 Ok(config)
95 }
96
97 /// Total number of FM decoder layers across all stacks.
98 pub fn total_fm_layers(&self) -> usize {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected