Documentation ¶
Index ¶
- type Ability
- type ChatGPTAblt
- type ChatGPTOption
- type ElevenlabsTTSAblt
- type ElevenlabsTTSOption
- type GoogleSTTAb
- type GoogleSTTOption
- type GoogleTTSAblt
- type GoogleTTSOption
- type LLMAblt
- type LLMOption
- type STTAblt
- type STTOption
- type TTSAblt
- type TTSOption
- type TaggedItem
- type WhisperOption
- type WhisperSTTAb
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ability ¶
type Ability struct { Demo bool `json:"demo"` LLM LLMAblt `json:"llm"` TTS TTSAblt `json:"tts"` STT STTAblt `json:"stt"` }
Ability guide clients in adjusting all parameters.
type ChatGPTAblt ¶
type ChatGPTOption ¶
type ChatGPTOption struct { Model string `json:"model"` MaxTokens int `json:"maxTokens"` Temperature float32 `json:"temperature"` TopP float32 `json:"topP"` PresencePenalty float32 `json:"presencePenalty"` FrequencyPenalty float32 `json:"frequencyPenalty"` }
func DefaultChatGPTOption ¶
func DefaultChatGPTOption() *ChatGPTOption
type ElevenlabsTTSAblt ¶
type ElevenlabsTTSAblt struct { Available bool `json:"available"` Voices []TaggedItem `json:"voices"` }
type ElevenlabsTTSOption ¶
type GoogleSTTAb ¶
type GoogleSTTAb struct { Available bool `json:"available"` Recognizers []TaggedItem `json:"recognizers"` }
type GoogleSTTOption ¶
type GoogleTTSAblt ¶
type GoogleTTSAblt struct { Available bool `json:"available"` Voices []TaggedItem `json:"voices"` }
type GoogleTTSOption ¶
type GoogleTTSOption struct { // if VoiceId is provided, LanguageCode and Gender will not be used VoiceId string `json:"voiceId"` LanguageCode string `json:"languageCode"` Gender texttospeechpb.SsmlVoiceGender `json:"gender"` SpeakingRate float64 `json:"speakingRate"` Pitch float64 `json:"pitch"` VolumeGainDb float64 `json:"volumeGainDb"` }
type LLMAblt ¶
type LLMAblt struct { Available bool `json:"available"` ChatGPT ChatGPTAblt `json:"chatGPT"` }
type LLMOption ¶
type LLMOption struct {
ChatGPT *ChatGPTOption `json:"chatGPT"`
}
LLMOption clients use TalkOption to guide LLMAblt in generating text
type STTAblt ¶
type STTAblt struct { Available bool `json:"available"` Whisper WhisperSTTAb `json:"whisper"` Google GoogleSTTAb `json:"google"` }
type STTOption ¶
type STTOption struct { Whisper *WhisperOption `json:"whisper"` Google *GoogleSTTOption `json:"google"` }
type TTSAblt ¶
type TTSAblt struct { Available bool `json:"available"` Google GoogleTTSAblt `json:"google"` Elevenlabs ElevenlabsTTSAblt `json:"elevenlabs"` }
type TTSOption ¶
type TTSOption struct { Elevenlabs *ElevenlabsTTSOption `json:"elevenlabs"` Google *GoogleTTSOption `json:"google"` }
type TaggedItem ¶
type WhisperOption ¶
type WhisperOption struct {
Model string `json:"model"`
}
type WhisperSTTAb ¶
Click to show internal directories.
Click to hide internal directories.