Skip to main content

Audio Record

The Audio Record control allows users to record audio directly within an application. It provides an intuitive interface with essential functionalities such as starting, pausing, canceling, and replaying recordings.

To ensure optimal compatibility, the control supports different encoding formats based on the platform. On mobile devices, recordings are stored in M4A format, while on web applications, recordings are saved in WAV format.

Audio Record
Audio Record

Content

Audio Record

Add-Ons

Add-onDescription
TooltipDisplays additional information or hints when users hover over the recorder component.
DescriptionAdds descriptive text above the component for better user context.
LabelAllows customization of text labels, including size, color, alignment, and more.
Audio QualityAllows to configure audio sample rate, number of channels and bit rate.

Android :
Sample Rate : 44.1 kHz (CD quality), or 16 kHz (low quality)
Bit Rate : 96 kbps (high), 64 kbps (medium), 32 kbps (low)
Channels : 1 (Mono) for smaller size, 2 (Stereo) for better quality

iOS :
1. Sample Rate : 8 kHz, 16 kHz, 24 kHz, 44.1 kHz, 48 kHz
2. No of Channel : 1 (mono), 2 (stereo)
3. Bit Rate :
Based on sample rate & no. of channel, bit rate range varies. Please refer the below table for supported bit rate range.

Bit Rate Supported Range

Sample RateChannelsBit Rate RangeTypical Use Case
8 kHz1 (Mono)8 to 24 kbpsTelephone-quality audio
8 kHz2 (Stereo)16 to 48 kbpsBasic stereo voice
16 kHz1 (Mono)16 to 48 kbpsVoIP, voice recordings
16 kHz2 (Stereo)24 to 64 kbpsHD voice calls
24 kHz1 (Mono)16 to 64 kbpsHigh-quality voice
24 kHz2 (Stereo)36 to 128 kbpsFM radio-quality audio
44.1 / 48 kHz1 (Mono)32 to 256 kbpsProfessional mono recording
44.1 / 48 kHz2 (Stereo)64 to 320 kbpsMusic streaming quality
note

For example: Suppose we choose Sample Rate as 8 kHz and No. of Channel as 1 then the supported Bit Rate range is from 8 kbps to 24 kbps. Bit Rate above or below the mentioned range does not work.


Audio Record

Interaction

Events

We can trigger actions using the Audio Record control's trigger events during recording actions.

TriggerDescription
on_recording_startIt triggers action when the recording starts.
on_recording_completeIt triggers action when the recording is completed.

Appearance

  • Visibility: Toggle control visibility.

  • Record Style: Customize the text, background, size, color, screen background, and alignment of the control.

  • Permission Error Style: Modify how the control appears when a recording permission error occurs.

Advanced Settings

  • External CSS: Add custom styles to the Audio Record control.
  • Trigger Dependents: Automatically invoke linked controls or workflows.
  • Caching: Enable caching to store frequently used inputs.

Control Output

OutputDescription
{{audiorecord}}Captures the recorded audio file.
tip

To utilize the output of the Audio Record control, you can upload the file using AWS or DronaHQ Services. This will generate a link to the recorded audio, which can be used in subsequent actions.