mirror of
https://github.com/Mintplex-Labs/anything-llm
synced 2026-04-26 01:25:15 +02:00
Add piperTTS in-browser text-to-speech (#2052)
* Add piperTTS in-browser text-to-speech * update vite config * Add voice default + change prod public URL * uncheck file * Error handling bump package for better quality and voices * bump package * Remove pre-packed WASM - will not support offline first solution for docker * attach TTSProvider telem
This commit is contained in:
@@ -477,6 +477,12 @@ const KEY_MAPPING = {
|
||||
envKey: "TTS_ELEVEN_LABS_VOICE_MODEL",
|
||||
checks: [],
|
||||
},
|
||||
|
||||
// PiperTTS Local
|
||||
TTSPiperTTSVoiceModel: {
|
||||
envKey: "TTS_PIPER_VOICE_MODEL",
|
||||
checks: [],
|
||||
},
|
||||
};
|
||||
|
||||
function isNotEmpty(input = "") {
|
||||
@@ -536,7 +542,12 @@ function validOllamaLLMBasePath(input = "") {
|
||||
}
|
||||
|
||||
function supportedTTSProvider(input = "") {
|
||||
const validSelection = ["native", "openai", "elevenlabs"].includes(input);
|
||||
const validSelection = [
|
||||
"native",
|
||||
"openai",
|
||||
"elevenlabs",
|
||||
"piper_local",
|
||||
].includes(input);
|
||||
return validSelection ? null : `${input} is not a valid TTS provider.`;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user