ggml-org/whisper.cpp

SetMaxTokensPerSegment in go binding causes the segements to end prematurely

Aberta

#984 aberto em 3 de jun. de 2023

 (1 comentário) (1 reação) (0 responsável)C++ (6.074 forks)batch import
buggood first issuehelp wanted

Métricas do repositório

Stars
 (52.968 estrelas)
Métricas de merge de PR
 (Mesclagem média 5d 20h) (36 fundiu PRs em 30d)

Description

When I use context.SetMaxTokensPerSegment and context.NextSegment, it generates incomplete segments. e.g. when tested using the jfk.wav sample, it gives the following output:

wspr_test.go:33: {Text:And so my fellow Americans ask Start:0s End:30s}

when this value is not set, it gives the correct output:

wspr_test.go:33: {Text:And so my fellow Americans ask not what your country can do for you Start:0s End:8s}
wspr_test.go:33: {Text:ask what you can do for your country. Start:8s End:11s}

test case: https://github.com/JackKCWong/go-whisper-test/blob/main/pkg/whisper/wspr_test.go#L29

Guia do colaborador