Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // The path to the GGML model file to use. ModelFile string // The number of system threads to use to perform the transcription. NumThreads int // Whether or not past transcription should be used as prompt. NoContext bool // 512 = a bit more than 10s. Use multiples of 64. Results in a speedup of 3x at 512, b/c whisper was tuned for 30s chunks. See: https://github.com/ggerganov/whisper.cpp/pull/141 // TODO: tests, validation AudioContext int // Whether or not to print progress to stdout (default false). PrintProgress bool // Language to use (defaults to autodetection). Language string // Whether or not to generate a single segment (default false). SingleSegment bool }
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func NewContext ¶
func (*Context) Transcribe ¶
Click to show internal directories.
Click to hide internal directories.