s&box docs

public class Sandbox.Voice : Sandbox.Component

Records and transmits voice/microphone input to other players.

Constructors

Showing 1 constructors

Methods

Showing 3 methods

protected virtual System.Collections.Generic.IEnumerable`1<Sandbox.Connection> ExcludeFilter()

Exclude these connection from hearing our voice.

Implementations

protected virtual sealed void OnUpdate()

protected virtual bool ShouldHearVoice(Sandbox.Connection connection)

Whether we want to hear voice from a particular connection.

Implementations

Properties

Showing 19 properties

public float Sandbox.Voice.Amplitude { get; set; }

Measure of audio loudness.

public float Sandbox.Voice.Distance { get; set; }

public Sandbox.Curve Sandbox.Voice.Falloff { get; set; }

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.

public bool Sandbox.Voice.IsRecording { get; set; }

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

public bool Sandbox.Voice.Loopback { get; set; }

public float Sandbox.Voice.MorphScale { get; set; }

public float Sandbox.Voice.MorphSmoothTime { get; set; }

public string Sandbox.Voice.PushToTalkInput { get; set; }

public Sandbox.Audio.Mixer Sandbox.Voice.TargetMixer { 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.

public float Sandbox.Voice.Volume { get; set; }

public bool Sandbox.Voice.WorldspacePlayback { get; set; }

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.Voice

On this page