Skip to main content
Version: 2.x

Register AudioEvent Handler (Encoder)

Registers a callback for audio events. This is the primary way to detect when the user starts or stops talking ('IsSilent' changes). Use the 'Filter' to subscribe to specific events.

note

Any previously registered callback is replaced.

Inputs​

NameTypeDescription
TargetOdin EncoderThe Odin Encoder to call this function on.
FilterInteger (bitmask of Odin Audio Events)Bitmask filter for events. Default: 1.

Outputs​

NameTypeDescription
Return ValueBooleanTrue if registration was successful.