fix: piper 二进制+依赖库+config 修正 (符号链接指向正确二进制,加 LD_LIBRARY_PATH 和 -c 参数)

This commit is contained in:
2026-07-04 16:58:41 +08:00
parent 706b1375ce
commit 4fd7e7997e
7 changed files with 62 additions and 13 deletions

View File

@@ -384,6 +384,12 @@ pub struct AiConfig {
/// whisper-cli 依赖库路径 (libggml*.so 所在,部署时标定)
#[serde(default)]
pub whisper_lib_dir: Option<PathBuf>,
/// piper 依赖库路径 (libespeak-ng.so / libpiper_phonemize.so 所在)
#[serde(default)]
pub piper_lib_dir: Option<PathBuf>,
/// piper 模型 config json 路径 (.onnx.json)
#[serde(default)]
pub piper_config: Option<PathBuf>,
/// 临时文件目录
#[serde(default = "default_tmp_dir")]
pub tmp_dir: PathBuf,