Skip to content
Merged
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 25 additions & 12 deletions content/en-us/reference/engine/classes/VoiceChatService.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ type: class
category:
memory_category: Instances
summary: |
**VoiceChatService** holds voice functions not tied to other instances.
**VoiceChatService** is responsible for voice chat's high-level functionality.
description: |
**VoiceChatService** holds voice functions not tied to other instances.
**VoiceChatService** is responsible for voice chat's high-level functionality.
This mostly consists of configuration options, and functions that are not specifically-controlled by more-specific instances.
code_samples:
inherits:
- Instance
Expand All @@ -16,15 +17,12 @@ deprecation_message: ''
properties:
- name: VoiceChatService.EnableDefaultVoice
summary: |
Indicates whether or not the place uses the default voice manager.
Controls whether each voice-eligible player can be heard as though they were speaking through their character.
description: |
Indicates whether or not the place uses the default voice manager. This is
enabled by default.
When enabled, each voice-eligible player can be heard as though they were speaking through their character.
The behavior of the voice setup depends on `Class.VoiceChatService.UseAudioApi|UseAudioApi`.

When enabled, the default voice manager adds all voice-eligible users to
voice chat as they join the place. When disabled, the place doesn't use
the default voice manager, and users are not added to voice chat when they
join the place.
Disabling the default voice setup effectively disables voice chat altogether.
code_samples: []
type: bool
tags: []
Expand All @@ -40,8 +38,23 @@ properties:
capabilities: []
writeCapabilities: []
- name: VoiceChatService.UseAudioApi
summary: ''
description: ''
summary: |
Controls whether voice chat is represented and controlled by an `Class.AudioDeviceInput` object.
description: |
If `Enum.AudioApiRollout|Enabled`, the voice chat setup is represented and controlled by
an `Class.AudioDeviceInput` object. More specifically:

- An `Class.AudioDeviceInput` will be created and parented to each voice-eligible `Class.Player`.
- An `Class.AudioEmitter` will be created and parented to each voice-eligible player's `Class.Player.Character`.
- An `Class.AudioListener` will be created and parented to `Class.Workspace.CurrentCamera`.

If `Enum.AudioApiRollout|Disabled`, the voice chat setup is done through an internal-only system.

Currently, setting this to `Enum.AudioApiRollout|Automatic` has the same meaning as `Enum.AudioApiRollout|Disabled`.
However, in the future, `Enum.AudioApiRollout|Automatic` will become `Enum.AudioApiRollout|Enabled`, so that new
experiences can achieve greater customization over voice.

Voice chat can be enabled or disabled in its entirety via `Class.VoiceChatService.EnableDefaultVoice|EnableDefaultVoice`.
code_samples: []
type: AudioApiRollout
tags: []
Expand Down Expand Up @@ -86,7 +99,7 @@ methods:
type: int64
default:
summary: |
The `UserId` to check.
The `Class.Player.UserId` to check.
returns:
- type: bool
summary: |
Expand Down
Loading