クラス Speaker::SpeakerRecognitionResult

話者認識の結果を表します。 1.12.0 で追加されました。

メンバー

ResultId

構文: public const std::string & ResultId;

一意の結果 ID。

理由

構文: public const ResultReason & Reason;

話者認識結果の理由。

ProfileId

構文: public const std::string & ProfileId;

最初の検証済み/識別された話者のプロファイル ID。 認識された話者の残りの部分は、 [プロパティ] で json 結果文字列を解析することで取得できます。

プロパティ

構文: public constPropertyCollection & Properties;

追加のプロパティのコレクション。

SpeakerRecognitionResult

構文: public inline explicit SpeakerRecognitionResult ( SPXRESULTHANDLE hresult );

指定されたハンドルを使用して新しいインスタンスを作成します。

パラメーター

  • hresult 結果ハンドル。

演算子 SPXRESULTHANDLE

構文: public inline explicit operator SPXRESULTHANDLE ( );

明示的な変換演算子。

戻り値

ハンドル。

~SpeakerRecognitionResult

構文: public inline ~SpeakerRecognitionResult ( );

デストラクターです。

GetScore

構文: public inline double GetScore ( ) const;

類似スコアを返します。

戻り値

入力オーディオと対象の音声プロファイルの類似性を示す浮動小数点数。この数値は 0 から 1 の間です。 数値が大きいほど、類似性が高くなります。< /返します>