3 min read

Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.

ListenerLocation

Enum used with SoundService.DefaultListenerLocation to determine where an AudioListener is placed by default.

Items

NameValueDescription
Default0Behavior depends on the value of VoiceChatService.EnableDefaultVoice and VoiceChatService.UseAudioApi. When using the default voice setup with the audio API, this behaves similarly to Camera.
None1No AudioListener will be created by default, but they can be created separately by scripts.
Character2All of the following, resulting in the world being heard from the position of your character while matching the orientation of your camera. - An Attachment will be created and parented to the PrimaryPart of the local player's Character model. - An AudioListener will be created and parented to the Attachment. - An AudioDeviceOutput will be created and parented to SoundService. - A Wire will be created and parented to the previously-created AudioListener. The wire's SourceInstance will be set to the previously-created AudioListener and its TargetInstance will be set to the previously-created AudioDeviceOutput. - The previously-created Attachment will be updated once per frame to face the same direction as Workspace.CurrentCamera.
Camera3All of the following, resulting in the world being heard from the perspective (postition and orientation) of the camera. - An AudioListener will be created and parented to Workspace.CurrentCamera. - An AudioDeviceOutput will be created and parented to SoundService. - A Wire will be created and parented to the previously-created AudioListener. The wire's SourceInstance will be set to the previously-created AudioListener and its TargetInstance will be set to the previously-created AudioDeviceOutput.

Default

Behavior depends on the value of VoiceChatService.EnableDefaultVoice and VoiceChatService.UseAudioApi. When using the default voice setup with the audio API, this behaves similarly to Camera.

FieldValue
value0

None

No AudioListener will be created by default, but they can be created separately by scripts.

FieldValue
value1

Character

All of the following, resulting in the world being heard from the position of your character while matching the orientation of your camera.

FieldValue
value2

Camera

All of the following, resulting in the world being heard from the perspective (postition and orientation) of the camera.

FieldValue
value3