recruit/candidate-presentation-recorder · CandidatePresentationRecorder

Presentation recorder

Records a short voice note to send with a person's profile, such as why you recommend them to a client.

Riley Okafor, for Example Labs

Optional. Tell the client in your own words why Riley fits. It’s added when you stop recording.

Ready to share.

Install

With your coding agentInstall RecruiterOS/recruit-ui and add a voice note recorder to the dialog that shares a profile with a client.
With the shadcn CLIpnpm dlx shadcn@latest add RecruiterOS/recruit-ui/recruit-workflows

Props

PropTypeWhat it does
onAcceptrequired(blob: Blob, mimeType: string) => Promise<void>Called with each finished take, as soon as recording stops. Upload or save it here. While it runs the recorder shows `uploading`; if it throws, the take stays playable with Retry and Discard, and the error's message (or `labels.acceptFailed`) shows under the controls.
externalStateCandidatePresentationRecorderStateShows `uploading` or `transcribing` from outside, such as while you transcribe an accepted take. Any other value leaves the recorder's own state showing.
existingAudiostring | nullA recording already saved, playable until a new take is accepted.
onPendingChange(pending: boolean) => voidTold whether a take is in progress or unsaved (requesting, recording, uploading, transcribing, or a take kept to retry), so you can hold off closing or sharing until it settles.
disabledbooleanDisables starting, retrying and discarding. Stopping a recording stays possible.
renderAudio(audio: CandidatePresentationRecorderAudio) => ReactNodeRenders a player. Defaults to the browser's own audio controls.
labelsPartial<CandidatePresentationRecorderLabels>

Data

The component takes plain values and callbacks and keeps no records of its own. Pass it yours, from the Kith data layer or from a backend you already run.