Stop recording audio

Stops an ongoing audio recording started with the **Start recording audio** flow function.

Stops an ongoing audio recording started with the Start recording audio flow function.

The recorded audio file is stored in a temporary directory with an autogenerated unique identifier for its filename.

If you need to save the audio file in a persistent way, use the Move file flow function to move it to the user files directory.

Input arguments

No input arguments.

Output arguments

Number of outputs: 2

Label

Key

Type

Description

Audio file

audioFile

Object

Object representing the captured audio file.

  • Local path

audioFile.path

String

Absolute local filesystem path representing the file location on the device, including the filename and extension. On web, this is created via the [`createObjectURL`](https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL) method.

  • MIME type

audioFile.mimeType

String

MIME type of the file, if it could be determined.

  • Name

audioFile.name

String

Name of the file in the local filesystem, if applicable. Note that the filename and extension are included in the **Local path** property already.

  • Size

audioFile.size

Number

Size of the file, in bytes.

  • Created at

audioFile.createdAt

String

Creation datetime of the file, if it can be determined.

  • Modified at

audioFile.modifiedAt

String

Datetime when the file was last modified, if it can be determined.

Events

No events.

Errors

Label

Code

Description

No ongoing recording

noOngoingRecording

Thrown when there's no ongoing audio recording to stop.

Unknown error

unknown

Thrown if an unknown error occurred while recording audio.