Life Cycle Hooks
on_audio_chunk
Misceallaneous
- author_rename and Message author
- make_async
- cache
- Data persistence
- Window Messaging
Life Cycle Hooks
on_audio_chunk
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
Was this page helpful?
On this page