Hook to react to an incoming audio chunk from the user’s microphone.

Usage

from io import BytesIO
import chainlit as cl


@cl.on_audio_chunk
async def on_audio_chunk(chunk: cl.InputAudioChunk):
    pass