OpenAI 更新音色授权录音
2026-11-10 17:18 更新
更新音色授权录音
post /audio/voice_consents/{consent_id}
更新音色授权录音,仅修改元数据。
路径参数
consent_id: string
要更新的音色授权录音 ID。
请求体参数
媒体类型为 application/json。
name: string
此授权录音更新后的标签。
返回值
VoiceConsent object { id, created_at, language, 2 more }
用于授权创建自定义音色的同意录音。
id: string
授权录音标识。
created_at: integer(Unix 时间戳)
授权录音创建时的Unix时间戳,单位为秒。
language: string
授权语句的BCP 47语言标签,例如en-US。
name: string
上传授权录音时提供的标签。
object: "audio.voice_consent"
对象类型,固定为audio.voice_consent。
"audio.voice_consent"
示例
## [中文] 发送POST请求;将示例API凭证及呼叫标识替换为应用使用的值。
curl https://api.openai.com/v1/audio/voice_consents/$CONSENT_ID \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-d '{
"name": "name"
}'
响应
中文说明:以下为原文配置、命令或事件示例,字段名、枚举、标识符及数值保留。
{
"id": "cons_1234",
"created_at": 0,
"language": "language",
"name": "name",
"object": "audio.voice_consent"
}
示例
代码内文字译释:
- John Doe,示例姓名。
## [中文] 发送POST请求;将示例API凭证及呼叫标识替换为应用使用的值。
curl https://api.openai.com/v1/audio/voice_consents/cons_1234 \
-X POST \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "John Doe"
}'以上内容是否对您有帮助:

TRAE-AI编程


更多建议: