mirror of
https://github.com/mudler/LocalAI
synced 2026-04-21 13:27:21 +00:00
19 lines
570 B
Go
19 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"`
|
|
}
|