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;
};