Skip to content

Commit

Permalink
Update Custom Voice API to a new version (2024-02-01-preview). (#27515)
Browse files Browse the repository at this point in the history
* 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
2 people authored and vxfield committed Mar 28, 2024
1 parent 84b384e commit c482c41
Show file tree
Hide file tree
Showing 35 changed files with 3,900 additions and 2 deletions.
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"
}
}
}
}
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"
}
}
}
}
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"
}
}
}
}
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"
}
}
}
}
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"
}
}
}
}
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"
}
}
}
}
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"
}
}
}
}
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"
}
}
}
}
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"
}
}
}
}
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": {}
}
}
}
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": {}
}
}
}
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": {}
}
}
}
Loading

0 comments on commit c482c41

Please sign in to comment.