Skip to main content
Version: 2.x

Class OdinVadComponent

VoiceActivity component for OdinNative.Wrapper.Media.VadEffect

This class provides configuration for the native implemented voice detection. Supports speech recognition and/or a volume threshold.

Assembly: cs.temp.dll.dll
Declaration
public class OdinVadComponent : MonoBehaviour, IOdinEffect

Implements:
OdinNative.Unity.Audio.IOdinEffect

Properties

Media

Declaration
public IMedia Media { get; set; }

Effect

Declaration
public VadEffect Effect { get; }

IsCreated

Declaration
public bool IsCreated { get; }

Fields

VoiceActivityEnabled

Declaration
public bool VoiceActivityEnabled

VoiceActivityAttackThreshold

Idicates the vad attack probability setting in OdinNative.Core.Imports.NativeBindings.OdinSensitivityConfig

Declaration
public float VoiceActivityAttackThreshold

VoiceActivityReleaseThreshold

Idicates the vad release probability setting in OdinNative.Core.Imports.NativeBindings.OdinSensitivityConfig

Declaration
public float VoiceActivityReleaseThreshold

VolumeGateEnabled

Declaration
public bool VolumeGateEnabled

VolumeGateAttackThreshold

Idicates the gate attack loudness setting in OdinNative.Core.Imports.NativeBindings.OdinSensitivityConfig

Declaration
public float VolumeGateAttackThreshold

VolumeGateReleaseThreshold

Idicates the gate release loudness setting in OdinNative.Core.Imports.NativeBindings.OdinSensitivityConfig

Declaration
public float VolumeGateReleaseThreshold

Methods

UpdateConfig()

Declaration
public void UpdateConfig()

UpdateConfig(MediaPipeline)

Declaration
public void UpdateConfig(MediaPipeline pipeline)
Parameters
TypeName
Odin.MediaPipelinepipeline

ResetEffect()

Declaration
public void ResetEffect()

ResetEffect(MediaPipeline)

Declaration
public void ResetEffect(MediaPipeline pipeline)
Parameters
TypeName
Odin.MediaPipelinepipeline

GetMedia<T>()

Declaration
public T GetMedia<T>() where T : IMedia
Returns

<T>

Type Parameters
  • T

GetEffect()

Declaration
public PiplineEffect GetEffect()
Returns

Odin.PiplineEffect

Implements