Initial commit
This commit is contained in:
24
backend/models/whisper.go
Normal file
24
backend/models/whisper.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package models
|
||||
|
||||
type WhisperResult struct {
|
||||
Language string `json:"language"`
|
||||
Duration float64 `json:"duration"`
|
||||
Segments []Segment `json:"segments"`
|
||||
Text string `json:"text"`
|
||||
}
|
||||
|
||||
type Segment struct {
|
||||
End float64 `json:"end"`
|
||||
ID string `json:"id"`
|
||||
Start float64 `json:"start"`
|
||||
Score float64 `json:"score"`
|
||||
Text string `json:"text"`
|
||||
Words []Word `json:"words"`
|
||||
}
|
||||
|
||||
type Word struct {
|
||||
End float64 `json:"end"`
|
||||
Start float64 `json:"start"`
|
||||
Word string `json:"word"`
|
||||
Score float64 `json:"score"`
|
||||
}
|
||||
Reference in New Issue
Block a user