Public Access
This commit is contained in:
@@ -38,6 +38,12 @@ public sealed record SpeakerIdentityMatchCandidate(
|
||||
|
||||
public sealed record SpeakerIdentityMatch(int IdentityId);
|
||||
|
||||
public sealed record SpeakerIdentityMatchValidationRequest(
|
||||
string DiarizedSpeaker,
|
||||
int IdentityId,
|
||||
byte[] UnknownSnippet,
|
||||
IReadOnlyList<byte[]> KnownSnippets);
|
||||
|
||||
public interface ISpeakerIdentityMatcher
|
||||
{
|
||||
Task<SpeakerIdentityMatch?> MatchAsync(
|
||||
@@ -45,6 +51,17 @@ public interface ISpeakerIdentityMatcher
|
||||
CancellationToken cancellationToken);
|
||||
}
|
||||
|
||||
public interface ISpeakerIdentityMatchValidator
|
||||
{
|
||||
Task<bool> ValidateSampleAsync(
|
||||
byte[] wavBytes,
|
||||
CancellationToken cancellationToken);
|
||||
|
||||
Task<bool> ValidateMatchAsync(
|
||||
SpeakerIdentityMatchValidationRequest request,
|
||||
CancellationToken cancellationToken);
|
||||
}
|
||||
|
||||
public interface ISpeakerSnippetExtractor
|
||||
{
|
||||
Task<byte[]> ExtractSnippetAsync(
|
||||
|
||||
Reference in New Issue
Block a user