Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssemblyAi ¶
type AssemblyAi interface {
Transcriber
}
func NewAssemblyAi ¶
func NewAssemblyAi(key string) AssemblyAi
type Describer ¶
type Describer interface {
Describe(ctx context.Context, url string) ([]VisionResult, structured_error.StructuredError)
}
func NewAzureVision ¶
type Google ¶
type Google interface {
OCR
Translator
Transcriber
}
type OCR ¶
type OCR interface {
GetOCR(ctx context.Context, url string) (*OCRResult, structured_error.StructuredError)
Close() error
}
type OCRLanguage ¶
type OCRResult ¶
type OCRResult struct {
Text string
Language OCRLanguage
}
type Transcriber ¶
type Transcriber interface {
Transcribe(ctx context.Context, url string) ([]TranscriptionResult, structured_error.StructuredError)
}
type TranscriptionResult ¶
type TranscriptionResult VisionResult
type Translator ¶
type Translator interface {
Translate(ctx context.Context, message string) (language.Tag, string, structured_error.StructuredError)
Close() error
}
type VisionResult ¶
Click to show internal directories.
Click to hide internal directories.