Documentation
¶
Index ¶
- type AzureLLM
- type AzureSTT
- func (s *AzureSTT) Capabilities() stt.STTCapabilities
- func (s *AzureSTT) Label() string
- func (s *AzureSTT) Recognize(ctx context.Context, frames []*model.AudioFrame, languageStr string) (*stt.SpeechEvent, error)
- func (s *AzureSTT) Stream(ctx context.Context, language string) (stt.RecognizeStream, error)
- type AzureTTS
- func (t *AzureTTS) Capabilities() tts.TTSCapabilities
- func (t *AzureTTS) Label() string
- func (t *AzureTTS) NumChannels() int
- func (t *AzureTTS) SampleRate() int
- func (t *AzureTTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)
- func (t *AzureTTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureLLM ¶ added in v0.0.10
type AzureLLM struct {
// contains filtered or unexported fields
}
AzureLLM implements llm.LLM using the Azure OpenAI Service REST API. It leverages the go-openai client with an Azure-compatible configuration.
func NewAzureLLM ¶ added in v0.0.10
NewAzureLLM creates an AzureLLM using the Azure OpenAI endpoint.
Parameters:
- apiKey: Azure OpenAI API key (from Azure portal)
- endpoint: Azure resource endpoint, e.g. "https://<resource>.openai.azure.com/"
- deployment: Deployment name configured in Azure (e.g. "gpt-4o")
- apiVersion: Azure OpenAI API version, e.g. "2024-02-01"
type AzureSTT ¶
type AzureSTT struct {
// contains filtered or unexported fields
}
func (*AzureSTT) Capabilities ¶
func (s *AzureSTT) Capabilities() stt.STTCapabilities
type AzureTTS ¶
type AzureTTS struct {
// contains filtered or unexported fields
}
func NewAzureTTS ¶
func (*AzureTTS) Capabilities ¶
func (t *AzureTTS) Capabilities() tts.TTSCapabilities
func (*AzureTTS) NumChannels ¶
func (*AzureTTS) SampleRate ¶
func (*AzureTTS) Synthesize ¶
Click to show internal directories.
Click to hide internal directories.