codecamp

OpenAI 列出音色授权录音

列出音色授权录音

get /audio/voice_consents

返回音色授权录音列表。

查询参数

  • after: optional string

分页游标。after是定义列表当前位置的对象ID。例如,某次列表请求返回100个对象,最后一个为obj_foo,后续请求可包含after=obj_foo,获取下一页。

  • limit: optional integer(默认 20)

返回对象数量上限,范围1到100,默认为20。

返回值

  • data: array of VoiceConsent

  • 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"

  • has_more: boolean

  • object: "list"

  • "list"

  • first_id: optional string or null

  • last_id: optional string or null

示例

## [中文] 发送GET请求;将示例API凭证及呼叫标识替换为应用使用的值。
curl https://api.openai.com/v1/audio/voice_consents \
    -H "Authorization: Bearer $OPENAI_API_KEY"

响应

中文说明:以下为原文配置、命令或事件示例,字段名、枚举、标识符及数值保留。

{
  "data": [
    {
      "id": "cons_1234",
      "created_at": 0,
      "language": "language",
      "name": "name",
      "object": "audio.voice_consent"
    }
  ],
  "has_more": true,
  "object": "list",
  "first_id": "first_id",
  "last_id": "last_id"
}

示例

## [中文] 发送GET请求;将示例API凭证及呼叫标识替换为应用使用的值。
curl https://api.openai.com/v1/audio/voice_consents?limit=20 \
  -H "Authorization: Bearer $OPENAI_API_KEY"
OpenAI 删除音色授权录音
OpenAI 获取音色授权录音
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

其他能力与进阶指南

Embeddings 接口参考

审计日志接口参考

关闭

MIP.setData({ 'pageTheme' : getCookie('pageTheme') || {'day':true, 'night':false}, 'pageFontSize' : getCookie('pageFontSize') || 20 }); MIP.watch('pageTheme', function(newValue){ setCookie('pageTheme', JSON.stringify(newValue)) }); MIP.watch('pageFontSize', function(newValue){ setCookie('pageFontSize', newValue) }); function setCookie(name, value){ var days = 1; var exp = new Date(); exp.setTime(exp.getTime() + days*24*60*60*1000); document.cookie = name + '=' + value + ';expires=' + exp.toUTCString(); } function getCookie(name){ var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)'); return document.cookie.match(reg) ? JSON.parse(document.cookie.match(reg)[2]) : null; }