Update index.js

This commit is contained in:
Cohee 2024-01-21 15:11:47 +02:00 committed by GitHub
parent b7f46b1cdf
commit ffbf35e468
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -323,7 +323,7 @@ async function playAudioData(audioJob) {
const srcUrl = await getBase64Async(audioBlob);
// 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"]);
}