Browse Source

Fixed VAD Module

master
Tillman Staffen 1 week ago
parent
commit
bc1abd09aa
  1. 1
      Unreal/Plugins/AvatarCore_STT/Source/AvatarCore_STT/Private/Preprocessor/STTPreprocessorVAD.cpp

1
Unreal/Plugins/AvatarCore_STT/Source/AvatarCore_STT/Private/Preprocessor/STTPreprocessorVAD.cpp

@ -63,6 +63,7 @@ void USTTPreprocessorVAD::OnChunkReceived(TArray<int16> PCMData, FAudioInformati
const float Dbfs = 20.0f * FMath::LogX(10.0f, Rms);
//UE_LOG(LogTemp, Warning, TEXT("Dbfs %f"), Dbfs);
isLoadEnough = (Dbfs < static_cast<float>(STTBaseSettings.VADSettings.VAD_MinSpeechAmplitude));
isLoadEnough = (Dbfs > static_cast<float>(STTBaseSettings.VADSettings.VAD_MinSpeechAmplitude));
}
if(currentVADState != lastVADState || !isLoadEnough)

Loading…
Cancel
Save