Share via


Projects - Create

新しいプロジェクトを作成します。

PUT {endpoint}/customvoice/projects/{id}?api-version=2023-12-01-preview

URI パラメーター

名前 / 必須 説明
endpoint
path True

string

サポートされている Cognitive Services エンドポイント (プロトコルとホスト名など)。 https://eastus.api.cognitive.microsoft.com

id
path True

string

リソースの ID。

Regex pattern: ^[a-zA-Z0-9][a-zA-Z0-9._-]{1,62}[a-zA-Z0-9]$

api-version
query True

string

この操作に使用する API バージョン。

要求ヘッダー

名前 必須 説明
Ocp-Apim-Subscription-Key True

string

Speech リソース キーをここに入力します。

要求本文

名前 必須 説明
kind True

ProjectKind

プロジェクトの種類

description

string

プロジェクトの説明

displayName

string

プロジェクト名

id

string

リソースの ID

応答

名前 説明
201 Created

Project

作成済み

Other Status Codes

ErrorResponse

エラーが発生しました。

セキュリティ

Ocp-Apim-Subscription-Key

Speech リソース キーをここに入力します。

Type: apiKey
In: header

Create a project

Sample Request

PUT {endpoint}/customvoice/projects/Jessica?api-version=2023-12-01-preview


{
  "description": "Project for Jessica Voice",
  "kind": "ProfessionalVoice"
}

Sample Response

{
  "id": "Jessica",
  "description": "Project for Jessica Voice",
  "kind": "ProfessionalVoice",
  "createdDateTime": "2023-04-01T05:30:00.000Z"
}

定義

名前 説明
Error

最上位レベルのエラーは、 で利用可能な Microsoft Azure REST API ガイドラインに https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors従います。 これには、エラー コード、メッセージ、詳細、ターゲット、およびよりわかりやすい詳細を含む内部エラーを含む最上位レベルのエラーが含まれます。

ErrorCode

最上位のエラー コード

ErrorResponse

エラー応答は、 で入手できる Microsoft Azure REST API ガイドラインに https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors従います。

InnerError

内部エラーは、 で入手できる Microsoft Azure REST API ガイドラインに https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors従います。 これには、必須プロパティのエラー コード、メッセージ、およびオプションのプロパティ ターゲット、内部エラー (入れ子にできます) が含まれます。

Project

Project オブジェクト。 同意、トレーニング セット、モデル、エンドポイントは、プロジェクトに編成されます。

ProjectKind

プロジェクトの種類

Error

最上位レベルのエラーは、 で利用可能な Microsoft Azure REST API ガイドラインに https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors従います。 これには、エラー コード、メッセージ、詳細、ターゲット、およびよりわかりやすい詳細を含む内部エラーを含む最上位レベルのエラーが含まれます。

名前 説明
code

ErrorCode

最上位のエラー コード

details

Error[]

エラーや予想されるポリシーに関する追加のサポートの詳細。

innererror

InnerError

内部エラーは、 で入手できる Microsoft Azure REST API ガイドラインに https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors従います。 これには、必須プロパティのエラー コード、メッセージ、およびオプションのプロパティ ターゲット、内部エラー (入れ子にできます) が含まれます。

message

string

最上位レベルのエラー メッセージ。

target

string

エラーのソースです。 たとえば、無効なモデルの場合は、"model" または "model id" になります。

ErrorCode

最上位のエラー コード

名前 説明
BadArgument

string

BadRequest

string

Forbidden

string

InternalServerError

string

NotFound

string

ServiceUnavailable

string

TooManyRequests

string

Unauthorized

string

UnsupportedMediaType

string

ErrorResponse

エラー応答は、 で入手できる Microsoft Azure REST API ガイドラインに https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors従います。

名前 説明
error

Error

最上位レベルのエラーは、 で利用可能な Microsoft Azure REST API ガイドラインに https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors従います。 これには、エラー コード、メッセージ、詳細、ターゲット、およびよりわかりやすい詳細を含む内部エラーを含む最上位レベルのエラーが含まれます。

InnerError

内部エラーは、 で入手できる Microsoft Azure REST API ガイドラインに https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors従います。 これには、必須プロパティのエラー コード、メッセージ、およびオプションのプロパティ ターゲット、内部エラー (入れ子にできます) が含まれます。

名前 説明
code

string

診断に役立つ詳細なエラー コード。

innererror

InnerError

内部エラーは、 で入手できる Microsoft Azure REST API ガイドラインに https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors従います。 これには、必須プロパティのエラー コード、メッセージ、およびオプションのプロパティ ターゲット、内部エラー (入れ子にできます) が含まれます。

message

string

詳細なエラー メッセージ。

target

string

エラーのソースです。 たとえば、無効なモデルの場合は、"model" または "model id" になります。

Project

Project オブジェクト。 同意、トレーニング セット、モデル、エンドポイントは、プロジェクトに編成されます。

名前 説明
createdDateTime

string

オブジェクトが作成されたときのタイムスタンプ。 タイムスタンプは ISO 8601 日時形式 ("YYYY-MM-DDThh:mm:ssZ"、 を参照) https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representationsとしてエンコードされます。

description

string

プロジェクトの説明

displayName

string

プロジェクト名

id

string

リソースの ID

kind

ProjectKind

プロジェクトの種類

ProjectKind

プロジェクトの種類

名前 説明
PersonalVoice

string

ProfessionalVoice

string