Skip to main content

Type definition

Below is the type definition for the UseAmbientSessionParams type. This is the type definition for the parameters you pass to the useAmbientSession hook.
type UseAmbientSessionParams = {
  ambientSessionId: string;
  config?: {
    audioBatchSize?: number;
  };
  onAudioChunkAvailable?: (audioChunk: Array<Int16Array>) => void;
};

useAmbientSession hook

The hook for managing ambient sessions.

useAmbient hook

The hook for creating ambient sessions.
Last modified on April 1, 2026