forked from sandrohanea/whisper.net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WhisperProcessorOptions.cs
executable file
·86 lines (45 loc) · 2.19 KB
/
WhisperProcessorOptions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
// Licensed under the MIT license: https://opensource.org/licenses/MIT
using Whisper.net.SamplingStrategy;
namespace Whisper.net;
internal sealed class WhisperProcessorOptions
{
public string? OpenVinoModelPath { get; set; }
public string? OpenVinoDevice { get; set; }
public string? OpenVinoCacheDir { get; set; }
public IWhisperSamplingStrategy SamplingStrategy { get; set; } = new GreedySamplingStrategy();
public IntPtr ContextHandle { get; set; }
public int? Threads { get; set; }
public int? MaxLastTextTokens { get; set; }
public TimeSpan? Offset { get; set; }
public TimeSpan? Duration { get; set; }
public bool? Translate { get; set; }
public bool? NoContext { get; set; }
public bool? SingleSegment { get; set; }
public bool? PrintSpecialTokens { get; set; }
public bool? PrintProgress { get; set; } = false;
public bool? PrintResults { get; set; }
public bool? PrintTimestamps { get; set; }
public bool? UseTokenTimestamps { get; set; }
public float? TokenTimestampsThreshold { get; set; }
public float? TokenTimestampsSumThreshold { get; set; }
public int? MaxSegmentLength { get; set; }
public bool? SplitOnWord { get; set; }
public int? MaxTokensPerSegment { get; set; }
public int? AudioContextSize { get; set; }
public string? SuppressRegex { get; set; }
public string? Prompt { get; set; }
public string? Language { get; set; }
public bool? SuppressBlank { get; set; }
public float? Temperature { get; set; }
public float? MaxInitialTs { get; set; }
public float? LengthPenalty { get; set; }
public float? TemperatureInc { get; set; }
public float? EntropyThreshold { get; set; }
public float? LogProbThreshold { get; set; }
public float? NoSpeechThreshold { get; set; }
public List<OnSegmentEventHandler> OnSegmentEventHandlers { get; set; } = [];
public List<OnProgressHandler> OnProgressHandlers { get; set; } = [];
public List<OnEncoderBeginEventHandler> OnEncoderBeginEventHandlers { get; set; } = [];
public WhisperAbortEventHandler? WhisperAbortEventHandler { get; set; }
public bool ComputeProbabilities { get; set; }
}