From 017ac8a51568c3b1b7a6e898bcdf13f4e1cf5f4d Mon Sep 17 00:00:00 2001 From: Tony Ribeiro Date: Sun, 14 Jan 2024 04:26:06 +0100 Subject: [PATCH] Added vrm tts lip sync call --- public/scripts/extensions/tts/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/scripts/extensions/tts/index.js b/public/scripts/extensions/tts/index.js index 7bca9c258..c37e97ebc 100644 --- a/public/scripts/extensions/tts/index.js +++ b/public/scripts/extensions/tts/index.js @@ -474,6 +474,10 @@ async function tts(text, voiceId, char) { if (extension_settings.rvc.enabled && typeof window['rvcVoiceConversion'] === 'function') response = await window['rvcVoiceConversion'](response, char, text); + // VRM injection + if (extension_settings.vrm.enabled && typeof window['vrmLipSync'] === 'function') + await window['vrmLipSync'](response, char); + await addAudioJob(response); }