Class · inherits Instance
AudioRecorder
Records audio streams in-experience.
About AudioRecorder
This API is in development and is not available yet.
AudioRecorder records audio streams in-experience with a fixed time limit of
60 seconds. The results can be loaded into an AudioPlayer for
playback.
At this time, AudioDeviceInput cannot be recorded. The
GetUnrecordableInstancesAsync()
method can be used to check specifically which instances aren't recordable.
Properties 2
IsRecording
: booleanWhether theAudioRecorderis currently recording.Returns whether the
AudioRecorderis currently recording.TimeLength
: doubleReadOnlyNotReplicatedThe current length of the recording in seconds.Returns the current length of the recording in seconds.
Methods 9
CanRecordAsync
() → booleanYieldsReturns whether theAudioRecordercan currently record.Returns whether the
AudioRecordercan currently record. For instance, this will returnfalseif the current recording data has reached the recording time limit. To clear the recording, useClear().Clear
() → ()Clears out the recording from theAudioRecorder.GetConnectedWires
(pin: string) → List<Wire>Returns an array ofWiresthat are connected to the specified pin.Returns an array of
Wiresthat are connected to the specified pin.AudioRecorderhas one "Input" pin.GetInputPins
() → ArrayGets the list of pins thatWirecan use inWire.TargetNameto connect to this instance via itsWire.TargetInstanceproperty.Gets the list of pins that
Wirecan use inWire.TargetNameto connect to this instance via itsWire.TargetInstanceproperty.For
AudioRecorder, this isInputonly.GetOutputPins
() → ArrayGets the list of pins thatWirecan use inWire.SourceNameto connect to this instance via itsWire.SourceInstanceproperty.Gets the list of pins that
Wirecan use inWire.SourceNameto connect to this instance via itsWire.SourceInstanceproperty.For
AudioRecorder, there are none.GetTemporaryContent
() → ContentReturns aContentobject representing the current audio recording.Returns recorded content that can be played back with
AudioPlayer. The content retrieved from this method is only valid in the current session.GetUnrecordableInstancesAsync
() → List<Instance>YieldsReturns any instances which cannot be recorded.Traverses the audio graph, starting from this recorder's inputs, to find unrecordable instances. Currently,
AudioDeviceInputis not recordable.RecordAsync
() → ()YieldsStarts recording audio.Starts recording audio. If
CanRecordAsync()returnstrue, recording begins. If recording cannot begin, this method produces an error.Stop
() → ()Stops recording audio.
Events 1
WiringChanged
AudioRecorder.WiringChanged:Connect(function(connected, pin, wire, instance))Fires when another instance is connected to or disconnected from theAudioRecordervia aWire.Event that fires after a
Wirebecomes connected or disconnected, and thatWireis now or was previously connected to a pin on theAudioRecorderand to some other wirable instance.
AudioRecorder also has every member of Instance. Deprecated and Roblox-only members are hidden.
Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.