次の方法で共有


Endpoints - Create

新しいエンドポイントを作成します。

POST {endpoint}/speechtotext/v3.2-preview.2/endpoints

URI パラメーター

名前 / 必須 説明
endpoint
path True

string

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

要求本文

名前 必須 説明
displayName True

string

minLength: 1

オブジェクトの表示名。

locale True

string

minLength: 1

格納されているデータのロケール。

customProperties

object

このエンティティのカスタム プロパティ。 許可されるキーの最大長は 64 文字、最大許容値の長さは 256 文字、許可されるエントリの数は 10 です。

description

string

オブジェクトの説明。

model

EntityReference

EntityReference

project

EntityReference

EntityReference

properties

EndpointProperties

EndpointProperties

text

string

このエンドポイントの言語モデルを調整するために使用されるテキスト。

応答

名前 説明
201 Created

Endpoint

応答には、ペイロードとしてのエンティティとその場所に関する情報がヘッダーとして含まれます。

ヘッダー

Location: string

Other Status Codes

Error

エラーが発生しました。

セキュリティ

Ocp-Apim-Subscription-Key

コグニティブ サービス アカウント キーをここで指定します。

型: apiKey
/: header

Authorization

このリージョンの STS によって返される JWT からアクセス トークンを指定します。 STS URL に次のクエリ文字列を追加して、トークンに管理スコープを追加してください: ?scope=speechservicesmanagement

型: apiKey
/: header

Create an endpoint

要求のサンプル

POST {
  "model": {
    "self": "https://westus.api.cognitive.microsoft.com/speechtotext/v3.2-preview.2/models/827712a5-f942-4997-91c3-7c6cde35600b"
  },
  "properties": {
    "loggingEnabled": true
  },
  "locale": "en-US",
  "displayName": "Speech endpoint definition",
  "description": "This is a speech endpoint"
}/speechtotext/v3.2-preview.2/endpoints

{
  "model": {
    "self": "https://westus.api.cognitive.microsoft.com/speechtotext/v3.2-preview.2/models/827712a5-f942-4997-91c3-7c6cde35600b"
  },
  "properties": {
    "loggingEnabled": true
  },
  "locale": "en-US",
  "displayName": "Speech endpoint definition",
  "description": "This is a speech endpoint"
}

応答のサンプル

Location: https://westus.api.cognitive.microsoft.com/speechtotext/v3.2-preview.2/endpoints/afa0669c-a01e-4693-ae3a-93baf40f26d6
{
  "self": "https://westus.api.cognitive.microsoft.com/speechtotext/v3.2-preview.2/endpoints/afa0669c-a01e-4693-ae3a-93baf40f26d6",
  "model": {
    "self": "https://westus.api.cognitive.microsoft.com/speechtotext/v3.2-preview.2/models/827712a5-f942-4997-91c3-7c6cde35600b"
  },
  "links": {
    "logs": "https://westus.api.cognitive.microsoft.com/speechtotext/v3.2-preview.2/endpoints/afa0669c-a01e-4693-ae3a-93baf40f26d6/files/logs",
    "restInteractive": "https://westus.stt.speech.microsoft.com/speech/recognition/interactive/cognitiveservices/v1?cid=afa0669c-a01e-4693-ae3a-93baf40f26d6",
    "restConversation": "https://westus.stt.speech.microsoft.com/speech/recognition/conversation/cognitiveservices/v1?cid=afa0669c-a01e-4693-ae3a-93baf40f26d6",
    "restDictation": "https://westus.stt.speech.microsoft.com/speech/recognition/dictation/cognitiveservices/v1?cid=afa0669c-a01e-4693-ae3a-93baf40f26d6",
    "webSocketInteractive": "wss://westus.stt.speech.microsoft.com/speech/recognition/interactive/cognitiveservices/v1?cid=afa0669c-a01e-4693-ae3a-93baf40f26d6",
    "webSocketConversation": "wss://westus.stt.speech.microsoft.com/speech/recognition/conversation/cognitiveservices/v1?cid=afa0669c-a01e-4693-ae3a-93baf40f26d6",
    "webSocketDictation": "wss://westus.stt.speech.microsoft.com/speech/recognition/dictation/cognitiveservices/v1?cid=afa0669c-a01e-4693-ae3a-93baf40f26d6"
  },
  "properties": {
    "timeToLive": "PT30M",
    "loggingEnabled": true
  },
  "lastActionDateTime": "2019-01-07T11:36:07Z",
  "status": "Succeeded",
  "createdDateTime": "2019-01-07T11:34:12Z",
  "locale": "en-US",
  "displayName": "Speech endpoint",
  "description": "Example for speech endpoint"
}

定義

名前 説明
DetailedErrorCode

DetailedErrorCode

Endpoint

エンドポイント

EndpointLinks

EndpointLinks

EndpointProperties

EndpointProperties

EntityError

EntityError

EntityReference

EntityReference

Error

エラー

ErrorCode

エラーコード

InnerError

InnerError

Status

ステータス

DetailedErrorCode

DetailedErrorCode

説明
InvalidParameterValue

パラメーター値が無効です。

InvalidRequestBodyFormat

要求本文の形式が無効です。

EmptyRequest

空の要求。

MissingInputRecords

入力レコードがありません。

InvalidDocument

ドキュメントが無効です。

ModelVersionIncorrect

モデルのバージョンが正しくありません。

InvalidDocumentBatch

ドキュメント バッチが無効です。

UnsupportedLanguageCode

サポートされていない言語コード。

DataImportFailed

データのインポートに失敗しました。

InUseViolation

使用中の違反。

InvalidLocale

ロケールが無効です。

InvalidBaseModel

ベース モデルが無効です。

InvalidAdaptationMapping

適応マッピングが無効です。

InvalidDataset

データセットが無効です。

InvalidTest

テストが無効です。

FailedDataset

失敗したデータセット。

InvalidModel

モデルが無効です。

InvalidTranscription

文字起こしが無効です。

InvalidPayload

ペイロードが無効です。

InvalidParameter

パラメーターが無効です。

EndpointWithoutLogging

ログ記録なしのエンドポイント。

InvalidPermissions

アクセス許可が無効です。

InvalidPrerequisite

前提条件が無効です。

InvalidProductId

製品 ID が無効です。

InvalidSubscription

サブスクリプションが無効です。

InvalidProject

プロジェクトが無効です。

InvalidProjectKind

プロジェクトの種類が無効です。

InvalidRecordingsUri

無効な記録 URI。

OnlyOneOfUrlsOrContainerOrDataset

URL またはコンテナーまたはデータセットのいずれか 1 つだけ。

ExceededNumberOfRecordingsUris

記録 URI の数を超えました。

ModelMismatch

モデルの不一致。

ProjectGenderMismatch

プロジェクトの性別の不一致。

ModelDeprecated

モデルは非推奨になりました。

ModelExists

モデルが存在します。

ModelNotDeployable

モデルはデプロイできません。

EndpointNotUpdatable

エンドポイントは更新できません。

SingleDefaultEndpoint

単一の既定のエンドポイント。

EndpointCannotBeDefault

エンドポイントを既定にすることはできません。

InvalidModelUri

モデル URI が無効です。

SubscriptionNotFound

サブスクリプションが見つかりません。

QuotaViolation

クォータ違反。

UnsupportedDelta

サポートされていないデルタ。

UnsupportedFilter

サポートされていないフィルター。

UnsupportedPagination

サポートされていない改ページ位置。

UnsupportedDynamicConfiguration

サポートされていない動的構成。

UnsupportedOrderBy

サポートされていない注文者。

NoUtf8WithBom

bom を含む utf8 はありません。

ModelDeploymentNotCompleteState

モデルのデプロイが完了していない状態です。

SkuLimitsExist

SKU の制限が存在します。

DeployingFailedModel

失敗したモデルのデプロイ。

UnsupportedTimeRange

サポートされていない時間範囲。

InvalidLogDate

ログの日付が無効です。

InvalidLogId

無効なログ ID です。

InvalidLogStartTime

ログの開始時刻が無効です。

InvalidLogEndTime

ログの終了時刻が無効です。

InvalidTopForLogs

ログの top が無効です。

InvalidSkipTokenForLogs

ログのスキップ トークンが無効です。

DeleteNotAllowed

削除は許可されていません。

Forbidden

禁じられた。

DeployNotAllowed

デプロイは許可されていません。

UnexpectedError

予期しないエラー。

InvalidCollection

コレクションが無効です。

InvalidCallbackUri

コールバック URI が無効です。

InvalidSasValidityDuration

SAS の有効期間が無効です。

InaccessibleCustomerStorage

お客様のストレージにアクセスできません。

UnsupportedClassBasedAdaptation

サポートされていないクラス ベースの適応。

InvalidWebHookEventKind

Web フック イベントの種類が無効です。

InvalidTimeToLive

有効期限が無効です。

InvalidSourceAzureResourceId

ソース Azure リソース ID が無効です。

ModelCopyOperationExists

モデルのコピー操作が存在します。

Endpoint

エンドポイント

名前 説明
createdDateTime

string (date-time)

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

customProperties

object

このエンティティのカスタム プロパティ。 許可されるキーの最大長は 64 文字、最大許容値の長さは 256 文字、許可されるエントリの数は 10 です。

description

string

オブジェクトの説明。

displayName

string

minLength: 1

オブジェクトの表示名。

lastActionDateTime

string (date-time)

現在の状態が入力されたときのタイムスタンプ。 タイムスタンプは ISO 8601 の日付と時刻の形式 ("YYYY-MM-DDThh:mm:ssZ"、 https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations参照) としてエンコードされます。

links

EndpointLinks

EndpointLinks

locale

string

minLength: 1

格納されているデータのロケール。

model

EntityReference

EntityReference

project

EntityReference

EntityReference

properties

EndpointProperties

EndpointProperties

self

string (uri)

このエンティティの場所。

status

Status

ステータス
API の現在の状態について説明する

text

string

このエンドポイントの言語モデルを調整するために使用されるテキスト。

EndpointLinks

名前 説明
logs

string (uri)

このエンドポイントのオーディオログと文字起こしログ。 詳細については、操作 "Endpoints_ListLogs" を参照してください。

restConversation

string (uri)

最大 60 秒の要求の REST エンドポイント。

restDictation

string (uri)

最大 60 秒の要求の REST エンドポイント。句読点のディクテーションをサポートします。

restInteractive

string (uri)

最大 15 秒間の短い要求の REST エンドポイント。

webSocketConversation

string (uri)

複数の最終的な結果を含む長い要求の Speech SDK エンドポイント。

webSocketDictation

string (uri)

句読点のディクテーションをサポートする、複数の最終的な結果を持つ長い要求用の Speech SDK エンドポイント。

webSocketInteractive

string (uri)

1 回の最終結果で最大 15 秒間の短い要求の Speech SDK エンドポイント。

EndpointProperties

EndpointProperties

名前 説明
email

string

操作が完了した場合に電子メール通知を送信する電子メール アドレス。 この値は、電子メールを正常に送信した後に削除されます。

error

EntityError

EntityError

loggingEnabled

boolean

コンテンツ ログ (オーディオ & 文字起こし) が展開に使用されているかどうかを示す値。

timeToLive

string

エンドポイントがシステムに保持される期間。 エンドポイントは、完了 (成功または失敗) 後に有効期間に達すると、自動的に削除されます。 この値を設定しないか、0 に設定すると、自動削除が無効になります。 サポートされている最も長い期間は 31 日です。 期間は ISO 8601 期間としてエンコードされます (「PnYnMnDTnHnMnS」を参照 https://en.wikipedia.org/wiki/ISO_8601#Durations)。

EntityError

EntityError

名前 説明
code

string

このエラーのコード。

message

string

このエラーのメッセージ。

EntityReference

EntityReference

名前 説明
self

string (uri)

参照先エンティティの場所。

Error

エラー

名前 説明
code

ErrorCode

エラーコード
大まかなエラー コード。

details

Error[]

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

innerError

InnerError

InnerError
https://microsoft.sharepoint.com/%3Aw%3A/t/CognitiveServicesPMO/EUoytcrjuJdKpeOKIK_QRC8BPtUYQpKBi8JsWyeDMRsWlQ?e=CPq8owで利用可能な Cognitive Services API ガイドラインに準拠した新しい内部エラー形式。 これには、必須プロパティ ErrorCode、メッセージ、および省略可能なプロパティ ターゲット、details(キー値ペア)、内部エラー (入れ子にできます) が含まれます。

message

string

高レベルのエラー メッセージ。

target

string

エラーの原因。 たとえば、無効なドキュメントの場合は "documents" または "document id" になります。

ErrorCode

エラーコード

説明
InvalidRequest

無効な要求エラー コードを表します。

InvalidArgument

無効な引数のエラー コードを表します。

InternalServerError

内部サーバー エラー コードを表します。

ServiceUnavailable

サービスを使用できないエラー コードを表します。

NotFound

見つからないエラー コードを表します。

PipelineError

パイプライン エラー コードを表します。

Conflict

競合エラー コードを表します。

InternalCommunicationFailed

内部通信に失敗したエラー コードを表します。

Forbidden

禁止されているエラー コードを表します。

NotAllowed

許可されていないエラー コードを表します。

Unauthorized

承認されていないエラー コードを表します。

UnsupportedMediaType

サポートされていないメディアの種類のエラー コードを表します。

TooManyRequests

要求の数が多すぎるエラー コードを表します。

UnprocessableEntity

処理不可能なエンティティ エラー コードを表します。

InnerError

InnerError

名前 説明
code

DetailedErrorCode

DetailedErrorCode
詳細なエラー コード列挙型。

details

object

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

innerError

InnerError

InnerError
https://microsoft.sharepoint.com/%3Aw%3A/t/CognitiveServicesPMO/EUoytcrjuJdKpeOKIK_QRC8BPtUYQpKBi8JsWyeDMRsWlQ?e=CPq8owで利用可能な Cognitive Services API ガイドラインに準拠した新しい内部エラー形式。 これには、必須プロパティ ErrorCode、メッセージ、および省略可能なプロパティ ターゲット、details(キー値ペア)、内部エラー (入れ子にできます) が含まれます。

message

string

高レベルのエラー メッセージ。

target

string

エラーの原因。 たとえば、無効なドキュメントの場合は "documents" または "document id" になります。

Status

ステータス

説明
NotStarted

実行時間の長い操作がまだ開始されていません。

Running

実行時間の長い操作は現在処理中です。

Succeeded

実行時間の長い操作が正常に完了しました。

Failed

実行時間の長い操作が失敗しました。