Skip to main content

Module realtime

Module realtime 

Source
Expand description

Live API realtime model: ephemeral auth tokens, session setup and the mapping between Live API messages and the specification events.

Structs§

GoogleRealtimeFactory
Factory for Live API models and session tokens.
GoogleRealtimeModel
Live API realtime model.

Constants§

DEFAULT_EXPIRES_AFTER_SECONDS
Default window in which a token may open a session.
DEFAULT_INPUT_AUDIO_RATE
Default input audio sample rate advertised in audio blobs.
FAMILY
Provider id family.
WEBSOCKET_SERVICE_PATH
Service path of the constrained (token-authenticated) bidi endpoint.

Functions§

build_session_config
Builds the setup message (bidiGenerateContentSetup) for a session.
token_request_headers
Headers of the auth token request: configuration headers only (the key travels in the query string).