Upload Voice Consent
Upload Voice Consent
POST /v1/audio/voice_consents
Uploads a voice consent recording required for creating custom voices.
Request
Content-Type: multipart/form-data
| Parameter | Type | Required | Description |
|---|---|---|---|
file | file | Yes | Audio file containing the voice consent recording |
voice_name | string | Yes | Name of the voice this consent is for |
curl -X POST "https://api.osmapi.com/v1/audio/voice_consents" \
-H "Authorization: Bearer $OSM_API_KEY" \
-F file=@consent_recording.mp3 \
-F voice_name=my-custom-voiceNotes
- Form data is passed through to OpenAI's Voice Consents API.
- The consent recording must contain the speaker reading the required consent text
- Required before creating a custom voice via
/v1/audio/voices - See OpenAI Custom Voices documentation for consent requirements
How is this guide?