feat: adicionada opção para calcular métricas de voz automaticamen
- adicionada opção para calcular métricas de voz automaticamente após a transcrição - reorganizada a etapa opcional para revisar falantes e métricas processados automaticamente Resumo: - 2 arquivos alterados - 0 novos - 2 modificados - 0 removidos 2 files changed, 24 insertions(+), 8 deletions(-) Arquivos: - code/cep-plugin/index.html - code/cep-plugin/main.js
This commit is contained in:
+15
-4
@@ -1786,15 +1786,25 @@ function silenceTranscribe() {
|
||||
}
|
||||
taskEnd(true, "Transcrição pronta: " + resumo);
|
||||
unlockAfterTranscript();
|
||||
if (document.getElementById("silenceDiarize").checked) {
|
||||
silenceDiarizeSpeakers();
|
||||
}
|
||||
silenceRunAutomaticEnrichments();
|
||||
},
|
||||
hfSpawnOptions()
|
||||
);
|
||||
}
|
||||
|
||||
function silenceDiarizeSpeakers() {
|
||||
function silenceRunAutomaticEnrichments() {
|
||||
var shouldDiarize = document.getElementById("silenceDiarize").checked && !!loadHfToken();
|
||||
var shouldMeasureVoice = document.getElementById("silenceVoiceFeaturesAuto").checked;
|
||||
if (shouldDiarize) {
|
||||
silenceDiarizeSpeakers(function () {
|
||||
if (shouldMeasureVoice) silenceComputeVoiceFeatures();
|
||||
});
|
||||
} else if (shouldMeasureVoice) {
|
||||
silenceComputeVoiceFeatures();
|
||||
}
|
||||
}
|
||||
|
||||
function silenceDiarizeSpeakers(onFinished) {
|
||||
if (!silenceState.transcriptPath) return;
|
||||
if (!silenceState.mediaPath) {
|
||||
silenceLog("Detecte o clipe/sequência primeiro (passo 1) para saber qual vídeo diarizar.", "err");
|
||||
@@ -1843,6 +1853,7 @@ function silenceDiarizeSpeakers() {
|
||||
setStep(3, "done", "Enriquecido");
|
||||
taskEnd(true, msg);
|
||||
syncTranscriptToCache();
|
||||
if (typeof onFinished === "function") onFinished();
|
||||
},
|
||||
hfSpawnOptions()
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user