Documentation
¶
Overview ¶
Package gladia provides a Gladia AI speech-to-text provider for the Go AI SDK. Gladia offers advanced speech recognition with async processing and multi-language support.
Index ¶
- type Config
- type Provider
- func (p *Provider) EmbeddingModel(modelID string) (provider.EmbeddingModel, error)
- func (p *Provider) ImageModel(modelID string) (provider.ImageModel, error)
- func (p *Provider) LanguageModel(modelID string) (provider.LanguageModel, error)
- func (p *Provider) Name() string
- func (p *Provider) RerankingModel(modelID string) (provider.RerankingModel, error)
- func (p *Provider) SpeechModel(modelID string) (provider.SpeechModel, error)
- func (p *Provider) TranscriptionModel(modelID string) (provider.TranscriptionModel, error)
- type TranscriptionModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// API key for authentication
APIKey string
// Base URL for the Gladia API (optional, defaults to production)
BaseURL string
}
Config holds configuration for the Gladia provider
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider represents the Gladia AI provider
func (*Provider) EmbeddingModel ¶
func (p *Provider) EmbeddingModel(modelID string) (provider.EmbeddingModel, error)
EmbeddingModel returns an embedding model (not supported by Gladia)
func (*Provider) ImageModel ¶
func (p *Provider) ImageModel(modelID string) (provider.ImageModel, error)
ImageModel returns an image model (not supported by Gladia)
func (*Provider) LanguageModel ¶
func (p *Provider) LanguageModel(modelID string) (provider.LanguageModel, error)
LanguageModel returns a language model (not supported by Gladia)
func (*Provider) RerankingModel ¶
func (p *Provider) RerankingModel(modelID string) (provider.RerankingModel, error)
RerankingModel returns a reranking model (not supported by Gladia)
func (*Provider) SpeechModel ¶
func (p *Provider) SpeechModel(modelID string) (provider.SpeechModel, error)
SpeechModel returns a speech synthesis model (not supported by Gladia)
func (*Provider) TranscriptionModel ¶
func (p *Provider) TranscriptionModel(modelID string) (provider.TranscriptionModel, error)
TranscriptionModel returns a speech-to-text model
type TranscriptionModel ¶
type TranscriptionModel struct {
// contains filtered or unexported fields
}
TranscriptionModel represents a Gladia transcription model
func (*TranscriptionModel) DoTranscribe ¶
func (m *TranscriptionModel) DoTranscribe(ctx context.Context, opts *provider.TranscriptionOptions) (*types.TranscriptionResult, error)
DoTranscribe performs speech-to-text transcription
func (*TranscriptionModel) ModelID ¶
func (m *TranscriptionModel) ModelID() string
ModelID returns the model ID
func (*TranscriptionModel) Provider ¶
func (m *TranscriptionModel) Provider() string
Provider returns the provider name
func (*TranscriptionModel) SpecificationVersion ¶
func (m *TranscriptionModel) SpecificationVersion() string
SpecificationVersion returns the specification version