Skip to main content

VoiceButtonProps

@gravity-rail/react


@gravity-rail/react / VoiceButtonProps

Interface: VoiceButtonProps

Extends​

Properties​

className?​

optional className: string


label?​

optional label: string

Label shown when idle.


onTranscript()?​

optional onTranscript: (entry) => void

Called for each finished transcript turn (caller or agent).

Parameters​

entry​

VoiceTranscriptEntry

Returns​

void

Inherited from​

UseVoiceOptions.onTranscript


workflowId?​

optional workflowId: number

Override the workflow the voice chat runs (defaults to the site default).

Inherited from​

UseVoiceOptions.workflowId