AudioAnalyzer¶
Takes measurements from audio streams that are connected to it via one or more Wires.
Not implemented yet
This class exists in the current Roblox API but is not implemented in Nova yet. Scripts that reference it will fail at runtime.
Description¶
AudioAnalyzer takes measurements from audio streams that are wired to it through Wire. It provides a single Input pin but does not produce any output streams. Note that all audio processing is disabled on the server in order to conserve resources; Properties and methods of AudioAnalyzer return empty or zero results when used from server scripts.
Inheritance¶
Object → Instance → AudioAnalyzer
Properties¶
| Member | Signature | Summary |
|---|---|---|
PeakLevel |
PeakLevel: float |
The loudest volume observed during the last audio buffer. |
RmsLevel |
RmsLevel: float |
The root-mean-square average volume observed during the last audio buffer. |
SpectrumEnabled |
SpectrumEnabled: bool |
Enables usage of GetSpectrum. |
WindowSize |
WindowSize: AudioWindowSize |
Controls the resolution and timeliness of GetSpectrum. |
Methods¶
| Member | Signature | Summary |
|---|---|---|
GetConnectedWires |
AudioAnalyzer:GetConnectedWires(pin: string): Instances |
Returns an array of Wires that are connected to the specified pin. |
GetInputPins |
AudioAnalyzer:GetInputPins(): Array |
Gets the list of pins that Wire can use in Wire.TargetName to connect to this instance via its [Wire.TargetInstance](Wire.md#targetinsta… |
GetOutputPins |
AudioAnalyzer:GetOutputPins(): Array |
Gets the list of pins that Wire can use in Wire.SourceName to connect to this instance via its [Wire.SourceInstance](Wire.md#sourceinsta… |
GetSpectrum |
AudioAnalyzer:GetSpectrum(): Array |
Returns the frequency spectrum of the last audio buffer. |
Events¶
| Member | Signature | Summary |
|---|---|---|
WiringChanged |
WiringChanged(connected: bool, pin: string, wire: Wire, instance: Instance) |
Fires when another instance is connected to or disconnected from the AudioAnalyzer via a Wire. |
Roblox reference: AudioAnalyzer
Generated from Nova's API dump and Roblox creator-docs. Nova-only members come from the engine's reflection metadata.