获取历史记录项

获取一条历史记录。

路径参数

history_item_idstring必需

要使用的历史记录项 ID。可使用 获取生成项 端点获取历史记录项列表。

请求头

xi-api-keystring可选

响应

成功响应

history_item_idstring

历史记录项 ID。

date_unixinteger

项目创建时的 Unix 时间戳。

character_count_change_frominteger

字符数变更前的值。

character_count_change_tointeger

字符数变更后的值。

content_typestring

生成项的内容类型。

stateany
request_idstring or null可选

请求的 ID。

voice_idstring or null可选

所用音色的 ID。

model_idstring or null可选

模型的 ID。

voice_namestring or null可选

音色名称。

voice_categoryenum or null可选

音色类别。可以是 ‘premade’、‘cloned’、‘generated’ 或 ‘professional’。

允许的值:
textstring or null可选

用于生成音频项目的文本。

settingsmap from strings to any or null可选

历史记录项的设置。

sourceenum or null可选

历史记录项的来源。可以是 TTS(文本转语音)、STS(语音转文本)、AN(Audio Native)、项目、配音、PlayAPI、PD(发音词典)或 ConvAI(智能体平台)。

alignmentsobject or null可选

历史记录项的对齐信息。

dialoguelist of objects or null可选

用于生成音频项的对话(音色和文本对)。设置此项后,顶层的 text 和 voice_id 字段将为空。

output_formatstring or null可选

音频最初生成时的输出格式。

错误

422
Unprocessable Entity Error