C# 클래스 Microsoft.ProjectOxford.SpeakerRecognition.SpeakerVerificationServiceClient

A service client class to perform all the verification service calls.
상속: ISpeakerVerificationServiceClient
파일 보기 프로젝트 열기: Microsoft/ProjectOxford-ClientSDK 1 사용 예제들

공개 메소드들

메소드 설명
CreateProfileAsync ( string locale ) : Task

Creates a new speaker profile asynchronously

DeleteProfileAsync ( System.Guid id ) : System.Threading.Tasks.Task

Deletes a given speaker profile asynchronously

EnrollAsync ( Stream audioStream, System.Guid id ) : Task

Enrolls a new stream asynchronously for a given speaker

GetPhrasesAsync ( string locale ) : Task

Gets a list of all available phrases for enrollments

GetProfileAsync ( System.Guid id ) : Task

Retrieves a given speaker profile as specified by the id param

GetProfilesAsync ( ) : Task

Retrieves all available speaker profiles

ResetEnrollmentsAsync ( System.Guid id ) : System.Threading.Tasks.Task

Deletes all enrollments associated with the given speaker verification profile permanently from the service asynchronously

SpeakerVerificationServiceClient ( string SubscriptionKey ) : Microsoft.ProjectOxford.SpeakerRecognition.Contract

Creates a new service client using a subscription key

VerifyAsync ( Stream audioStream, System.Guid id ) : Task

Verifies a given speaker using the speaker ID and audio stream

메소드 상세

CreateProfileAsync() 공개 메소드

Creates a new speaker profile asynchronously
Thrown in case of internal server error or an invalid locale Thrown in case the connection timed out
public CreateProfileAsync ( string locale ) : Task
locale string The speaker profile locale
리턴 Task

DeleteProfileAsync() 공개 메소드

Deletes a given speaker profile asynchronously
Thrown in case of internal server error, an invalid ID or failure to delete the profile Thrown in case the connection timed out
public DeleteProfileAsync ( System.Guid id ) : System.Threading.Tasks.Task
id System.Guid The ID of the speaker profile to be deleted
리턴 System.Threading.Tasks.Task

EnrollAsync() 공개 메소드

Enrolls a new stream asynchronously for a given speaker
Thrown in case of internal server error, wrong ID or an invalid audio format Thrown in case the connection timed out
public EnrollAsync ( Stream audioStream, System.Guid id ) : Task
audioStream Stream The stream to enroll the speaker profile from
id System.Guid The speaker profile speaker ID
리턴 Task

GetPhrasesAsync() 공개 메소드

Gets a list of all available phrases for enrollments
Thrown in case of invalid locale or internal server error Thrown in case the connection timed out
public GetPhrasesAsync ( string locale ) : Task
locale string The locale of the pharases
리턴 Task

GetProfileAsync() 공개 메소드

Retrieves a given speaker profile as specified by the id param
Thrown in case of internal server error or an invalid ID Thrown in case the connection timed out
public GetProfileAsync ( System.Guid id ) : Task
id System.Guid The speaker profile ID
리턴 Task

GetProfilesAsync() 공개 메소드

Retrieves all available speaker profiles
Thrown in case of internal server error Thrown in case the connection timed out
public GetProfilesAsync ( ) : Task
리턴 Task

ResetEnrollmentsAsync() 공개 메소드

Deletes all enrollments associated with the given speaker verification profile permanently from the service asynchronously
Thrown in case of invalid ID, failure to reset the profile or an internal server error Thrown in case the connection timed out
public ResetEnrollmentsAsync ( System.Guid id ) : System.Threading.Tasks.Task
id System.Guid The speaker ID
리턴 System.Threading.Tasks.Task

SpeakerVerificationServiceClient() 공개 메소드

Creates a new service client using a subscription key
public SpeakerVerificationServiceClient ( string SubscriptionKey ) : Microsoft.ProjectOxford.SpeakerRecognition.Contract
SubscriptionKey string The subscription key
리턴 Microsoft.ProjectOxford.SpeakerRecognition.Contract

VerifyAsync() 공개 메소드

Verifies a given speaker using the speaker ID and audio stream
Thrown in case of invalid ID, invalid audio format or internal server error Thrown in case the connection timed out
public VerifyAsync ( Stream audioStream, System.Guid id ) : Task
audioStream Stream The stream of audio to be verified
id System.Guid The speaker ID
리턴 Task