Skip to content

Class · inherits Instance

AudioRecorder

Official docs ↗

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 the AudioRecorder is currently recording.

    Returns whether the AudioRecorder is 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 the AudioRecorder can currently record.

    Returns whether the AudioRecorder can currently record. For instance, this will return false if the current recording data has reached the recording time limit. To clear the recording, use Clear().

  • Clear() → ()Clears out the recording from the AudioRecorder.
  • GetConnectedWires(pin: string) → List<Wire>Returns an array of Wires that are connected to the specified pin.

    Returns an array of Wires that are connected to the specified pin. AudioRecorder has one "Input" pin.

  • GetInputPins() → ArrayGets the list of pins that Wire can use in Wire.TargetName to connect to this instance via its Wire.TargetInstance property.

    Gets the list of pins that Wire can use in Wire.TargetName to connect to this instance via its Wire.TargetInstance property.

    For AudioRecorder, this is Input only.

  • GetOutputPins() → ArrayGets the list of pins that Wire can use in Wire.SourceName to connect to this instance via its Wire.SourceInstance property.

    Gets the list of pins that Wire can use in Wire.SourceName to connect to this instance via its Wire.SourceInstance property.

    For AudioRecorder, there are none.

  • GetTemporaryContent() → ContentReturns a Content object 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, AudioDeviceInput is not recordable.

  • RecordAsync() → ()YieldsStarts recording audio.

    Starts recording audio. If CanRecordAsync() returns true, recording begins. If recording cannot begin, this method produces an error.

  • Stop() → ()Stops recording audio.

Events 1

  • WiringChangedAudioRecorder.WiringChanged:Connect(function(connected, pin, wire, instance))Fires when another instance is connected to or disconnected from the AudioRecorder via a Wire.

    Event that fires after a Wire becomes connected or disconnected, and that Wire is now or was previously connected to a pin on the AudioRecorder and 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.