mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-19 12:47:54 +00:00
cc060a283d
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
17 lines
331 B
Go
17 lines
331 B
Go
package schema
|
|
|
|
import "time"
|
|
|
|
type Segment struct {
|
|
Id int `json:"id"`
|
|
Start time.Duration `json:"start"`
|
|
End time.Duration `json:"end"`
|
|
Text string `json:"text"`
|
|
Tokens []int `json:"tokens"`
|
|
}
|
|
|
|
type Result struct {
|
|
Segments []Segment `json:"segments"`
|
|
Text string `json:"text"`
|
|
}
|