kernl

Interface: UseRealtimeReturn

Defined in: react/src/hooks/use-realtime.ts:43

Return value from the useRealtime hook.

Properties

PropertyTypeDescriptionDefined in
connect(credential: CredentialInput) => Promise<void>Connect to the realtime model with the given credential.react/src/hooks/use-realtime.ts:52
disconnect() => voidDisconnect from the realtime model.react/src/hooks/use-realtime.ts:57
mute() => voidMute audio input.react/src/hooks/use-realtime.ts:67
mutedbooleanWhether audio input is muted.react/src/hooks/use-realtime.ts:62
sendMessage(text: string) => voidSend a text message to the model.react/src/hooks/use-realtime.ts:77
statusTransportStatusCurrent connection status.react/src/hooks/use-realtime.ts:47
unmute() => voidUnmute audio input.react/src/hooks/use-realtime.ts:72

On this page