Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CapturedAudio ¶
type CapturedSample ¶
type Document ¶
type Document struct { Transcriptions []*Transcription `json:"transcriptions"` StartedAt int64 `json:"startedAt"` }
func (*Document) CloneFinal ¶
func (*Document) Update ¶
func (d *Document) Update(transcription *Transcription)
type Emitters ¶
type Emitters struct { CapturedSample chan<- *CapturedSample CapturedAudio chan<- *CapturedAudio Transcription chan<- *Transcription }
type Listeners ¶
type Listeners struct { DraftDocument chan<- Document FinalDocument chan<- Document CapturedAudio chan<- *CapturedAudio CapturedSample chan<- *CapturedSample Status chan<- *Status }
type MiddlewareFunc ¶
type Participant ¶
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
func (*Router) InstallMiddleware ¶
func (r *Router) InstallMiddleware(middlewares ...MiddlewareFunc) error
func (*Router) WaitForDone ¶
func (r *Router) WaitForDone()
type Status ¶
type Status struct {
Participants *[]Participant
}
type Transcription ¶
type Transcription struct { ID string `json:"id"` AudioSources []*CapturedAudio `json:"audio"` Final bool `json:"final"` StartTimestamp uint64 `json:"start"` EndTimestamp uint64 `json:"end"` TranscriptSources []*Transcription `json:"-"` Language string `json:"language"` LanguageProbability float32 `json:"language_prob"` Duration float32 `json:"duration"` AllLanguageProbs *map[string]float32 `json:"all_language_probs,omitempty"` Segments []TranscriptionSegment `json:"segments"` }
type TranscriptionRequest ¶
type TranscriptionRequest struct { Audio *Audio `json:"audio,omitempty"` Text *string `json:"text,omitempty"` Task string `json:"task"` SourceLanguage *string `json:"source_language,omitempty"` TargetLanguage *string `json:"target_language,omitempty"` Segments *[]TranscriptionSegment `json:"segments,omitempty"` }
type TranscriptionResponse ¶
type TranscriptionResponse struct { TargetLanguage string `json:"target_language"` SourceLanguage string `json:"source_language"` SourceLanguageProbability float32 `json:"source_language_prob"` Duration float32 `json:"duration"` AllLanguageProbs *map[string]float32 `json:"all_language_probs,omitempty"` Segments []TranscriptionSegment `json:"segments"` }
type TranscriptionSegment ¶
type TranscriptionSegment struct { ID uint32 `json:"id"` Seek uint32 `json:"seek"` Start float32 `json:"start"` End float32 `json:"end"` Text string `json:"text"` Temperature float32 `json:"temperature"` AvgLogprob float32 `json:"avg_logprob"` CompressionRatio float32 `json:"compression_ratio"` NoSpeechProb float32 `json:"no_speech_prob"` Words []Word `json:"words"` Speaker string `json:"speaker"` IsAssistant bool `json:"is_assistant"` }
Click to show internal directories.
Click to hide internal directories.