<RecordingPreview>

View as Markdown

The <RecordingPreview> component is rendered after voice recording stops, allowing the user to preview and optionally send or discard the recorded audio.

Use the AudioPlayer system component to play back the recorded audio with waveform visualization. Use VoiceRecordingController to send or discard the audio recording.

interface RecordingPreviewProps

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 <RecordingPreview> component is implemented as follows:

RecordingPreview.js
1// loading...