Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

raea voice say: Pocket's stock voice (alba) when none is named, as a session's, never the clip in the person's voice folder

shinyobjectz86f9aa310f27
diff --git a/apps/voice/src/lib.rs b/apps/voice/src/lib.rs
index 86461856..e66c0b42 100644
--- a/apps/voice/src/lib.rs
+++ b/apps/voice/src/lib.rs
@@ -58,7 +58,8 @@ fn say(text: &str, out: &str, voice: Option<String>) -> anyhow::Result<String> {
use raea_sys_speech::pocket::{Out, Pocket};
let t = Instant::now();
let mut pocket = Pocket::load(&raea_sys_ml::models::ensure(&Pocket::SPEC, &mut fetching(quiet))?)?;
- let voice = voice.unwrap_or_else(Pocket::default_voice);
+ // Pocket's stock voice, as a session's: never the clip the library's own default takes from the person's voice folder
+ let voice = voice.unwrap_or_else(|| Pocket::VOICES[0].to_string());
pocket.begin("", &voice, 1, 0.7)?;
let load_ms = t.elapsed().as_millis() as u64;
let t = Instant::now();