forked from Manuel/meeting-assistant
fix: unify pyannote validation toggle
This commit is contained in:
@@ -183,10 +183,8 @@ public sealed class WhisperLocalOptions
|
||||
public PyannoteDiarizationOptions Diarization { get; set; } = new();
|
||||
}
|
||||
|
||||
public sealed class PyannoteDiarizationOptions
|
||||
public class PyannoteRuntimeOptions
|
||||
{
|
||||
public bool Enabled { get; set; } = true;
|
||||
|
||||
public string DockerCommand { get; set; } = "docker";
|
||||
|
||||
public string BaseImage { get; set; } = "python:3.11-slim";
|
||||
@@ -210,6 +208,11 @@ public sealed class PyannoteDiarizationOptions
|
||||
public TimeSpan CommandTimeout { get; set; } = TimeSpan.FromMinutes(30);
|
||||
}
|
||||
|
||||
public sealed class PyannoteDiarizationOptions : PyannoteRuntimeOptions
|
||||
{
|
||||
public bool Enabled { get; set; } = true;
|
||||
}
|
||||
|
||||
public sealed class AzureSpeechOptions
|
||||
{
|
||||
public string Endpoint { get; set; } = "";
|
||||
@@ -367,9 +370,8 @@ public sealed class SpeakerIdentityPyannoteValidationOptions
|
||||
|
||||
public double MinimumMatchingKnownSnippetRatio { get; set; } = 0.50;
|
||||
|
||||
public PyannoteDiarizationOptions Diarization { get; set; } = new()
|
||||
public PyannoteRuntimeOptions Diarization { get; set; } = new()
|
||||
{
|
||||
Enabled = true,
|
||||
CommandTimeout = TimeSpan.FromHours(1),
|
||||
AlignmentMode = PyannoteAlignmentMode.PyannoteTurns
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user