Skip to main content

VoiceConsoleProps

@gravity-rail/react


@gravity-rail/react / VoiceConsoleProps

Interface: VoiceConsoleProps

Extends​

Properties​

agentLabel?​

optional agentLabel: string

Name to show for the agent's turns (default "Agent").


className?​

optional className: string


emptyHint?​

optional emptyHint: string

Placeholder shown before any speech is transcribed.


label?​

optional label: string

Label for the start button 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


title?​

optional title: string

Heading shown above the transcript.


workflowId?​

optional workflowId: number

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

Inherited from​

UseVoiceOptions.workflowId


youLabel?​

optional youLabel: string

Name to show for the caller's turns (default "You").