s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
published_with_changes
Changes
Release-by-release changelog
Games
Browse Games
Discover Games
gamejams
Workshop
Playable
sports_esports
Games
Standalone games and gamemodes
Assets
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
apps
Everything
Every asset type in one list
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
Get s&box
Sign in with Steam
Api
Components
Voice
chevron_left
Components
class
Voice
Constructors
functions
Voice
Properties
data_object
Amplitude
data_object
Distance
data_object
Falloff
data_object
IsListening
data_object
IsRecording
data_object
LastPlayed
data_object
LaughterScore
data_object
LipSync
data_object
Loopback
data_object
Mode
data_object
MorphScale
data_object
MorphSmoothTime
data_object
PushToTalkInput
data_object
Renderer
data_object
TargetMixer
data_object
Visemes
data_object
VoiceMixer
data_object
Volume
data_object
WorldspacePlayback
Methods
lock
ExcludeFilter
lock
OnUpdate
lock
ShouldHearVoice
Voice
Configures how voice chat is recorded and played back, and lets you lip-sync a Sandbox.SkinnedModelRenderer.
class
Sandbox
.
account_tree
extends
Component
Sandbox.Engine
build
Constructors
1
Voice
(
)
data_object
Properties
19
Amplitude
float
Measure of audio loudness.
Distance
float
Falloff
Curve
IsListening
bool
Returns true if we want to listen to the mic.
IsRecording
bool
True while the local player is talking through this.
LastPlayed
RealTimeSince
How long has it been since this sound played?
LaughterScore
float
Laughter score for the current audio frame, between 0 and 1
LipSync
bool
Analyze the voice for viseme weights while it plays. Analysis only runs while a Sandbox.Voice.Renderer is set or Sandbox.Voice.Visemes / Sandbox.Voice.LaughterScore have been read recently.
Loopback
bool
Mode
ActivateMode
MorphScale
float
MorphSmoothTime
float
PushToTalkInput
string
Renderer
SkinnedModelRenderer
Optional renderer whose viseme morphs are driven by the voice.
TargetMixer
Mixer
Visemes
IReadOnlyList`1
A list of 15 lipsync viseme weights. Requires Sandbox.Voice.LipSync to be enabled, doesn't need a Sandbox.Voice.Renderer. Reading this keeps analysis running, so the first read after a pause may be empty.
VoiceMixer
MixerHandle
Which mixer to target. Must be a descendant of the Voice mixer. Defaults to the Voice mixer if not set or invalid.
Volume
float
WorldspacePlayback
bool
functions
Methods
3
ExcludeFilter
(
)
IEnumerable`1
Exclude these connection from hearing our voice.
OnUpdate
(
)
ShouldHearVoice
(
connection
)
bool
Whether we want to hear voice from a particular connection.
Inheritance
Component
Voice
‹
1
›
one year ago
#1
clearly
Member
Joined
Aug 2022
Posts
8
Score
1,050
bruh
7 months ago
#2
Kinj14
Member
Joined
Aug 2021
Posts
5
Score
635
The component is called “Voice Transmitter” in the editor's components
6 months ago
#3
Missing
Member
Joined
Jul 2022
Posts
79
Score
3,220
fork in kitchen
Kinj14 posted:
The component is called “Voice Transmitter” in the editor's components
‹
1
›
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.