MCPcopy Create free account
hub / github.com/RustOtomeLab/RustEng / load_voice

Function load_voice

src/config/voice.rs:33–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31 ENGINE_CONFIG.voice_path(),
32 char
33 ))
34 .unwrap();
35 let item: LengthWrapper = toml::from_str(&content).unwrap();
36 voice_length.insert(
37 char.to_string(),
38 item.cast
39 .into_iter()
40 .map(|(name, secs)| (name, Duration::from_secs(secs)))
41 .collect(),
42 );
43 }
44
45 VoiceLength { voice_length }
46}

Callers

nothing calls this directly

Calls 1

character_name_listMethod · 0.80

Tested by

no test coverage detected