mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-08-24 04:15:48 +02:00
go : exposed various parts to the Go Interface (#697)
This commit is contained in:
@@ -105,6 +105,10 @@ func (p *Params) SetMaxSegmentLength(n int) {
|
||||
p.max_len = C.int(n)
|
||||
}
|
||||
|
||||
func (p *Params) SetTokenTimestamps(b bool) {
|
||||
p.token_timestamps = toBool(b)
|
||||
}
|
||||
|
||||
// Set max tokens per segment (0 = no limit)
|
||||
func (p *Params) SetMaxTokensPerSegment(n int) {
|
||||
p.max_tokens = C.int(n)
|
||||
|
Reference in New Issue
Block a user