<VoiceRecorder>

View as Markdown

The <VoiceRecorder> component is rendered during an active voice recording. It typically shows a waveform visualization and the recording duration.

Use the Waveform system component to render the audio waveform. Use the VoiceRecorderController to obtain data to display like the duration and to stop/cancel/send the audio recording.

interface VoiceRecorderProps

Properties

A collection of objects which are passed to all Chatbox theme components.

voiceRecorder
: VoiceRecorderController

Controls and holds state related to voice recording.

Example

In the default theme, the <VoiceRecorder> component is implemented as follows:

VoiceRecorder.js
1// loading...