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

Parameters

class Parameters(RealtimeModelBase.Parameters)
源码Source agentscope/realtime/_xai/_model.py:29–53

参数,处理低延迟的实时语音与多模态交互。位于 agentscope.realtime 包,继承自 RealtimeModelBase.Parameters。

Tuneables surfaced to the UI. Declared in agentscope.realtime. Extends RealtimeModelBase.Parameters.

属性摘要Attribute Summary

属性Attribute类型Type说明Description值Value
voicestr
语音字段。
Field(default='eve', title='Voice', description='A built-in voice name or a custom voice ID.')
turn_detectionLiteral['server_vad', 'none']
`turn_detection` 字段。
Field(default='server_vad', title='Turn Detection', description='``none`` hands endpointing to the caller.')
vad_thresholdfloat
语音活动检测阈值字段。
Field(default=0.85, ge=0.1, le=0.9)
vad_silence_duration_msint
`vad_silence_duration_ms` 字段。
Field(default=500, ge=0, le=10000)
reasoning_effortLiteral['high', 'none']
`reasoning_effort` 字段。
Field(default='high', title='Reasoning Effort', description='``none`` answers faster and more shallowly.')
language_hintstr | None
`language_hint` 字段。
Field(default=None, title='Language Hint', description='BCP-47 code biasing transcription, e.g. ``es-MX``.')

属性详情Attribute Detail

voice

str = Field(default='eve', title='Voice', description='A built-in voice name or a custom voice ID.')

语音字段。声明为 str。

A built-in voice name or a custom voice ID.

源码Source agentscope/realtime/_xai/_model.py:32

turn_detection

Literal['server_vad', 'none'] = Field(default='server_vad', title='Turn Detection', description='``none`` hands endpointing to the caller.')

turn_detection 字段。声明为 Literal['server_vad', 'none']。

none hands endpointing to the caller.

源码Source agentscope/realtime/_xai/_model.py:37

vad_threshold

float = Field(default=0.85, ge=0.1, le=0.9)

语音活动检测阈值字段。声明为 float。

The vad threshold field.

源码Source agentscope/realtime/_xai/_model.py:42

vad_silence_duration_ms

int = Field(default=500, ge=0, le=10000)

vad_silence_duration_ms 字段。声明为 int。

The vad silence duration ms field.

源码Source agentscope/realtime/_xai/_model.py:43

reasoning_effort

Literal['high', 'none'] = Field(default='high', title='Reasoning Effort', description='``none`` answers faster and more shallowly.')

reasoning_effort 字段。声明为 Literal['high', 'none']。

none answers faster and more shallowly.

源码Source agentscope/realtime/_xai/_model.py:44

language_hint

str | None = Field(default=None, title='Language Hint', description='BCP-47 code biasing transcription, e.g. ``es-MX``.')

language_hint 字段。声明为 str | None。

BCP-47 code biasing transcription, e.g.

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