Class VadEffect
VoiceActivity effect for OdinNative.Wrapper.MediaPipeline
Assembly: cs.temp.dll.dll
Inheritance: System.Object
-> OdinNative.Wrapper.Media.PiplineEffect
Implements:
OdinNative.Wrapper.Media.IPiplineEffect
Properties
VoiceActivityEnabled
Idicates whether the vad setting in OdinNative.Core.Imports.NativeBindings.OdinSensitivityConfig is enabled
VoiceActivityAttackThreshold
Idicates the vad attack probability setting in OdinNative.Core.Imports.NativeBindings.OdinSensitivityConfig
VoiceActivityReleaseThreshold
Idicates the vad release probability setting in OdinNative.Core.Imports.NativeBindings.OdinSensitivityConfig
VolumeGateEnabled
Idicates whether the gate setting in OdinNative.Core.Imports.NativeBindings.OdinSensitivityConfig is enabled
VolumeGateAttackThreshold
Idicates the gate attack loudness setting in OdinNative.Core.Imports.NativeBindings.OdinSensitivityConfig
VolumeGateReleaseThreshold
Idicates the gate release loudness setting in OdinNative.Core.Imports.NativeBindings.OdinSensitivityConfig
Fields
Config
Intern voice activity configuration
Methods
UpdateEffectConfig()
Set voice activity configuration
Returns
System.Boolean
: true on success or false### SetVadConfig(OdinVadConfig)
Set managed voice activity configuration
Returns
Odin.OdinError
: updated config
Parameters
Type | Name | Description |
---|---|---|
Odin.OdinVadConfig | config | new config |
GetVadConfig()
Get native voice activity configuration
Returns
Odin.OdinVadConfig
: updated config### SetApmConfig(OdinApmConfig)
Not supported
Returns
Odin.OdinError
Parameters
Type | Name |
---|---|
Odin.OdinApmConfig | config |
Exceptions
OdinNative.Wrapper.OdinWrapperException
SetApmStreamDelay(ulong)
Not supported
Returns
Odin.OdinError
Parameters
Type | Name |
---|---|
System.UInt64 | ms |
Exceptions
OdinNative.Wrapper.OdinWrapperException
UpdateApmPlayback(float[])
Not supported
Returns
Odin.OdinError
Parameters
Type | Name |
---|---|
System.Single[] | audio |
Exceptions
OdinNative.Wrapper.OdinWrapperException
Create(MediaPipeline, out VadEffect)
Insert a vad effect in the specified pipline
Returns
System.Boolean
: Instance of OdinNative.Wrapper.Media.VadEffect
Parameters
Type | Name | Description |
---|---|---|
OdinNative.Wrapper.MediaPipeline | pipeline | where to create a vad effect |
OdinNative.Wrapper.Media.VadEffect | vad |
Create(MediaPipeline, OdinVadConfig)
Insert a vad effect in the specified pipline and sets the vad config
Returns
OdinNative.Wrapper.Media.VadEffect: Instance of OdinNative.Wrapper.Media.VadEffect
Parameters
Type | Name | Description |
---|---|---|
OdinNative.Wrapper.MediaPipeline | pipeline | where to create a vad effect |
Odin.OdinVadConfig | config | configuration settings for vad |