Skip to content

PlayerAudioOverride

Guribo edited this page Jul 11, 2026 · 3 revisions

PlayerAudioOverride

Packages/tlp.udonvoiceutils/Runtime/Core/PlayerAudio/PlayerAudioOverride.cs

The customizable override that modifies audio settings for a group of players.

Overview

The UdonSharpBehaviour PlayerAudioOverride provides custom:

  • a priority which determines whether a player is affected when added
  • voice audio settings (distance near/far, gain, volumetric radius, lowpass)
  • avatar audio settings (near/far radius, gain, spatialize, custom curves)
  • occlusion settings (environment + player occlusion, customizable layer mask)
  • directionality settings (listener + player directionality)
  • reverb settings (optional AudioReverbFilter)
  • private channel IDs and listening settings
  • can be enabled/disabled to temporarily add/remove its effect from all affected players
    • players can be added/removed from the component itself even when it is disabled, they will be affected as soon as the component is enabled again

Key Settings

General

Field Default Description
Priority 0 Higher priority overrides take precedence. Equal priority = last added wins.

References

Field Default Description
PlayerSet Required. List of players affected by this override
OptionalPlayerBlackList null Players excluded from this override

Voice

Field Default Description
VoiceDistanceNear 0 Volume stays max when closer than this
VoiceDistanceFar 25 Beyond this distance, player can't be heard
VoiceGain 15 Volume increase in dB
VoiceVolumetricRadius 0 Range where voice is not spatialized
EnableVoiceLowpass true Muffle voice near max range

Avatar

Field Default Description
TargetAvatarNearRadius 0 Distance where avatar audio starts falling off
TargetAvatarFarRadius 40 Max distance avatar audio can be heard
TargetAvatarGain 10 Volume increase in dB
TargetAvatarVolumetricRadius 0 Range where avatar audio is not spatialized
ForceAvatarSpatialAudio false Force all avatar sources to spatialize
AllowAvatarCustomAudioCurves true Use custom audio curves on avatar sources
HeightToVoiceCorrelation Constant(0, 25, 1) Maps avatar eye height (X) to voice range multiplier (Y)

Occlusion

Field Default Description
OcclusionMask Environment + UI layers Layers that cause occlusion
OcclusionFactor 0 0 = off, 1 = fully occluded at current distance
PlayerOcclusionFactor 0 Occlusion when blocked by another player

Directionality

Field Default Description
ListenerDirectionality 0 1 = full reduction when listener faces away
PlayerDirectionality 0 1 = full reduction when emitter faces away

Reverb

Field Default Description
OptionalReverb null Optional AudioReverbFilter for reverb override

Privacy Channels

Field Default Description
PrivacyChannelId -1 Channel ID. -1 = no privacy (all affected players audible to all)
AdditionalPrivacyChannelIds null Extra channel IDs this override listens to
MuteOutsiders true Affected players can't hear non-affected players
DisallowListeningToChannel false Prevents local player from hearing others in the same channel

Events

Event When
LocalPlayerAdded Local player added to this override (may not be active if higher-priority override exists)
LocalPlayerRemoved Local player removed from this override

Related

Clone this wiki locally