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

Parameters

class Parameters(BaseModel)
源码Source agentscope/tts/_openai/_model.py:52–81

参数,处理低延迟的实时语音与多模态交互。位于 agentscope.tts 包。

Frontend-exposed parameters for OpenAI TTS models. Declared in agentscope.tts.

属性摘要Attribute Summary

属性Attribute类型Type说明Description值Value
voicestr
语音字段。
Field(default='alloy', title='Voice', description='The voice to use for synthesis.')
response_formatLiteral['mp3', 'opus', 'aac', 'flac', 'wav', 'pcm']
响应格式字段。
Field(default=_DEFAULT_RESPONSE_FORMAT, title='Response Format', description='The audio format of the synthesized speech.')
instructionsstr | None
指令字段。
Field(default=None, title='Instructions', description='Additional instructions for controlling the voice (only supported by some models, e.g. gpt-4o-mini-tts).')

属性详情Attribute Detail

voice

str = Field(default='alloy', title='Voice', description='The voice to use for synthesis.')

语音字段。声明为 str。

The voice to use for synthesis.

源码Source agentscope/tts/_openai/_model.py:55

response_format

Literal['mp3', 'opus', 'aac', 'flac', 'wav', 'pcm'] = Field(default=_DEFAULT_RESPONSE_FORMAT, title='Response Format', description='The audio format of the synthesized speech.')

响应格式字段。声明为 Literal['mp3', 'opus', 'aac', 'flac', 'wav', 'pcm']。

The audio format of the synthesized speech.

源码Source agentscope/tts/_openai/_model.py:61

instructions

str | None = Field(default=None, title='Instructions', description='Additional instructions for controlling the voice (only supported by some models, e.g. gpt-4o-mini-tts).')

指令字段。声明为 str | None。

Additional instructions for controlling the voice (only supported by some models, e.g.

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