Voiceclass
Records and transmits voice/microphone input to other players.
Constructors1
Showing 1 constructors
public Voice()
No results match this filter.
Methods3
Showing 3 methods
protected virtual System.Collections.Generic.IEnumerable`1<Sandbox.Connection> ExcludeFilter()
Exclude these connection from hearing our voice.
protected virtual sealed void OnUpdate()
void—protected virtual bool ShouldHearVoice(Sandbox.Connection connection)
Whether we want to hear voice from a particular connection.
| Parameter | Type | Description |
|---|---|---|
| connection | Connection | — |
bool—No results match this filter.
Properties19
Showing 19 properties
public float Sandbox.Voice.Amplitude { get; set; }
Measure of audio loudness.
float—public float Sandbox.Voice.Distance { get; set; }
float—public bool Sandbox.Voice.IsListening { get; set; }
Returns true if the mic is listening. Even if it's listening, it might not be playing - because it will only record and transmit if it can hear sound.
bool—public bool Sandbox.Voice.IsRecording { get; set; }
bool—public Sandbox.RealTimeSince Sandbox.Voice.LastPlayed { get; set; }
How long has it been since this sound played?
public float Sandbox.Voice.LaughterScore { get; set; }
Laughter score for the current audio frame, between 0 and 1
float—public bool Sandbox.Voice.Loopback { get; set; }
bool—public Sandbox.Voice.ActivateMode Sandbox.Voice.Mode { get; set; }
public float Sandbox.Voice.MorphScale { get; set; }
float—public float Sandbox.Voice.MorphSmoothTime { get; set; }
float—public string Sandbox.Voice.PushToTalkInput { get; set; }
string—public Sandbox.SkinnedModelRenderer Sandbox.Voice.Renderer { get; set; }
public System.Collections.Generic.IReadOnlyList`1<float> Sandbox.Voice.Visemes { get; set; }
A list of 15 lipsync viseme weights. Requires `Sandbox.Voice.LipSync` to be enabled.
IReadOnlyList<float>—public Sandbox.Audio.MixerHandle Sandbox.Voice.VoiceMixer { get; set; }
Which mixer to target. Must be a descendant of the Voice mixer. Defaults to the Voice mixer if not set or invalid.
public float Sandbox.Voice.Volume { get; set; }
float—public bool Sandbox.Voice.WorldspacePlayback { get; set; }
bool—No results match this filter.