Skip to content

Commit 8e162f7

Browse files
authored
Merge branch 'main' into AudioLimiter-description
2 parents 266e595 + 96268bb commit 8e162f7

File tree

2 files changed

+34
-17
lines changed

2 files changed

+34
-17
lines changed

content/en-us/reference/engine/classes/VoiceChatService.yaml

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ type: class
33
category:
44
memory_category: Instances
55
summary: |
6-
**VoiceChatService** holds voice functions not tied to other instances.
6+
**VoiceChatService** is responsible for voice chat's high-level functionality.
77
description: |
8-
**VoiceChatService** holds voice functions not tied to other instances.
8+
**VoiceChatService** is responsible for voice chat's high-level functionality.
9+
This mostly consists of configuration options, and functions that are not specifically-controlled by more-specific instances.
910
code_samples:
1011
inherits:
1112
- Instance
@@ -16,15 +17,13 @@ deprecation_message: ''
1617
properties:
1718
- name: VoiceChatService.EnableDefaultVoice
1819
summary: |
19-
Indicates whether or not the place uses the default voice manager.
20+
Controls whether each voice-eligible player can be heard as though they were speaking through their character.
2021
description: |
21-
Indicates whether or not the place uses the default voice manager. This is
22-
enabled by default.
22+
When enabled, each voice-eligible player can be heard as though they were speaking through their character.
23+
The implementation details of the voice setup depend on `Class.VoiceChatService.UseAudioApi|UseAudioApi`.
2324
24-
When enabled, the default voice manager adds all voice-eligible users to
25-
voice chat as they join the place. When disabled, the place doesn't use
26-
the default voice manager, and users are not added to voice chat when they
27-
join the place.
25+
When `Class.VoiceChatService.UseAudioApi|UseAudioApi` is `Enum.AudioApiRollout|Disabled`,
26+
disabling the default voice setup effectively disables voice chat altogether.
2827
code_samples: []
2928
type: bool
3029
tags: []
@@ -40,8 +39,21 @@ properties:
4039
capabilities: []
4140
writeCapabilities: []
4241
- name: VoiceChatService.UseAudioApi
43-
summary: ''
44-
description: ''
42+
summary: |
43+
Controls whether voice chat is represented and controlled by `Class.AudioDeviceInput` objects.
44+
description: |
45+
If `Enum.AudioApiRollout|Enabled`, the voice chat setup is represented and controlled by
46+
`Class.AudioDeviceInput` objects. More specifically:
47+
48+
- An `Class.AudioDeviceInput` will be created and parented to each voice-eligible `Class.Player`.
49+
- An `Class.AudioEmitter` will be created and parented to each voice-eligible player's `Class.Player.Character`.
50+
- An `Class.AudioListener` will be created and parented to `Class.Workspace.CurrentCamera`.
51+
52+
If `Enum.AudioApiRollout|Disabled`, the voice chat setup is done through an internal-only system.
53+
54+
Currently, setting this to `Enum.AudioApiRollout|Automatic` has the same meaning as `Enum.AudioApiRollout|Disabled`.
55+
However, in the future, `Enum.AudioApiRollout|Automatic` will become `Enum.AudioApiRollout|Enabled`, so that new
56+
experiences can achieve greater customization over voice.
4557
code_samples: []
4658
type: AudioApiRollout
4759
tags: []
@@ -86,7 +98,7 @@ methods:
8698
type: int64
8799
default:
88100
summary: |
89-
The `UserId` to check.
101+
The `Class.Player.UserId` to check.
90102
returns:
91103
- type: bool
92104
summary: |
Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,28 @@
11
name: AudioApiRollout
22
type: enum
3-
summary: ''
4-
description: ''
3+
summary: |
4+
Used to determine whether voice chat is represented and controlled by `Class.AudioDeviceInput` objects.
5+
description: |
6+
Used to determine whether voice chat is represented and controlled by `Class.AudioDeviceInput` objects.
57
code_samples: []
68
tags: []
79
deprecation_message: ''
810
items:
911
- name: Disabled
10-
summary: ''
12+
summary: |
13+
Voice chat will use an internal voice chat implementation that is automatic and hidden.
1114
value: 0
1215
tags: []
1316
deprecation_message: ''
1417
- name: Automatic
15-
summary: ''
18+
summary: |
19+
Currently means the same thing as `Disabled`, but will be updated to mean `Enabled` in the future.
1620
value: 1
1721
tags: []
1822
deprecation_message: ''
1923
- name: Enabled
20-
summary: ''
24+
summary: |
25+
Voice chat can be customized or controlled via `Class.AudioDeviceInput|AudioDeviceInputs`.
2126
value: 2
2227
tags: []
2328
deprecation_message: ''

0 commit comments

Comments
 (0)