fix(tts): 本地模型引擎的缓存键改用模型文件指纹,不再只看文件名
PIPER_VOICE_NAME 只取 basename:/voice-a/model.onnx 换到 /voice-b/model.onnx 缓存键相同,会直接复用旧声音; 原地替换模型文件也不会失效。新增 _file_fp(真实路径 + 大小 + mtime + 前 1MB 内容 sha1), piper 用 PIPER_FP,kokoro_onnx 用 model + voices 两个文件的指纹,一起进 cache_path 的签名。 未设模型路径(edge / kokoro)时为 'none',键不受影响。 最小复现(同名 model.onnx):不同目录 → 不同键;未改动 → 同键仍命中;原地替换 → 不同键;kokoro_onnx 换模型 → 不同键。 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
W
Wei Yihao committed
5b57239578284385c72ebfb2d1fce3ab61a3950a
Parent: 17ea1eb