New: Audio API, Embeddings & Realtime WebSocket now available!
osmAPI LogoosmAPI

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

ParameterTypeRequiredDescription
filefileYesAudio file containing the voice consent recording
voice_namestringYesName 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-voice

Notes

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