mirror of
https://github.com/mudler/LocalAI.git
synced 2025-06-27 21:24:59 +00:00
16 lines
383 B
Go
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"`
|
|
}
|