AgentHumanVideoService
Constructor Parameters
NewSessionRequest
Parameters
Aspect Ratios
When
aspect_ratio is "auto" (the default), the service reads video_out_width and video_out_height from your transport and selects the closest supported ratio. A warning is logged if the dimensions don’t closely match any standard ratio.
Transport Requirements
AgentHumanVideoService requires a transport with video output enabled. Passing a transport without video_out_enabled=True raises a ValueError immediately.
Session Lifecycle
Audio Processing
The service automatically resamples all incoming TTS audio to 16 kHz mono PCM before forwarding to the avatar. No manual audio format configuration is needed regardless of which TTS service you use. Audio is buffered and sent in chunks. A new chunk is dispatched when:- The buffer reaches the target chunk size and silence is detected, or
- A
TTSStoppedFrameis received (end of utterance)