类class
agentscope.realtimeAudioDeltaEvent
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_id | str | 条目标识字段。 | — |
pcm | bytes | `pcm` 字段。 | — |
sample_rate | int | `sample_rate` 字段。 | — |
属性详情Attribute Detail
item_id
str条目标识字段。声明为 str。
The item id field.
源码Source
agentscope/realtime/_events.py:59pcm
bytespcm 字段。声明为 bytes。
The pcm field.
源码Source
agentscope/realtime/_events.py:60sample_rate
intsample_rate 字段。声明为 int。
The sample rate field.
源码Source
agentscope/realtime/_events.py:61