@@ -38,20 +38,22 @@ type Context interface {
38
38
IsMultilingual () bool // Return true if the model is multilingual.
39
39
Language () string // Get language
40
40
41
- SetOffset (time.Duration ) // Set offset
42
- SetDuration (time.Duration ) // Set duration
43
- SetThreads (uint ) // Set number of threads to use
44
- SetSplitOnWord (bool ) // Set split on word flag
45
- SetTokenThreshold (float32 ) // Set timestamp token probability threshold
46
- SetTokenSumThreshold (float32 ) // Set timestamp token sum probability threshold
47
- SetMaxSegmentLength (uint ) // Set max segment length in characters
48
- SetTokenTimestamps (bool ) // Set token timestamps flag
49
- SetMaxTokensPerSegment (uint ) // Set max tokens per segment (0 = no limit)
50
- SetAudioCtx (uint ) // Set audio encoder context
51
- SetMaxContext (n int ) // Set maximum number of text context tokens to store
52
- SetBeamSize (n int ) // Set Beam Size
53
- SetEntropyThold (t float32 ) // Set Entropy threshold
54
- SetInitialPrompt (prompt string ) // Set initial prompt
41
+ SetOffset (time.Duration ) // Set offset
42
+ SetDuration (time.Duration ) // Set duration
43
+ SetThreads (uint ) // Set number of threads to use
44
+ SetSplitOnWord (bool ) // Set split on word flag
45
+ SetTokenThreshold (float32 ) // Set timestamp token probability threshold
46
+ SetTokenSumThreshold (float32 ) // Set timestamp token sum probability threshold
47
+ SetMaxSegmentLength (uint ) // Set max segment length in characters
48
+ SetTokenTimestamps (bool ) // Set token timestamps flag
49
+ SetMaxTokensPerSegment (uint ) // Set max tokens per segment (0 = no limit)
50
+ SetAudioCtx (uint ) // Set audio encoder context
51
+ SetMaxContext (n int ) // Set maximum number of text context tokens to store
52
+ SetBeamSize (n int ) // Set Beam Size
53
+ SetEntropyThold (t float32 ) // Set Entropy threshold
54
+ SetInitialPrompt (prompt string ) // Set initial prompt
55
+ SetTemperature (t float32 ) // Set temperature
56
+ SetTemperatureFallback (t float32 ) // Set temperature incrementation
55
57
56
58
// Process mono audio data and return any errors.
57
59
// If defined, newly generated segments are passed to the
0 commit comments