forked from cgvr/DeltaVR
NPC doesnt process player speech when its too soon after last processing
This commit is contained in:
@@ -112,17 +112,14 @@ public class FMODWhisperBridge : MonoBehaviour
|
||||
_stream.OnResultUpdated += (txt) =>
|
||||
{
|
||||
//OnWhisperResultProcessed?.Invoke(txt);
|
||||
//UnityEngine.Debug.Log($"[Whisper] result updated: {txt}");
|
||||
};
|
||||
_stream.OnSegmentUpdated += (seg) =>
|
||||
{
|
||||
OnWhisperSegmentUpdated?.Invoke(seg.Result);
|
||||
//UnityEngine.Debug.Log($"[Whisper] Seg updated: {seg.Result}");
|
||||
};
|
||||
_stream.OnSegmentFinished += (seg) =>
|
||||
{
|
||||
OnWhisperSegmentFinished?.Invoke(seg.Result);
|
||||
//UnityEngine.Debug.Log($"[Whisper] Seg finished: {seg.Result}");
|
||||
};
|
||||
|
||||
// If you want Whisper to respect VAD, enable in manager or set useVad (manager controls stream params).
|
||||
|
||||
Reference in New Issue
Block a user