共用方式為


Datasets - Get

取得指定標識碼所識別的數據集。

GET {endpoint}/speechtotext/v3.1/datasets/{id}

URI 參數

名稱 位於 必要 類型 Description
endpoint
path True

string

支援的認知服務端點 (通訊協定和主機名,例如: https://westus.api.cognitive.microsoft.com) 。

id
path True

string (uuid)

數據集的識別碼。

回應

名稱 類型 Description
200 OK

Dataset

確定

標題

Retry-After: integer

Other Status Codes

Error

發生錯誤。

安全性

Ocp-Apim-Subscription-Key

在這裡提供認知服務帳戶金鑰。

類型: apiKey
位於: header

Authorization

從此區域的 STS 傳回的 JWT 提供存取令牌。 請務必將下列查詢字串新增至 STS URL,將管理範圍新增至令牌:?scope=speechservicesmanagement

類型: apiKey
位於: header

範例

Get a dataset

範例要求

GET {endpoint}/speechtotext/v3.1/datasets/9d5f4100-5f8e-4dd6-bd83-9bbbf50d57f1

範例回覆

{
  "self": "https://westus.api.cognitive.microsoft.com/speechtotext/v3.1/datasets/9d5f4100-5f8e-4dd6-bd83-9bbbf50d57f1",
  "kind": "Acoustic",
  "contentUrl": "https://www.contoso.com/acousticdata/sourcelocation",
  "links": {
    "files": "https://westus.api.cognitive.microsoft.com/speechtotext/v3.1/datasets/9d5f4100-5f8e-4dd6-bd83-9bbbf50d57f1/files"
  },
  "properties": {
    "acceptedLineCount": 11,
    "rejectedLineCount": 2,
    "duration": "PT4M12S"
  },
  "lastActionDateTime": "2019-01-07T11:36:07Z",
  "status": "Succeeded",
  "createdDateTime": "2019-01-07T11:34:12Z",
  "locale": "en-US",
  "displayName": "Acoustic dataset"
}

定義

名稱 Description
Dataset

資料集

DatasetKind

DatasetKind

DatasetLinks

DatasetLinks

DatasetProperties

DatasetProperties

DetailedErrorCode

DetailedErrorCode

EntityError

EntityError

EntityReference

EntityReference

Error

錯誤

ErrorCode

ErrorCode

InnerError

InnerError

Status

狀態

Dataset

資料集

名稱 類型 Description
contentUrl

string (uri)

數據集數據的 URL。

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

對象的顯示名稱。

kind

DatasetKind

DatasetKind
數據匯入的類型。

lastActionDateTime

string (date-time)

輸入目前狀態時的時間戳。 時間戳會編碼為 ISO 8601 日期和時間格式, (“YYYY-MM-DDThh:mm:ssZ”,請參閱 https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) 。

links

DatasetLinks

DatasetLinks

locale

string

minLength: 1

自主數據的地區設定。

project

EntityReference

EntityReference

properties

DatasetProperties

DatasetProperties

self

string (uri)

這個實體的位置。

status

Status

狀態
描述 API 的目前狀態

DatasetKind

DatasetKind

Description
Acoustic

原音數據集。

AudioFiles

音訊檔案數據集。

Language

語言數據集。

LanguageMarkdown

語言 Markdown 數據集。

Pronunciation

發音數據集。

DatasetLinks

名稱 類型 Description
commitBlocks

string (uri)

使用區塊上傳數據集時,要認可區塊清單的位置。 如需詳細資訊,請參閱作業「Datasets_CommitBlocks」。

files

string (uri)

取得此實體所有檔案的位置。 如需詳細資訊,請參閱作業「Datasets_ListFiles」。

listBlocks

string (uri)

使用區塊上傳數據集時,列出此實體已上傳區塊的位置。 如需詳細資訊,請參閱作業“Datasets_GetDatasetBlocks”。

uploadBlocks

string (uri)

使用區塊上傳數據集時,要上傳區塊的位置。 如需詳細資訊,請參閱作業“Datasets_UploadBlock”。

DatasetProperties

DatasetProperties

名稱 類型 Description
acceptedLineCount

integer (int32)

此數據集接受的行數。

duration

string

如果數據集包含音訊檔案,則數據集的總持續時間。 持續時間會編碼為 ISO 8601 持續時間 (“PnYnMnDTnHnMnS”,請參閱 https://en.wikipedia.org/wiki/ISO_8601#Durations) 。

email

string

作業完成時,傳送電子郵件通知至的電子郵件位址。 成功傳送電子郵件之後,將會移除此值。

error

EntityError

EntityError

rejectedLineCount

integer (int32)

此數據集拒絕的行數。

DetailedErrorCode

DetailedErrorCode

Description
DataImportFailed

數據匯入失敗。

DeleteNotAllowed

不允許刪除。

DeployNotAllowed

不允許部署。

DeployingFailedModel

部署失敗的模型。

EmptyRequest

空白要求。

EndpointCannotBeDefault

端點不可為預設值。

EndpointNotUpdatable

端點無法更新。

EndpointWithoutLogging

沒有記錄的端點。

ExceededNumberOfRecordingsUris

超過錄製 URI 的數目。

FailedDataset

失敗的數據集。

Forbidden

禁止。

InUseViolation

在使用違規中。

InaccessibleCustomerStorage

無法存取的客戶記憶體。

InvalidAdaptationMapping

調整對應無效。

InvalidBaseModel

基底模型無效。

InvalidCallbackUri

無效的回呼 URI。

InvalidCollection

無效的集合。

InvalidDataset

無效的數據集。

InvalidDocument

無效的檔。

InvalidDocumentBatch

無效的檔批次。

InvalidLocale

無效的地區設定。

InvalidLogDate

無效的記錄日期。

InvalidLogEndTime

無效的記錄結束時間。

InvalidLogId

無效的記錄標識碼。

InvalidLogStartTime

無效的記錄開始時間。

InvalidModel

無效的模型。

InvalidModelUri

無效的模型 URI。

InvalidParameter

無效的參數。

InvalidParameterValue

無效的參數值。

InvalidPayload

承載無效。

InvalidPermissions

無效的許可權。

InvalidPrerequisite

無效的必要條件。

InvalidProductId

無效的產品標識碼。

InvalidProject

無效的專案。

InvalidProjectKind

無效的項目種類。

InvalidRecordingsUri

無效的錄製 URI。

InvalidRequestBodyFormat

要求本文格式無效。

InvalidSasValidityDuration

無效的 sas 有效性持續時間。

InvalidSkipTokenForLogs

記錄的略過令牌無效。

InvalidSubscription

無效的訂用帳戶。

InvalidTest

測試無效。

InvalidTimeToLive

存留時間無效。

InvalidTopForLogs

記錄的頂端無效。

InvalidTranscription

無效的轉譯。

InvalidWebHookEventKind

無效的 Web 攔截事件種類。

MissingInputRecords

遺漏輸入記錄。

ModelDeploymentNotCompleteState

模型部署未完成狀態。

ModelDeprecated

模型已被取代。

ModelExists

模型存在。

ModelMismatch

模型不符。

ModelNotDeployable

模型無法部署。

ModelVersionIncorrect

模型版本不正確。

NoUtf8WithBom

沒有 bom 的 utf8。

OnlyOneOfUrlsOrContainerOrDataset

只有其中一個 URL 或容器或數據集。

ProjectGenderMismatch

專案性別不符。

QuotaViolation

配額違規。

SingleDefaultEndpoint

單一預設端點。

SkuLimitsExist

Sku 限制存在。

SubscriptionNotFound

找不到訂用帳戶。

UnexpectedError

非預期的錯誤。

UnsupportedClassBasedAdaptation

不支援的類別型調整。

UnsupportedDelta

不支持的差異。

UnsupportedDynamicConfiguration

不支援的動態設定。

UnsupportedFilter

不支援的篩選。

UnsupportedLanguageCode

不支援的語言代碼。

UnsupportedOrderBy

不支援的順序。

UnsupportedPagination

不支援的分頁。

UnsupportedTimeRange

不支援的時間範圍。

EntityError

EntityError

名稱 類型 Description
code

string

此錯誤的程序代碼。

message

string

此錯誤的訊息。

EntityReference

EntityReference

名稱 類型 Description
self

string (uri)

參考實體的位置。

Error

錯誤

名稱 類型 Description
code

ErrorCode

ErrorCode
高階錯誤碼。

details

Error[]

關於錯誤和/或預期原則的其他支持詳細數據。

innerError

InnerError

InnerError
符合認知服務 API 指導方針的新內部錯誤格式,可在 取得 https://microsoft.sharepoint.com/%3Aw%3A/t/CognitiveServicesPMO/EUoytcrjuJdKpeOKIK_QRC8BPtUYQpKBi8JsWyeDMRsWlQ?e=CPq8ow。 這包含必要屬性 ErrorCode、訊息和選用屬性目標、詳細資訊 (機碼值組)、內部錯誤 (可為巢狀)。

message

string

高階錯誤訊息。

target

string

錯誤的來源。 例如,如果文件無效,則會是「documents」或「document id」。

ErrorCode

ErrorCode

Description
Conflict

表示衝突錯誤碼。

Forbidden

表示禁止的錯誤碼。

InternalCommunicationFailed

表示內部通訊失敗的錯誤碼。

InternalServerError

表示內部伺服器錯誤碼。

InvalidArgument

表示無效的自變數錯誤碼。

InvalidRequest

表示無效的要求錯誤碼。

NotAllowed

表示不允許的錯誤碼。

NotFound

表示找不到的錯誤碼。

PipelineError

表示管線錯誤碼。

ServiceUnavailable

表示服務無法使用的錯誤碼。

TooManyRequests

表示太多要求錯誤碼。

Unauthorized

表示未經授權的錯誤碼。

UnprocessableEntity

表示無法處理的實體錯誤碼。

UnsupportedMediaType

表示不支援的媒體類型錯誤碼。

InnerError

InnerError

名稱 類型 Description
code

DetailedErrorCode

DetailedErrorCode
詳細的錯誤碼列舉。

details

object

關於錯誤和/或預期原則的其他支持詳細數據。

innerError

InnerError

InnerError
符合認知服務 API 指導方針的新內部錯誤格式,可在 取得 https://microsoft.sharepoint.com/%3Aw%3A/t/CognitiveServicesPMO/EUoytcrjuJdKpeOKIK_QRC8BPtUYQpKBi8JsWyeDMRsWlQ?e=CPq8ow。 這包含必要屬性 ErrorCode、訊息和選用屬性目標、詳細資訊 (機碼值組)、內部錯誤 (可為巢狀)。

message

string

高階錯誤訊息。

target

string

錯誤的來源。 例如,如果文件無效,則會是「documents」或「document id」。

Status

狀態

Description
Failed

長時間執行的作業失敗。

NotStarted

長時間執行的作業尚未啟動。

Running

長時間執行的作業目前正在處理。

Succeeded

長時間執行的作業已順利完成。