类class
agentscope.realtimeParameters
class Parameters(RealtimeModelBase.Parameters)
源码Source
agentscope/realtime/_dashscope/_model.py:40–76参数,处理低延迟的实时语音与多模态交互。位于 agentscope.realtime 包,继承自 RealtimeModelBase.Parameters。
Tuneables surfaced to the UI. Declared in agentscope.realtime. Extends RealtimeModelBase.Parameters.
属性摘要Attribute Summary
| 属性Attribute | 类型Type | 说明Description | 值Value |
|---|---|---|---|
voice | str | 语音字段。 | Field(default='Cherry', title='Voice', description='The voice used for spoken model responses.') |
turn_detection | Literal['server_vad', 'semantic_vad', 'none'] | `turn_detection` 字段。 | Field(default='server_vad', title='Turn Detection', description='How the model detects when the user has finished speaking.') |
vad_threshold | float | 语音活动检测阈值字段。 | Field(default=0.5, ge=0.0, le=1.0, description='Speech detection sensitivity. Lower values detect quieter speech.') |
vad_silence_duration_ms | int | `vad_silence_duration_ms` 字段。 | Field(default=800, ge=0, description="Silence required before the model considers the user's turn complete.") |
input_audio_transcription | bool | `input_audio_transcription` 字段。 | Field(default=True, title='Transcribe Input', description="Whether to show a transcript of the user's speech.") |
属性详情Attribute Detail
voice
str = Field(default='Cherry', title='Voice', description='The voice used for spoken model responses.')语音字段。声明为 str。
The voice used for spoken model responses.
源码Source
agentscope/realtime/_dashscope/_model.py:43turn_detection
Literal['server_vad', 'semantic_vad', 'none'] = Field(default='server_vad', title='Turn Detection', description='How the model detects when the user has finished speaking.')turn_detection 字段。声明为 Literal['server_vad', 'semantic_vad', 'none']。
How the model detects when the user has finished speaking.
源码Source
agentscope/realtime/_dashscope/_model.py:48vad_threshold
float = Field(default=0.5, ge=0.0, le=1.0, description='Speech detection sensitivity. Lower values detect quieter speech.')语音活动检测阈值字段。声明为 float。
Speech detection sensitivity.
源码Source
agentscope/realtime/_dashscope/_model.py:55vad_silence_duration_ms
int = Field(default=800, ge=0, description="Silence required before the model considers the user's turn complete.")vad_silence_duration_ms 字段。声明为 int。
Silence required before the model considers the user's turn complete.
源码Source
agentscope/realtime/_dashscope/_model.py:64input_audio_transcription
bool = Field(default=True, title='Transcribe Input', description="Whether to show a transcript of the user's speech.")input_audio_transcription 字段。声明为 bool。
Whether to show a transcript of the user's speech.
源码Source
agentscope/realtime/_dashscope/_model.py:72