Start recording audio

Start recording audio.

Start recording audio. Only a single recording can be ongoing at a time. If this flow function is called twice in a row, the second execution will throw an error.

To stop the audio recording, use the Stop recording audio flow function, which will output a reference to the recorded audio file in a temporary folder.

If you need to save the audio file in a persistent way, use the Move file flow function (after the recording has been stopped) to move it to the user files directory.

Input arguments

Label

Key

Type

Required?

Default

Description

Sample rate

sampleRate

Number(integer)

No

44100

Sample rate for the recording, in kHz.

Channels

channels

Number

No

2

Record in one channel (mono) or two (stereo).

Bits per sample

bitsPerSample

Number

No

16

How many bits per sample should be stored?

Output arguments

Number of outputs: 2

Label

Key

Type

Description

Recording started at

recordingStartedAt

String(date-time)

ISO 8601 format timestamp of when the audio recording was started.

Events

No events.

Errors

Label

Code

Description

Unknown error

unknown

Thrown if an unknown error occurred while recording audio.