Text Independent - Verify Profile
プロファイルの確認
入力オーディオに対して既存のプロファイルを検証します。
制限事項:
- オーディオ入力の最小長は 1 秒です
- オーディオ入力の最大長は 120 秒です
- 有効な音声の最小長 (無音やその他の "非音声" フレームを除く) は 4 秒 です。この制限は、"ignoreMinLength" を true に設定することで無効にすることができます。
- 最小オーディオ信号対ノイズ比 (SNR) は 2dB です
POST {endpoint}/speaker-recognition/verification/text-independent/profiles/{profileId}:verify?api-version=2021-09-05
POST {endpoint}/speaker-recognition/verification/text-independent/profiles/{profileId}:verify?api-version=2021-09-05&ignoreMinLength={ignoreMinLength}
URI パラメーター
名前 | / | 必須 | 型 | 説明 |
---|---|---|---|---|
endpoint
|
path | True |
string |
サポートされている Cognitive Services エンドポイント (プロトコルとホスト名など)。 https://westus.api.cognitive.microsoft.com |
profile
|
path | True |
string uuid |
プロファイル ID (guid) の一意識別子。 |
api-version
|
query | True |
string |
この要求に使用する操作のバージョンを指定します。 |
ignore
|
query |
boolean |
true の場合、指定または保存される音声の量に関係なく、このプロファイルに対して音声印刷がすぐに作成されます。 既定値は false です。 |
要求ヘッダー
Media Types: "audio/wav; codecs=audio/pcm"
名前 | 必須 | 型 | 説明 |
---|---|---|---|
Ocp-Apim-Subscription-Key | True |
string |
要求本文
Media Types: "audio/wav; codecs=audio/pcm"
名前 | 型 | 説明 |
---|---|---|
audioData |
object |
バイナリ オーディオ ファイル。 サポートされている形式はオーディオ/wav です。codecs=audio/pcm。 最大 5 MB のオーディオをサポートします。 |
応答
名前 | 型 | 説明 |
---|---|---|
200 OK |
OK |
|
Other Status Codes |
障害 Headers x-ms-error-code: string |
セキュリティ
Ocp-Apim-Subscription-Key
Type:
apiKey
In:
header
例
Successful Query
Sample Request
POST https://westus.api.cognitive.microsoft.com/speaker-recognition/verification/text-independent/profiles/49a36324-fc4b-4387-aa06-090cfbf0064f:verify?api-version=2021-09-05
"{binary file date}"
Sample Response
Content-Type: application/json
{
"recognitionResult": "accept",
"score": 0.63
}
Content-Type: application/json
x-ms-error-code: Error Code
{
"error": {
"code": "Error Code",
"message": "Erro Messae"
}
}
定義
名前 | 説明 |
---|---|
Error | |
Recognition |
話者認識の結果 |
Result |
オーディオはターゲット プロファイルに属していますか? |
Speaker |
話者のエラー メッセージ |
Error
名前 | 型 | 説明 |
---|---|---|
code |
string |
|
message |
string |
RecognitionInfo
話者認識の結果
名前 | 型 | 説明 |
---|---|---|
recognitionResult |
オーディオはターゲット プロファイルに属していますか? |
|
score |
number |
入力オーディオと対象の音声印刷の類似性を示す浮動小数点数。 この数値は 0 から 1 の間である必要があります。 数値が大きいほど、類似性が高くなります。 |
ResultType
オーディオはターゲット プロファイルに属していますか?
名前 | 型 | 説明 |
---|---|---|
accept |
string |
|
reject |
string |
SpeakerErrorInfo
話者のエラー メッセージ
名前 | 型 | 説明 |
---|---|---|
error |