类class
agentscope.ttsTTSUsage
@dataclass
class TTSUsage(DictMixin)
源码Source
agentscope/tts/_tts_response.py:13–26TTS 用量,处理低延迟的实时语音与多模态交互。位于 agentscope.tts 包,继承自 DictMixin。
The usage of a TTS model API invocation. Declared in agentscope.tts. Extends DictMixin.
属性摘要Attribute Summary
| 属性Attribute | 类型Type | 说明Description | 值Value |
|---|---|---|---|
input_tokens | int | 输入令牌数字段。 | — |
output_tokens | int | 输出令牌数字段。 | — |
time | float | 时间字段。 | — |
type | Literal['tts'] | 类型字段。 | field(default_factory=lambda: 'tts') |
属性详情Attribute Detail
input_tokens
int输入令牌数字段。声明为 int。
The input tokens field.
源码Source
agentscope/tts/_tts_response.py:16output_tokens
int输出令牌数字段。声明为 int。
The output tokens field.
源码Source
agentscope/tts/_tts_response.py:19time
float时间字段。声明为 float。
The time field.
源码Source
agentscope/tts/_tts_response.py:22type
Literal['tts'] = field(default_factory=lambda: 'tts')类型字段。声明为 Literal['tts']。
The type field.
源码Source
agentscope/tts/_tts_response.py:25