mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-04-17 12:17:21 +02:00
Clean comments
This commit is contained in:
parent
09a413559f
commit
b741f32ae9
@ -321,10 +321,12 @@ async function playAudioData(audioJob) {
|
|||||||
}
|
}
|
||||||
if (audioBlob instanceof Blob) {
|
if (audioBlob instanceof Blob) {
|
||||||
const srcUrl = await getBase64Async(audioBlob);
|
const srcUrl = await getBase64Async(audioBlob);
|
||||||
// VRM inject
|
|
||||||
|
// VRM lip sync
|
||||||
if (extension_settings.vrm.enabled && typeof window['vrmLipSync'] === 'function') {
|
if (extension_settings.vrm.enabled && typeof window['vrmLipSync'] === 'function') {
|
||||||
await window['vrmLipSync'](audioBlob, audioJob["char"]);
|
await window['vrmLipSync'](audioBlob, audioJob["char"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
audioElement.src = srcUrl;
|
audioElement.src = srcUrl;
|
||||||
} else if (typeof audioBlob === 'string') {
|
} else if (typeof audioBlob === 'string') {
|
||||||
audioElement.src = audioBlob;
|
audioElement.src = audioBlob;
|
||||||
@ -481,11 +483,6 @@ async function tts(text, voiceId, char) {
|
|||||||
if (extension_settings.rvc.enabled && typeof window['rvcVoiceConversion'] === 'function')
|
if (extension_settings.rvc.enabled && typeof window['rvcVoiceConversion'] === 'function')
|
||||||
response = await window['rvcVoiceConversion'](response, char, text);
|
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, char);
|
await addAudioJob(response, char);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user