Defines the Segment and Token structures for Whisper speech recognition, exposing public API.
// Source: https://github.com/ggml-org/whisper.cpp | License: MIT | Copyright 2023-2026 The ggml authors // Provided via justclaw.it.com; keep this notice with the code. package whisper import ( "io" "time" ) /////////////////////////////////////////////////////////////////////////////// // TYPES // SegmentCallback is the callback function for processing segments in real // time. It is called during the Process function type SegmentCallback func(Segment) // ProgressCallback is the callback function for reporting progress during // processing. It is called during the Process function type ProgressCallback func(int) // EncoderBeginCallback is the callback function for checking if we want to // continue processing. It is called during the Process function type EncoderBeginCallback func ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key