whisper.cpp/bindings/go/pkg/whisper
Bo-Yi Wu 7dfc11843c
go : improve progress reporting and callback handling (#1024)
- Rename `cb` to `callNewSegment` in the `Process` function
- Add `callProgress` as a new parameter to the `Process` function
- Introduce `ProgressCallback` type for reporting progress during processing
- Update `Whisper_full` function to include `progressCallback` parameter
- Add `registerProgressCallback` function and `cbProgress` map for handling progress callbacks

Signed-off-by: appleboy <appleboy.tw@gmail.com>
2023-06-25 14:07:55 +03:00
..
consts.go go : adding features to the go-whisper example, go ci, etc (#384) 2023-01-07 21:21:43 +02:00
context.go go : improve progress reporting and callback handling (#1024) 2023-06-25 14:07:55 +03:00
context_test.go go : run go mod tidy before building examples + fix permissions (#296) 2022-12-22 16:34:20 +02:00
doc.go go : run go mod tidy before building examples + fix permissions (#296) 2022-12-22 16:34:20 +02:00
interface.go go : improve progress reporting and callback handling (#1024) 2023-06-25 14:07:55 +03:00
model.go go : NewContext now returns a clean context (#537) 2023-03-05 20:50:25 +02:00