Personal Voices - Post
İstemcide ses dosyalarıyla yeni bir kişisel ses oluşturur.
POST {endpoint}/customvoice/personalvoices/{id}?api-version=2024-02-01-preview
URI Parametreleri
Name | İçinde | Gerekli | Tür | Description |
---|---|---|---|---|
project
|
formData | True |
string |
Proje kimliği. Normal ifade deseni: |
audio
|
formData |
file |
Ses dosyaları. |
|
description
|
formData |
string |
Bu modelin isteğe bağlı açıklaması. |
|
display
|
formData |
string |
Bu modelin görünen adı. |
|
properties
|
formData |
string |
Özellikler. |
|
endpoint
|
path | True |
string |
Desteklenen Bilişsel Hizmetler uç noktaları (protokol ve konak adı, örneğin: https://eastus.api.cognitive.microsoft.com). |
id
|
path | True |
string |
Kaynağın kimliği. Normal ifade deseni: |
api-version
|
query | True |
string |
Bu işlem için kullanılacak API sürümü. |
İstek Başlığı
Media Types: "multipart/form-data"
Name | Gerekli | Tür | Description |
---|---|---|---|
Ocp-Apim-Subscription-Key | True |
string |
Konuşma kaynak anahtarınızı burada belirtin. |
Operation-Id |
string |
İşlem için durum izleyicisinin kimliği. Operation-Id üst bilgisi mevcut bir işlemle eşleşiyorsa ve istek önceki istekle aynı değilse, 400 Hatalı İstek ile başarısız olur. Normal ifade deseni: |
Yanıtlar
Name | Tür | Description |
---|---|---|
201 Created |
Oluşturulan Üst Bilgiler
|
|
Other Status Codes |
Bir hata oluşmuştur. Üst Bilgiler x-ms-error-code: string |
Güvenlik
Ocp-Apim-Subscription-Key
Konuşma kaynak anahtarınızı burada belirtin.
Tür:
apiKey
İçinde:
header
Örnekler
Create a personal voice
Örnek isteği
POST {endpoint}/customvoice/personalvoices/Jessica-PersonalVoice?api-version=2024-02-01-preview
Örnek yanıt
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
{
"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"
}
Tanımlar
Name | Description |
---|---|
Azure |
Azure Blob Depolama içeriği. Aşağıdaki örneklerde *.wav dosyalarıhttps://contoso.blob.core.windows.net/voicecontainer/jessica/ temsil eder |
Error |
Üst düzey hata, adresinde https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errorsbulunan Microsoft Azure REST API Yönergeleri'ni izler. Bu, hata kodu, ileti, ayrıntılar, hedef ve daha açıklayıcı ayrıntılar içeren bir iç hata içeren üst düzey bir hata içerir. |
Error |
Üst düzey hata kodu |
Error |
Hata yanıtı, adresinde https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errorsbulunan Microsoft Azure REST API Yönergeleri'ni izler. |
Inner |
İç hata, adresinde https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errorsbulunan Microsoft Azure REST API Yönergeleri'ni izler. Bu, gerekli özellikler hata kodunu, ileti ve isteğe bağlı özelliklerin hedef, iç hata (iç içe yerleştirilmiş olabilir) içerir. |
Model |
Model eğitim hatasının nedeni |
Personal |
Kişisel ses nesnesi |
Personal |
Kişisel ses özellikleri |
Status |
Kaynağın durumu. |
AzureBlobContentSource
Azure Blob Depolama içeriği. Aşağıdaki örneklerde *.wav dosyalarıhttps://contoso.blob.core.windows.net/voicecontainer/jessica/ temsil eder
Name | Tür | Description |
---|---|---|
containerUrl |
string |
SAS ile Azure Blob Depolama kapsayıcı URL'si. Hem okuma hem de listeleme izinleri gerekir. |
extensions |
string[] |
Dosya adı uzantıları. |
prefix |
string |
Blob adı ön eki. |
Error
Üst düzey hata, adresinde https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errorsbulunan Microsoft Azure REST API Yönergeleri'ni izler. Bu, hata kodu, ileti, ayrıntılar, hedef ve daha açıklayıcı ayrıntılar içeren bir iç hata içeren üst düzey bir hata içerir.
Name | Tür | Description |
---|---|---|
code |
Üst düzey hata kodu |
|
details |
Error[] |
Hata ve/veya beklenen ilkelerle ilgili ek destek ayrıntıları. |
innererror |
İç hata, adresinde https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errorsbulunan Microsoft Azure REST API Yönergeleri'ni izler. Bu, gerekli özellikler hata kodunu, ileti ve isteğe bağlı özelliklerin hedef, iç hata (iç içe yerleştirilmiş olabilir) içerir. |
|
message |
string |
Üst düzey hata iletisi. |
target |
string |
Hatanın kaynağı. Örneğin, geçersiz model olması durumunda "model" veya "model kimliği" olabilir. |
ErrorCode
Üst düzey hata kodu
Name | Tür | Description |
---|---|---|
BadArgument |
string |
|
BadRequest |
string |
|
Forbidden |
string |
|
InternalServerError |
string |
|
NotFound |
string |
|
ServiceUnavailable |
string |
|
TooManyRequests |
string |
|
Unauthorized |
string |
|
UnsupportedMediaType |
string |
ErrorResponse
Hata yanıtı, adresinde https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errorsbulunan Microsoft Azure REST API Yönergeleri'ni izler.
Name | Tür | Description |
---|---|---|
error |
Üst düzey hata, adresinde https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errorsbulunan Microsoft Azure REST API Yönergeleri'ni izler. Bu, hata kodu, ileti, ayrıntılar, hedef ve daha açıklayıcı ayrıntılar içeren bir iç hata içeren üst düzey bir hata içerir. |
InnerError
İç hata, adresinde https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errorsbulunan Microsoft Azure REST API Yönergeleri'ni izler. Bu, gerekli özellikler hata kodunu, ileti ve isteğe bağlı özelliklerin hedef, iç hata (iç içe yerleştirilmiş olabilir) içerir.
Name | Tür | Description |
---|---|---|
code |
string |
Tanılamaya yardımcı olmak için ayrıntılı hata kodu. |
innererror |
İç hata, adresinde https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errorsbulunan Microsoft Azure REST API Yönergeleri'ni izler. Bu, gerekli özellikler hata kodunu, ileti ve isteğe bağlı özelliklerin hedef, iç hata (iç içe yerleştirilmiş olabilir) içerir. |
|
message |
string |
Ayrıntılı hata iletisi. |
target |
string |
Hatanın kaynağı. Örneğin, geçersiz model olması durumunda "model" veya "model kimliği" olabilir. |
ModelFailureReason
Model eğitim hatasının nedeni
Name | Tür | Description |
---|---|---|
InaccessibleCustomerStorage |
string |
Müşteri Konuşma Hesabında Kendi Depolama Alanınızı Getirin özelliğini kullanır. Ancak depolamaya şu anda erişilemiyor. Lütfen belgeyi kontrol edin. |
Internal |
string |
Özel Ses Hizmeti hatası. |
SpeakerVerificationFailed |
string |
Onay ve eğitim sesi aynı konuşmacıdan değil. |
TerminateByUser |
string |
Müşteri model eğitimini iptal etti. |
PersonalVoice
Kişisel ses nesnesi
Name | Tür | Description |
---|---|---|
audios |
Azure Blob Depolama içeriği. Aşağıdaki örneklerde *.wav dosyalarıhttps://contoso.blob.core.windows.net/voicecontainer/jessica/ temsil eder |
|
consentId |
string |
Kaynak kimliği |
createdDateTime |
string |
Nesnenin oluşturulduğu zaman damgası. Zaman damgası ISO 8601 tarih ve saat biçimi olarak kodlanmıştır ("YYYY-AA-GGThh:mm:ssZ", bkz https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations. ). |
description |
string |
Kişisel ses açıklaması |
displayName |
string |
Kişisel sesin görünen adı |
id |
string |
Kaynak kimliği |
lastActionDateTime |
string |
Geçerli durumun girildiği zaman damgası. Zaman damgası ISO 8601 tarih ve saat biçimi olarak kodlanmıştır ("YYYY-AA-GGThh:mm:ssZ", bkz https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations. ). |
projectId |
string |
Kaynak kimliği |
properties |
Kişisel ses özellikleri |
|
speakerProfileId |
string |
Kişisel ses hoparlörü profil kimliği. Bu özelliği SSML'de doldurun. |
status |
Kaynağın durumu. |
PersonalVoiceProperties
Kişisel ses özellikleri
Name | Tür | Description |
---|---|---|
failureReason |
Model eğitim hatasının nedeni |
Status
Kaynağın durumu.
Name | Tür | Description |
---|---|---|
Disabled |
string |
|
Disabling |
string |
|
Failed |
string |
|
NotStarted |
string |
|
Running |
string |
|
Succeeded |
string |