Files
LocalAI/core/schema/transcription.go
2026-04-14 16:13:40 +02:00

20 lines
570 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"`
Speaker string `json:"speaker,omitempty"`
}
type TranscriptionResult struct {
Segments []TranscriptionSegment `json:"segments,omitempty"`
Text string `json:"text"`
Language string `json:"language,omitempty"`
Duration float64 `json:"duration,omitempty"`
}