LocalAI/core/schema/transcription.go
Dave Lee c1f30ba3a9
squash past, centralize request middleware PR
Signed-off-by: Dave Lee <dave@gray101.com>
2025-02-05 14:14:10 -05:00

16 lines
383 B
Go

package schema
import "time"
type TranscriptionSegment struct {
Id int `json:"id"`
Start time.Duration `json:"start"`
End time.Duration `json:"end"`
Text string `json:"text"`
Tokens []int `json:"tokens"`
}
type TranscriptionResult struct {
Segments []TranscriptionSegment `json:"segments"`
Text string `json:"text"`
}