AS AgentScopeAPI 手册 / API Reference
类class agentscope.realtime

AudioDeltaEvent

class AudioDeltaEvent(ModelEvent)
源码Source agentscope/realtime/_events.py:56–61

音频增量事件,描述执行过程中的事件。位于 agentscope.realtime 包,继承自 ModelEvent。

A chunk of assistant speech. Declared in agentscope.realtime. Extends ModelEvent.

属性摘要Attribute Summary

属性Attribute类型Type说明Description值Value
item_idstr
条目标识字段。
—
pcmbytes
`pcm` 字段。
—
sample_rateint
`sample_rate` 字段。
—

属性详情Attribute Detail

item_id

str

条目标识字段。声明为 str。

The item id field.

源码Source agentscope/realtime/_events.py:59

pcm

bytes

pcm 字段。声明为 bytes。

The pcm field.

源码Source agentscope/realtime/_events.py:60

sample_rate

int

sample_rate 字段。声明为 int。

The sample rate field.

源码Source agentscope/realtime/_events.py:61
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.