-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Custom Voice API to a new version (2024-02-01-preview). (#27515)
* Update Custom Voice API to a new version (2024-02-01-preview). Compare to previous version (2023-12-01-preview), only one change. Added failureReason property in Consent. * Fix LintDiff error on CustomVoice API by adding produces on delete method. * Update Custom Voice API according to review feedback. 1. Remove 'None' from modelFailureReason and consentFailureReason. 2. Add x-ms-error-code in header * Response shared "reponses" because LintDiff will report error on that. * Fix markdown grammar in description. --------- Co-authored-by: Jun-wei Gan <[email protected]>
- Loading branch information
Showing
35 changed files
with
3,900 additions
and
2 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
...es/data-plane/Speech/TextToSpeech/preview/2024-02-01-preview/examples/create_consent.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"parameters": { | ||
"Endpoint": "https://eastus.api.cognitive.microsoft.com/", | ||
"Ocp-Apim-Subscription-Key": "{API Key}", | ||
"api-version": "2024-02-01-preview", | ||
"id": "Jessica", | ||
"Operation-Id": "070f7986-ef17-41d0-ba2b-907f0f28e314", | ||
"consent": { | ||
"description": "Consent for Jessica voice", | ||
"projectId": "Jessica", | ||
"voiceTalentName": "Jessica Smith", | ||
"companyName": "Contoso", | ||
"audioUrl": "https://contoso.blob.core.windows.net/public/jessica-consent.wav?mySasToken", | ||
"locale": "en-US" | ||
}, | ||
"Content-Type": "application/json" | ||
}, | ||
"responses": { | ||
"201": { | ||
"headers": { | ||
"Operation-Location": "https://eastus.api.cognitive.microsoft.com/customvoice/operations/070f7986-ef17-41d0-ba2b-907f0f28e314?api-version=2024-02-01-preview", | ||
"Operation-Id": "070f7986-ef17-41d0-ba2b-907f0f28e314" | ||
}, | ||
"body": { | ||
"id": "Jessica", | ||
"description": "Consent for Jessica voice", | ||
"projectId": "Jessica", | ||
"voiceTalentName": "Jessica Smith", | ||
"companyName": "Contoso", | ||
"locale": "en-US", | ||
"status": "NotStarted", | ||
"createdDateTime": "2023-04-01T05:30:00.000Z", | ||
"lastActionDateTime": "2023-04-02T10:15:30.000Z" | ||
} | ||
} | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
.../TextToSpeech/preview/2024-02-01-preview/examples/create_consent_with_multipart_form.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"parameters": { | ||
"Endpoint": "https://eastus.api.cognitive.microsoft.com/", | ||
"Ocp-Apim-Subscription-Key": "{API Key}", | ||
"api-version": "2024-02-01-preview", | ||
"id": "Jessica", | ||
"Operation-Id": "070f7986-ef17-41d0-ba2b-907f0f28e314", | ||
"description": "Consent for Jessica voice", | ||
"projectId": "Jessica", | ||
"voiceTalentName": "Jessica Smith", | ||
"companyName": "Contoso", | ||
"audiodata": "{audio file}", | ||
"locale": "en-US", | ||
"Content-Type": "multipart/form-data" | ||
}, | ||
"responses": { | ||
"201": { | ||
"headers": { | ||
"Operation-Location": "https://eastus.api.cognitive.microsoft.com/customvoice/operations/070f7986-ef17-41d0-ba2b-907f0f28e314?api-version=2024-02-01-preview", | ||
"Operation-Id": "070f7986-ef17-41d0-ba2b-907f0f28e314" | ||
}, | ||
"body": { | ||
"id": "Jessica", | ||
"description": "Consent for Jessica voice", | ||
"projectId": "Jessica", | ||
"voiceTalentName": "Jessica Smith", | ||
"companyName": "Contoso", | ||
"locale": "en-US", | ||
"status": "NotStarted", | ||
"createdDateTime": "2023-04-01T05:30:00.000Z", | ||
"lastActionDateTime": "2023-04-02T10:15:30.000Z" | ||
} | ||
} | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
...s/data-plane/Speech/TextToSpeech/preview/2024-02-01-preview/examples/create_endpoint.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"parameters": { | ||
"Endpoint": "https://eastus.api.cognitive.microsoft.com/", | ||
"Ocp-Apim-Subscription-Key": "{API Key}", | ||
"api-version": "2024-02-01-preview", | ||
"id": "9f50c644-2121-40e9-9ea7-544e48bfe3cb", | ||
"Operation-Id": "2595b58d-40d6-4032-a618-482dcce1c130", | ||
"endpoint": { | ||
"description": "Endpoint for Jessica voice", | ||
"projectId": "Jessica", | ||
"modelId": "Jessica" | ||
}, | ||
"Content-Type": "application/json" | ||
}, | ||
"responses": { | ||
"201": { | ||
"headers": { | ||
"Operation-Location": "https://eastus.api.cognitive.microsoft.com/customvoice/operations/2595b58d-40d6-4032-a618-482dcce1c130?api-version=2024-02-01-preview", | ||
"Operation-Id": "2595b58d-40d6-4032-a618-482dcce1c130" | ||
}, | ||
"body": { | ||
"id": "9f50c644-2121-40e9-9ea7-544e48bfe3cb", | ||
"description": "Endpoint for Jessica voice", | ||
"projectId": "Jessica", | ||
"modelId": "Jessica", | ||
"properties": { | ||
"kind": "HighPerformance" | ||
}, | ||
"status": "NotStarted", | ||
"createdDateTime": "2023-04-01T05:30:00.000Z", | ||
"lastActionDateTime": "2023-04-02T10:15:30.000Z" | ||
} | ||
} | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
...ices/data-plane/Speech/TextToSpeech/preview/2024-02-01-preview/examples/create_model.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"parameters": { | ||
"Endpoint": "https://eastus.api.cognitive.microsoft.com/", | ||
"Ocp-Apim-Subscription-Key": "{API Key}", | ||
"api-version": "2024-02-01-preview", | ||
"id": "Jessica", | ||
"Operation-Id": "1f4352df-f247-40c0-a7b1-a54d017933e1", | ||
"model": { | ||
"voiceName": "JessicaNeural", | ||
"description": "Jessica voice", | ||
"recipe": { | ||
"kind": "Default" | ||
}, | ||
"projectId": "Jessica", | ||
"consentId": "Jessica", | ||
"trainingSetId": "Jessica-300" | ||
}, | ||
"Content-Type": "application/json" | ||
}, | ||
"responses": { | ||
"201": { | ||
"headers": { | ||
"Operation-Location": "https://eastus.api.cognitive.microsoft.com/customvoice/operations/1f4352df-f247-40c0-a7b1-a54d017933e1?api-version=2024-02-01-preview", | ||
"Operation-Id": "1f4352df-f247-40c0-a7b1-a54d017933e1" | ||
}, | ||
"body": { | ||
"id": "Jessica", | ||
"voiceName": "JessicaNeural", | ||
"description": "Jessica voice", | ||
"recipe": { | ||
"kind": "Default", | ||
"version": "V7.2023.03" | ||
}, | ||
"projectId": "Jessica", | ||
"consentId": "Jessica", | ||
"trainingSetId": "Jessica-300", | ||
"locale": "en-US", | ||
"engineVersion": "2023.07.04.0", | ||
"status": "NotStarted", | ||
"createdDateTime": "2023-04-01T05:30:00.000Z", | ||
"lastActionDateTime": "2023-04-02T10:15:30.000Z" | ||
} | ||
} | ||
} | ||
} |
72 changes: 72 additions & 0 deletions
72
...ane/Speech/TextToSpeech/preview/2024-02-01-preview/examples/create_multi_style_model.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{ | ||
"parameters": { | ||
"Endpoint": "https://eastus.api.cognitive.microsoft.com/", | ||
"Ocp-Apim-Subscription-Key": "{API Key}", | ||
"api-version": "2024-02-01-preview", | ||
"id": "JessicaMultiStyle", | ||
"Operation-Id": "a01a127a-c204-4e46-a8c1-fab01559b05b", | ||
"model": { | ||
"voiceName": "JessicaMultiStyleNeural", | ||
"description": "Jessica multi style voice", | ||
"recipe": { | ||
"kind": "MultiStyle" | ||
}, | ||
"projectId": "Jessica", | ||
"consentId": "Jessica", | ||
"trainingSetId": "Jessica-300", | ||
"locale": "en-US", | ||
"properties": { | ||
"presetStyles": [ | ||
"cheerful", | ||
"sad" | ||
], | ||
"styleTrainingSetIds": { | ||
"happy": "JessicaHappy-300", | ||
"myStyle2": "JessicaStyle2" | ||
} | ||
} | ||
}, | ||
"Content-Type": "application/json" | ||
}, | ||
"responses": { | ||
"201": { | ||
"headers": { | ||
"Operation-Location": "https://eastus.api.cognitive.microsoft.com/customvoice/operations/a01a127a-c204-4e46-a8c1-fab01559b05b?api-version=2024-02-01-preview", | ||
"Operation-Id": "a01a127a-c204-4e46-a8c1-fab01559b05b" | ||
}, | ||
"body": { | ||
"id": "JessicaMultiStyle", | ||
"voiceName": "JessicaMultiStyleNeural", | ||
"description": "Jessica multi style voice", | ||
"recipe": { | ||
"kind": "MultiStyle", | ||
"version": "V3.2023.06" | ||
}, | ||
"projectId": "Jessica", | ||
"consentId": "Jessica", | ||
"trainingSetId": "Jessica-300", | ||
"locale": "en-US", | ||
"engineVersion": "2023.07.04.0", | ||
"properties": { | ||
"presetStyles": [ | ||
"cheerful", | ||
"sad" | ||
], | ||
"styleTrainingSetIds": { | ||
"happy": "JessicaHappy-300", | ||
"myStyle2": "JessicaStyle2" | ||
}, | ||
"voiceStyles": [ | ||
"cheerful", | ||
"sad", | ||
"happy", | ||
"myStyle2" | ||
] | ||
}, | ||
"status": "NotStarted", | ||
"createdDateTime": "2023-04-01T05:30:00.000Z", | ||
"lastActionDateTime": "2023-04-02T10:15:30.000Z" | ||
} | ||
} | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
...a-plane/Speech/TextToSpeech/preview/2024-02-01-preview/examples/create_personalvoice.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"parameters": { | ||
"Endpoint": "https://eastus.api.cognitive.microsoft.com/", | ||
"Ocp-Apim-Subscription-Key": "{API Key}", | ||
"api-version": "2024-02-01-preview", | ||
"id": "Jessica-PersonalVoice", | ||
"Operation-Id": "1321a2c0-9be4-471d-83bb-bc3be4f96a6f", | ||
"personalvoice": { | ||
"projectId": "PersonalVoice", | ||
"consentId": "Jessica", | ||
"audios": { | ||
"containerUrl": "https://contoso.blob.core.windows.net/voicecontainer?mySasToken", | ||
"prefix": "jessica/", | ||
"extensions": [ | ||
".wav" | ||
] | ||
} | ||
}, | ||
"Content-Type": "application/json" | ||
}, | ||
"responses": { | ||
"201": { | ||
"headers": { | ||
"Operation-Location": "https://eastus.api.cognitive.microsoft.com/customvoice/operations/1321a2c0-9be4-471d-83bb-bc3be4f96a6f?api-version=2024-02-01-preview", | ||
"Operation-Id": "1321a2c0-9be4-471d-83bb-bc3be4f96a6f" | ||
}, | ||
"body": { | ||
"id": "Jessica-PersonalVoice", | ||
"speakerProfileId": "3059912f-a3dc-49e3-bdd0-02e449df1fe3", | ||
"projectId": "PersonalVoice", | ||
"consentId": "Jessica", | ||
"status": "NotStarted", | ||
"createdDateTime": "2023-04-01T05:30:00.000Z", | ||
"lastActionDateTime": "2023-04-02T10:15:30.000Z" | ||
} | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...oSpeech/preview/2024-02-01-preview/examples/create_personalvoice_with_multipart_form.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"parameters": { | ||
"Endpoint": "https://eastus.api.cognitive.microsoft.com/", | ||
"Ocp-Apim-Subscription-Key": "{API Key}", | ||
"api-version": "2024-02-01-preview", | ||
"id": "Jessica-PersonalVoice", | ||
"Operation-Id": "1321a2c0-9be4-471d-83bb-bc3be4f96a6f", | ||
"projectId": "PersonalVoice", | ||
"consentId": "Jessica", | ||
"audiodata": "{audio files}", | ||
"Content-Type": "multipart/form-data" | ||
}, | ||
"responses": { | ||
"201": { | ||
"headers": { | ||
"Operation-Location": "https://eastus.api.cognitive.microsoft.com/customvoice/operations/1321a2c0-9be4-471d-83bb-bc3be4f96a6f?api-version=2024-02-01-preview", | ||
"Operation-Id": "1321a2c0-9be4-471d-83bb-bc3be4f96a6f" | ||
}, | ||
"body": { | ||
"id": "Jessica-PersonalVoice", | ||
"speakerProfileId": "3059912f-a3dc-49e3-bdd0-02e449df1fe3", | ||
"projectId": "PersonalVoice", | ||
"consentId": "Jessica", | ||
"status": "NotStarted", | ||
"createdDateTime": "2023-04-01T05:30:00.000Z", | ||
"lastActionDateTime": "2023-04-02T10:15:30.000Z" | ||
} | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...es/data-plane/Speech/TextToSpeech/preview/2024-02-01-preview/examples/create_project.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"parameters": { | ||
"Endpoint": "https://eastus.api.cognitive.microsoft.com/", | ||
"Ocp-Apim-Subscription-Key": "{API Key}", | ||
"api-version": "2024-02-01-preview", | ||
"id": "Jessica", | ||
"project": { | ||
"description": "Project for Jessica Voice", | ||
"kind": "ProfessionalVoice" | ||
}, | ||
"Content-Type": "application/json" | ||
}, | ||
"responses": { | ||
"201": { | ||
"headers": {}, | ||
"body": { | ||
"id": "Jessica", | ||
"description": "Project for Jessica Voice", | ||
"kind": "ProfessionalVoice", | ||
"createdDateTime": "2023-04-01T05:30:00.000Z" | ||
} | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...ata-plane/Speech/TextToSpeech/preview/2024-02-01-preview/examples/create_trainingset.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"parameters": { | ||
"Endpoint": "https://eastus.api.cognitive.microsoft.com/", | ||
"Ocp-Apim-Subscription-Key": "{API Key}", | ||
"api-version": "2024-02-01-preview", | ||
"id": "Jessica-300", | ||
"trainingset": { | ||
"description": "300 sentences Jessica data in general style.", | ||
"projectId": "Jessica", | ||
"locale": "en-US", | ||
"voiceKind": "Female" | ||
}, | ||
"Content-Type": "application/json" | ||
}, | ||
"responses": { | ||
"201": { | ||
"headers": {}, | ||
"body": { | ||
"id": "Jessica-300", | ||
"description": "300 sentences Jessica data in general style.", | ||
"projectId": "Jessica", | ||
"locale": "en-US", | ||
"voiceKind": "Female", | ||
"status": "Succeeded", | ||
"createdDateTime": "2023-04-01T05:30:00.000Z", | ||
"lastActionDateTime": "2023-04-02T10:15:30.000Z" | ||
} | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...es/data-plane/Speech/TextToSpeech/preview/2024-02-01-preview/examples/delete_consent.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"parameters": { | ||
"Endpoint": "https://eastus.api.cognitive.microsoft.com/", | ||
"Ocp-Apim-Subscription-Key": "{API Key}", | ||
"api-version": "2024-02-01-preview", | ||
"id": "Jessica" | ||
}, | ||
"responses": { | ||
"204": { | ||
"headers": {} | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...s/data-plane/Speech/TextToSpeech/preview/2024-02-01-preview/examples/delete_endpoint.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"parameters": { | ||
"Endpoint": "https://eastus.api.cognitive.microsoft.com/", | ||
"Ocp-Apim-Subscription-Key": "{API Key}", | ||
"api-version": "2024-02-01-preview", | ||
"id": "9f50c644-2121-40e9-9ea7-544e48bfe3cb" | ||
}, | ||
"responses": { | ||
"204": { | ||
"headers": {} | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...ices/data-plane/Speech/TextToSpeech/preview/2024-02-01-preview/examples/delete_model.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"parameters": { | ||
"Endpoint": "https://eastus.api.cognitive.microsoft.com/", | ||
"Ocp-Apim-Subscription-Key": "{API Key}", | ||
"api-version": "2024-02-01-preview", | ||
"id": "Jessica" | ||
}, | ||
"responses": { | ||
"204": { | ||
"headers": {} | ||
} | ||
} | ||
} |
Oops, something went wrong.