API ReferenceSandbox
public class Sandbox.Voice : Sandbox.Component
Records and transmits voice/microphone input to other players.
Constructors
Showing 1 constructors
public Voice()
No results match this filter.
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
No results match this filter.
Properties
Showing 19 properties
public float Sandbox.Voice.Amplitude { get; set; }
Measure of audio loudness.
public float Sandbox.Voice.Distance { 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 Sandbox.Voice.ActivateMode Sandbox.Voice.Mode { 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.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.
public Sandbox.Audio.MixerHandle Sandbox.Voice.VoiceMixer { get; set; }
public float Sandbox.Voice.Volume { get; set; }
public bool Sandbox.Voice.WorldspacePlayback { get; set; }
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.Voice |