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

TTSUsage

@dataclass
class TTSUsage(DictMixin)
源码Source agentscope/tts/_tts_response.py:13–26

TTS 用量,处理低延迟的实时语音与多模态交互。位于 agentscope.tts 包,继承自 DictMixin。

The usage of a TTS model API invocation. Declared in agentscope.tts. Extends DictMixin.

属性摘要Attribute Summary

属性Attribute类型Type说明Description值Value
input_tokensint
输入令牌数字段。
—
output_tokensint
输出令牌数字段。
—
timefloat
时间字段。
—
typeLiteral['tts']
类型字段。
field(default_factory=lambda: 'tts')

属性详情Attribute Detail

input_tokens

int

输入令牌数字段。声明为 int。

The input tokens field.

源码Source agentscope/tts/_tts_response.py:16

output_tokens

int

输出令牌数字段。声明为 int。

The output tokens field.

源码Source agentscope/tts/_tts_response.py:19

time

float

时间字段。声明为 float。

The time field.

源码Source agentscope/tts/_tts_response.py:22

type

Literal['tts'] = field(default_factory=lambda: 'tts')

类型字段。声明为 Literal['tts']。

The type field.

源码Source agentscope/tts/_tts_response.py:25
基于官方固定版本源码静态生成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.