实时(Realtime)输入(Input)

Input streamed to a live model outside the turn-by-turn content exchange.

Realtime input is not a turn: media streams in continuously and the model decides when the user has finished, unless activity detection is disabled and the caller marks the boundaries with ActivityStart and ActivityEnd; realtime text has no arm here and is sent as content.

Audio and Video are separate arms because the Kotlin GenAI SDK has no combined media parameter, so the caller chooses which it is sending.

Inheritors

类型

Link copied to clipboard

在相同条件下,表示用户活动的结束。 ActivityStart.

Link copied to clipboard

标志着用户活动的开始。

Link copied to clipboard

一段音频数据,通常采用 16 位单声道 PCM 格式,采样率为 16 kHz。audio/pcm;rate=16000).

Link copied to clipboard

该标记表示音频流的结束,从而迫使模型清空其内部存储的所有数据。

Link copied to clipboard

一段视频,通常以 JPEG 格式存储(即一张 JPEG 图像)。