@personaai/reactv0.10.0

UseVoiceResult — @personaai/react

Generated field table for UseVoiceResult — do not edit

Generated from sdk/react/dist/typedoc.json — do not edit.

UseVoiceResult

Source: types.ts:481

Interface

FieldTypeDescription
statePersonaVoiceState— _ types.ts:482_
isMutedboolean— _ types.ts:483_
transcriptPersonaVoiceTranscriptLine[]Committed lines, oldest first. — _ types.ts:485_
partialPersonaVoiceTranscriptLine | nullThe current speaker's in-progress (not yet final) line, or null. — _ types.ts:487_
toolCallsPersonaVoiceToolCall[]— _ types.ts:488_
errorError | null— _ types.ts:489_
endReasonPersonaVoiceEndReason | nullSet once the session ends — see PersonaVoiceEndReason. — _ types.ts:491_
startobjectMints a ticket via the host backend, then opens the call. Resets all state above. — _ types.ts:493_
stopobjectEnds the call and tears down the mic/speaker audio graph. Safe to call at any time. — _ types.ts:495_
muteobject— _ types.ts:496_
sendTextobjectSends a typed message mid-call instead of speaking — the agent may reply in either voice or text. — _ types.ts:498_
updateContextobjectLive-refreshes context for the rest of this already-open call — merged into, not replacing, whatever context is already set (from start()'s context option or a previous updateContext() call). Sent directly over the open WebSocket ({ type: 'voice.context', context }); a no-op if the call isn't currently active. No reconnect, no dropped audio — the next tool call in this session reads the new value. — _ types.ts:507_