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
| Name | Value | Description |
|---|---|---|
| Default | 0 | 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. |
| None | 1 | No AudioListener will be created by default, but they can be created separately by scripts. |
| Character | 2 | All 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. |
| Camera | 3 | All 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.
| Field | Value |
|---|---|
| value | 0 |
None
No AudioListener will be created by default, but they can be created separately by scripts.
| Field | Value |
|---|---|
| value | 1 |
Character
All of the following, resulting in the world being heard from the position of your character while matching the orientation of your camera.
An
Attachmentwill be created and parented to thePrimaryPartof the local player'sCharactermodel.An
AudioListenerwill be created and parented to theAttachment.An
AudioDeviceOutputwill be created and parented toSoundService.A
Wirewill be created and parented to the previously-createdAudioListener. The wire'sSourceInstancewill be set to the previously-createdAudioListenerand itsTargetInstancewill be set to the previously-createdAudioDeviceOutput.The previously-created
Attachmentwill be updated once per frame to face the same direction asWorkspace.CurrentCamera.
| Field | Value |
|---|---|
| value | 2 |
Camera
All of the following, resulting in the world being heard from the perspective (postition and orientation) of the camera.
- An
AudioListenerwill be created and parented toWorkspace.CurrentCamera. - An
AudioDeviceOutputwill be created and parented toSoundService. - A
Wirewill be created and parented to the previously-createdAudioListener. The wire'sSourceInstancewill be set to the previously-createdAudioListenerand itsTargetInstancewill be set to the previously-createdAudioDeviceOutput.
| Field | Value |
|---|---|
| value | 3 |