audio_pipeline
This commit is contained in:
34
workers/transcribe/internal/models/models.go
Normal file
34
workers/transcribe/internal/models/models.go
Normal file
@@ -0,0 +1,34 @@
|
||||
package models
|
||||
|
||||
type AudioTask struct {
|
||||
TaskID string `json:"task_id"`
|
||||
FilePath string `json:"file_path"`
|
||||
Filename string `json:"filename"`
|
||||
Size int64 `json:"size"`
|
||||
CreatedAt int64 `json:"created_at"`
|
||||
}
|
||||
|
||||
type Segment struct {
|
||||
Start float64 `json:"start"`
|
||||
End float64 `json:"end"`
|
||||
Text string `json:"text"`
|
||||
}
|
||||
|
||||
type Prompt struct {
|
||||
ID int `json:"id"`
|
||||
IDSection int `json:"id_section"`
|
||||
Name string `json:"name"`
|
||||
Prompt string `json:"prompt"`
|
||||
DtCreate string `json:"dt_create"`
|
||||
}
|
||||
|
||||
type TranscriptionResult struct {
|
||||
TaskID string `json:"task_id"`
|
||||
Filename string `json:"filename"`
|
||||
FilePath string `json:"file_path"`
|
||||
Transcription string `json:"transcription"`
|
||||
Language string `json:"language"`
|
||||
Segments []Segment `json:"segments,omitempty"`
|
||||
Prompts []Prompt `json:"prompts"`
|
||||
TranscribedAt int64 `json:"transcribed_at"`
|
||||
}
|
||||
Reference in New Issue
Block a user