AudioRecorder
Records audio streams in-experience.
Memory category | Internal |
---|
Member index 12
Description
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.
History 13
- 671 Add WiringChanged
- 671 Add Stop
- 671 Add RecordAsync
- 671 Add GetUnrecordableInstancesAsync
- 671 Add GetTemporaryContent
- 671 Add GetOutputPins
- 671 Add GetInputPins
- 671 Add GetConnectedWires
- 671 Add Clear
- 671 Add CanRecordAsync
- 671 Add TimeLength
- 671 Add IsRecording
- 671 Add AudioRecorder
Members 12
CanRecordAsync
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
bool |
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().
Thread safety | Unsafe |
---|
History 1
- 671 Add CanRecordAsync
Clear
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
null |
Clears out the recording from the AudioRecorder
.
Thread safety | Unsafe |
---|
GetConnectedWires
Parameters (1) | ||
---|---|---|
pin | string | |
Returns (1) | ||
Instances |
Thread safety | Unsafe |
---|
History 1
- 671 Add GetConnectedWires
GetInputPins
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
Array |
Thread safety | Unsafe |
---|
History 1
- 671 Add GetInputPins
GetOutputPins
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
Array |
Thread safety | Unsafe |
---|
History 1
- 671 Add GetOutputPins
GetTemporaryContent
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
Content |
Returns recorded content that can be played back with AudioPlayer. The content retrieved from this method is only valid in the current session.
Thread safety | Unsafe |
---|
History 1
GetUnrecordableInstancesAsync
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
Instances |
Traverses the audio graph, starting from this recorder's inputs, to find unrecordable instances. Currently, AudioDeviceInput is not recordable.
Thread safety | Unsafe |
---|
History 1
IsRecording
Type | Default | |
---|---|---|
bool | false |
Returns whether the AudioRecorder
is currently recording.
Write security | RobloxSecurity |
---|---|
Thread safety | ReadSafe |
Category | State |
Loaded/Saved | true |
History 1
- 671 Add IsRecording
RecordAsync
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
null |
If CanRecordAsync() returns true
, recording begins.
If recording cannot begin, this method produces an error.
Thread safety | Unsafe |
---|
History 1
- 671 Add RecordAsync
Stop
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
null |
Stops recording.
Thread safety | Unsafe |
---|
TimeLength
Type | Default | |
---|---|---|
double | 0 |
Returns the current length of the recording in seconds.
Thread safety | ReadSafe |
---|---|
Category | Data |
Loaded/Saved | false/true |
History 1
- 671 Add TimeLength
WiringChanged
Parameters (4) | |
---|---|
connected | bool |
pin | string |
wire | Wire |
instance | Instance |
Thread safety | Unsafe |
---|
History 1
- 671 Add WiringChanged