Skip to main content

The Microphone component for Retool Mobile

A button to record audio.

Recordings are Base64-encoded in WebM format, and audio playback displays a progress bar and elapsed time.

Demo

Settings

Microphone includes the following configurable options when building apps in the IDE.

SizeShow on desktopShow on mobileMake file public on uploadMaintain space when hiddenMarginAlways show in edit modeStylesUpload file to Retool StorageWidth

Properties

All properties for Microphone with supported data types or values. You can write JavaScript almost anywhere in Retool to manipulate or read property values.

The size of the button.

file

object

Details about the selected file.

Properties

lastModified

number

The last modified date as a UNIX timestamp.

name

string

The file name with extension.

retoolStorageId

string

The file ID if uploaded to Retool Storage.

size

string

The file size, in bytes.

type

string

The MIME type.

uploading

boolean

Whether the file is uploading.

global

boolean

Whether the object is globally scoped for use in all app pages.

boolean

Whether the component is visible.

id

string

The unique identifier.

Whether the component is visible in the desktop layout.

Whether the component is visible in the mobile layout.

Whether to make the file public when uploading with Retool Storage.

isRecording

Whether the component takes up space on the canvas if hidden is true.

The amount of margin to render outside.

Values
4px 8px

Normal margin.

0

No margin.

pluginType

string

The plugin type.

Whether to remain visible in the editor if hidden is true.

startLabel

stopLabel

string

The label for the Stop button.

style

object

Custom style options in use. Not all style options may be available for all components.

Whether to upload a file to Retool Storage.

width

number

The width.

Events

Events are triggered by user interactions, such as clicking a button or entering a value. Use event handlers to trigger queries or other actions in response to events.

change

The value is changed.