Type Definition
Below is the type definition for theUseAmbientSessionParams type. This is the type definition for the parameters you pass to the useAmbientSession hook.
Parameters type for useAmbientSession hook
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;
};