Audio

Create voice consent

Changed on

Upload a voice consent recording.

post/audio/voice_consents

Request

  • Base URL
    https://api.openai.com/v1
  • URL
    https://api.openai.com/v1/audio/voice_consents
  • Auth
    HTTP bearer

Request body multipart/form-data

namestring required

The label to use for this consent recording.

recordingstring binary required

The consent audio recording file. Maximum size is 10 MiB.

Supported MIME types: audio/mpeg, audio/wav, audio/x-wav, audio/ogg, audio/aac, audio/flac, audio/webm, audio/mp4.

languagestring required

The BCP 47 language tag for the consent phrase (for example, en-US).

Response

OK

object'audio.voice_consent' required

The object type, which is always audio.voice_consent.

idstring required

The consent recording identifier.

namestring required

The label provided when the consent recording was uploaded.

languagestring required

The BCP 47 language tag for the consent phrase (for example, en-US).

created_atinteger required

The Unix timestamp (in seconds) for when the consent recording was created.

Example response

{
  "id": "cons_1234"
}

Changes

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status