Adiciona opcao de narracao de video por IA com vozes neurais (Assistente e Antonio), adaptacao automatica de tempo por quadro e conclusao narrativa
This commit is contained in:
+6
-2
@@ -5631,7 +5631,7 @@ Se algum dado não for mencionado, deixe a string vazia ou false para boolean.`
|
||||
});
|
||||
}
|
||||
|
||||
// Compilar Vídeo de Apresentação (FFmpeg)
|
||||
// Compilar Vídeo de Apresentação (FFmpeg com Narração IA)
|
||||
if (btnCompileComicsVideo) {
|
||||
btnCompileComicsVideo.addEventListener('click', async () => {
|
||||
if (generatedPanelsData.length === 0) return;
|
||||
@@ -5640,6 +5640,8 @@ Se algum dado não for mencionado, deixe a string vazia ou false para boolean.`
|
||||
comicsVideoLoader.style.display = 'flex';
|
||||
comicsVideoResult.style.display = 'none';
|
||||
|
||||
const voice = document.getElementById('comicsVideoVoice')?.value || 'mulher';
|
||||
|
||||
try {
|
||||
const response = await fetch('/api/comics/generate-video', {
|
||||
method: 'POST',
|
||||
@@ -5647,7 +5649,9 @@ Se algum dado não for mencionado, deixe a string vazia ou false para boolean.`
|
||||
body: JSON.stringify({
|
||||
frames: generatedPanelsData,
|
||||
musicSelection: comicsVideoMusic.value,
|
||||
frameDuration: comicsVideoDuration.value
|
||||
frameDuration: comicsVideoDuration.value,
|
||||
narrationVoice: voice,
|
||||
titulo: comicsResultTitle?.textContent || 'História em Quadrinhos'
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user