mirror of
https://github.com/mudler/LocalAI.git
synced 2024-06-07 19:40:48 +00:00
eed5706994
Refactor: channel based llm flow and services split --------- Signed-off-by: Dave Lee <dave@gray101.com>
17 lines
344 B
Go
17 lines
344 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 TranscriptionResult struct {
|
|
Segments []Segment `json:"segments"`
|
|
Text string `json:"text"`
|
|
}
|