For AI agents: Find a documentation index at https://talkjs.com/llms.txt (full content at https://talkjs.com/llms-full.txt). Get a markdown version of any page by appending .md to its URL path.
VoiceRecorder
Customize the preview shown while recording a voice message.
This page covers the Classic SDK. For new projects, use the Components SDK, which lets you customize voice recording controls with a React component also named VoiceRecorder.
The VoiceRecorder component is a subcomponent that is part of all preset themes. It is used to render a preview when the user has recorded a voice message.
Our preset themes pass the following props to the VoiceRecorder component. You can change the props it receives by updating the places in the theme where the component is invoked.
| Name | Type | Description |
|---|---|---|
| recordingDuration | number | duration of the recording in seconds |
In our preset themes, the VoiceRecorder subcomponent is rendered inside the MessageField. System components available there are also available in this component.