Azure AI Speech Consents API
The Consents API from Azure AI Speech — 2 operation(s) for consents.
The Consents API from Azure AI Speech — 2 operation(s) for consents.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/azure-ai-speech:azure-ai-speech-consents-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Custom voice Consents API
version: '2026-01-01'
description: Custom voice API to create and deploy your voice.
x-typespec-generated:
- emitter: '@azure-tools/typespec-autorest'
security:
- ApiKeyAuth: []
- OAuth2Auth:
- https://cognitiveservices.azure.com/.default
tags:
- name: Consents
paths:
/consents:
get:
operationId: Consents_List
description: Gets a list of consents for the authenticated Speech service resource.
parameters:
- $ref: '#/components/parameters/Azure.Core.Foundations.ApiVersionParameter'
- $ref: '#/components/parameters/CustomListQueryParameters.skip'
- $ref: '#/components/parameters/CustomListQueryParameters.maxpagesize'
- $ref: '#/components/parameters/CustomListQueryParameters.filter'
responses:
'200':
description: The request has succeeded.
content:
application/json:
schema:
$ref: '#/components/schemas/PagedConsent'
default:
description: An unexpected error response.
headers:
x-ms-error-code:
description: String error code indicating what went wrong.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse'
x-ms-examples:
Get all consents:
$ref: ./examples/get_consents.json
x-ms-pageable:
nextLinkName: nextLink
tags:
- Consents
summary: Consents list
x-summary-source: derived
/consents/{id}:
get:
operationId: Consents_Get
description: Gets the consent identified by the given ID.
parameters:
- $ref: '#/components/parameters/Azure.Core.Foundations.ApiVersionParameter'
- name: id
in: path
description: Resource id
required: true
schema:
type: string
maxLength: 64
minLength: 3
pattern: ^[a-zA-Z0-9][a-zA-Z0-9._-]{1,62}[a-zA-Z0-9]$
responses:
'200':
description: The request has succeeded.
content:
application/json:
schema:
$ref: '#/components/schemas/Consent'
default:
description: An unexpected error response.
headers:
x-ms-error-code:
description: String error code indicating what went wrong.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse'
x-ms-examples:
Get a consent:
$ref: ./examples/get_consent.json
tags:
- Consents
summary: Consents get
x-summary-source: derived
put:
operationId: Consents_Create
description: Creates a new voice talent consent with the provided audio URL.
parameters:
- $ref: '#/components/parameters/Azure.Core.Foundations.ApiVersionParameter'
- name: id
in: path
description: Resource id
required: true
schema:
type: string
maxLength: 64
minLength: 3
pattern: ^[a-zA-Z0-9][a-zA-Z0-9._-]{1,62}[a-zA-Z0-9]$
- $ref: '#/components/parameters/OperationIdHeader'
responses:
'200':
description: The request has succeeded.
headers:
Operation-Location:
description: The location for monitoring the operation state.
schema:
type: string
format: uri
content:
application/json:
schema:
$ref: '#/components/schemas/Consent'
'201':
description: The request has succeeded and a new resource has been created as a result.
headers:
Operation-Location:
description: The location for monitoring the operation state.
schema:
type: string
format: uri
content:
application/json:
schema:
$ref: '#/components/schemas/Consent'
default:
description: An unexpected error response.
headers:
x-ms-error-code:
description: String error code indicating what went wrong.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse'
x-ms-examples:
Create a consent:
$ref: ./examples/create_consent.json
x-ms-long-running-operation-options:
final-state-via: original-uri
x-ms-long-running-operation: true
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Consent'
description: The resource instance.
required: true
tags:
- Consents
summary: Consents create
x-summary-source: derived
post:
operationId: Consents_CreateFromAudioFile
description: Creates a new voice talent consent with the provided audio file.
parameters:
- $ref: '#/components/parameters/Azure.Core.Foundations.ApiVersionParameter'
- $ref: '#/components/parameters/OperationIdHeader'
- name: id
in: path
description: The ID of the resource.
required: true
schema:
type: string
maxLength: 64
minLength: 3
pattern: ^[a-zA-Z0-9][a-zA-Z0-9._-]{1,62}[a-zA-Z0-9]$
responses:
'201':
description: The request has succeeded and a new resource has been created as a result.
headers:
Operation-Id:
schema:
type: string
Operation-Location:
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Consent'
default:
description: An unexpected error response.
headers:
x-ms-error-code:
description: String error code indicating what went wrong.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse'
x-ms-examples:
Create a consent:
$ref: ./examples/create_consent_with_multipart_form.json
x-ms-long-running-operation-options:
final-state-via: operation-location
x-ms-long-running-operation: true
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
projectId:
type: string
description: The project ID.
displayName:
type: string
description: The display name of this consent.
description:
type: string
description: Optional description of this consent.
voiceTalentName:
type: string
description: The name of voice talent.
companyName:
type: string
description: The name of company.
audioData:
type: string
description: An audio file containing the audio data.
format: binary
locale:
type: string
description: 'The locale of this consent. Locale code follows BCP-47. You can find the text
to speech locale list here
https://learn.microsoft.com/azure/ai-services/speech-service/language-support?tabs=tts.'
properties:
type: string
description: properties.
required:
- projectId
- voiceTalentName
- companyName
- audioData
- locale
tags:
- Consents
summary: Consents create from audio file
x-summary-source: derived
delete:
operationId: Consents_Delete
description: Deletes the consent identified by the given ID.
parameters:
- $ref: '#/components/parameters/Azure.Core.Foundations.ApiVersionParameter'
- name: id
in: path
description: Resource id
required: true
schema:
type: string
maxLength: 64
minLength: 3
pattern: ^[a-zA-Z0-9][a-zA-Z0-9._-]{1,62}[a-zA-Z0-9]$
responses:
'204':
description: 'There is no content to send for this request, but the headers may be useful. '
default:
description: An unexpected error response.
headers:
x-ms-error-code:
description: String error code indicating what went wrong.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse'
x-ms-examples:
Delete a consent:
$ref: ./examples/delete_consent.json
tags:
- Consents
summary: Consents delete
x-summary-source: derived
components:
schemas:
ConsentFailureReason:
type: string
description: Consent creation failure reason
enum:
- AudioAndScriptNotMatch
- Internal
x-ms-enum:
name: ConsentFailureReason
modelAsString: true
values:
- name: AudioAndScriptNotMatch
value: AudioAndScriptNotMatch
description: 'The consent audio mismatch with verbal statement. Please check
[verbal-statement](https://github.com/Azure-Samples/Cognitive-Speech-TTS/blob/master/CustomVoice/script/verbal-statement-all-locales.txt).'
- name: Internal
value: Internal
description: Custom Voice Service error.
resourceId:
type: string
description: Resource ID
minLength: 3
maxLength: 64
pattern: ^[a-zA-Z0-9][a-zA-Z0-9._-]{1,62}[a-zA-Z0-9]$
Azure.Core.Foundations.InnerError:
type: object
description: An object containing more specific information about the error. As per Azure REST API guidelines - https://aka.ms/AzureRestApiGuidelines#handling-errors.
properties:
code:
type: string
description: One of a server-defined set of error codes.
innererror:
$ref: '#/components/schemas/Azure.Core.Foundations.InnerError'
description: Inner error.
PagedConsent:
type: object
description: Paged collection of Consent items
properties:
value:
type: array
description: The Consent items on this page
items:
$ref: '#/components/schemas/Consent'
nextLink:
type: string
format: uri
description: The link to the next page of items
required:
- value
Consent:
type: object
description: Consent object
properties:
id:
$ref: '#/components/schemas/resourceId'
description: Resource id
readOnly: true
displayName:
type: string
description: Name of consent.
minLength: 1
description:
type: string
description: Description of consent.
voiceTalentName:
type: string
description: Voice talent name. Must match the voice talent name in the consent audio file.
minLength: 1
companyName:
type: string
description: Company name. Must match the company name in the consent audio file.
minLength: 1
audioUrl:
type: string
format: uri
description: 'The public accessible URL of the consent audio file. It''s recommended to be an
Azure blob URL with
[SAS](https://learn.microsoft.com/azure/storage/common/storage-sas-overview).
This property is only available in request.'
locale:
type: string
description: 'The locale of this consent. Locale code follows BCP-47. You can find the text
to speech locale list here
https://learn.microsoft.com/azure/ai-services/speech-service/language-support?tabs=tts.'
projectId:
$ref: '#/components/schemas/resourceId'
description: Resource id
properties:
$ref: '#/components/schemas/ConsentProperties'
description: Consent properties
status:
$ref: '#/components/schemas/Status'
description: Status of a resource.
createdDateTime:
type: string
format: date-time
description: 'The timestamp when the object was created. The timestamp is encoded as ISO 8601
date and time format ("YYYY-MM-DDThh:mm:ssZ", see
https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations)'
readOnly: true
lastActionDateTime:
type: string
format: date-time
description: 'The timestamp when the current status was entered. The timestamp is encoded as
ISO 8601 date and time format ("YYYY-MM-DDThh:mm:ssZ", see
https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations).'
readOnly: true
required:
- id
- voiceTalentName
- companyName
- locale
- projectId
Azure.Core.Foundations.Error:
type: object
description: The error object.
properties:
code:
type: string
description: One of a server-defined set of error codes.
message:
type: string
description: A human-readable representation of the error.
target:
type: string
description: The target of the error.
details:
type: array
description: An array of details about specific errors that led to this reported error.
items:
$ref: '#/components/schemas/Azure.Core.Foundations.Error'
innererror:
$ref: '#/components/schemas/Azure.Core.Foundations.InnerError'
description: An object containing more specific information than the current object about the error.
required:
- code
- message
ConsentProperties:
type: object
description: Consent properties
properties:
failureReason:
$ref: '#/components/schemas/ConsentFailureReason'
description: Consent creation failure reason
Azure.Core.Foundations.ErrorResponse:
type: object
description: A response containing error details.
properties:
error:
$ref: '#/components/schemas/Azure.Core.Foundations.Error'
description: The error object.
required:
- error
Status:
type: string
description: Status of a resource.
enum:
- NotStarted
- Running
- Succeeded
- Failed
- Disabling
- Disabled
x-ms-enum:
name: Status
modelAsString: true
values:
- name: NotStarted
value: NotStarted
description: NotStarted
- name: Running
value: Running
description: Running
- name: Succeeded
value: Succeeded
description: Succeeded
- name: Failed
value: Failed
description: Failed
- name: Disabling
value: Disabling
description: Disabling
- name: Disabled
value: Disabled
description: Disabled
parameters:
CustomListQueryParameters.maxpagesize:
name: maxpagesize
in: query
description: The maximum number of items to include in a single response.
required: false
x-ms-parameter-location: method
schema:
type: integer
format: int32
default: 100
CustomListQueryParameters.filter:
name: filter
in: query
description: 'Filter condition.
- **Supported properties:** projectId, createdDateTime, locale, kind
- **Operators:**
- eq, ne are supported for all properties.
- gt, ge, lt, le are supported for createdDateTime.
- **Example:**
- ```filter=projectId eq ''Jessica''``` (filter by project ID)
- ```filter=kind eq ''ProfessionalVoice''``` (filter project by kind)
- ```filter=locale eq ''en-US''``` (filter training set and model by locale)
- ```filter=createdDateTime gt 2022-12-30T23:59:59.99Z``` (filter resource
created time after 2023-11-01)'
required: false
x-ms-parameter-location: method
schema:
type: string
OperationIdHeader:
name: Operation-Id
in: header
description: 'ID of the status monitor for the operation. If the Operation-Id header matches
an existing operation and the request is not identical to the prior request, it
will fail with a 400 Bad Request.'
required: false
x-ms-parameter-location: method
x-ms-client-name: operationId
schema:
type: string
maxLength: 64
minLength: 3
pattern: ^[a-zA-Z0-9][a-zA-Z0-9._-]{1,62}[a-zA-Z0-9]$
CustomListQueryParameters.skip:
name: skip
in: query
description: The number of result items to skip.
required: false
x-ms-parameter-location: method
schema:
type: integer
format: int32
default: 0
Azure.Core.Foundations.ApiVersionParameter:
name: api-version
in: query
description: The API version to use for this operation.
required: true
x-ms-parameter-location: method
x-ms-client-name: apiVersion
schema:
type: string
minLength: 1
securitySchemes:
ApiKeyAuth:
type: apiKey
name: Ocp-Apim-Subscription-Key
in: header
OAuth2Auth:
type: oauth2
flows:
implicit:
scopes:
https://cognitiveservices.azure.com/.default: ''
authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
x-ms-parameterized-host:
hostTemplate: '{endpoint}/customvoice'
useSchemePrefix: false
parameters:
- name: endpoint
in: path
description: 'Supported Cognitive Services endpoints (protocol and hostname, for example:
https://eastus.api.cognitive.microsoft.com).'
required: true
type: string
format: uri
x-ms-skip-url-encoding: true