Documentation
¶
Index ¶
- func HandleSpeech(c echo.Context, options mo.Option[types.SpeechRequestOptions]) mo.Result[any]
- func HandleVoices(c echo.Context, options mo.Option[types.VoicesRequestOptions]) mo.Result[any]
- type ListVoicesResponse
- type Voice
- type VoiceFineTuning
- type VoiceLabelKey
- type VoiceSample
- type VoiceSettingsKey
- type VoiceVerifiedLanguage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleSpeech ¶
func HandleVoices ¶
Types ¶
type ListVoicesResponse ¶
type ListVoicesResponse struct {
Voices []Voice `json:"voices"`
}
type Voice ¶
type Voice struct { VoiceID string `json:"voice_id"` Name string `json:"name"` Category string `json:"category"` Labels map[VoiceLabelKey]string `json:"labels"` AvailableForTiers []string `json:"available_for_tiers"` HighQualityBaseModelIds []string `json:"high_quality_base_model_ids"` Samples []VoiceSample `json:"samples"` FineTuning VoiceFineTuning `json:"fine_tuning"` Description string `json:"description"` PreviewURL string `json:"preview_url"` Settings map[VoiceSettingsKey]any `json:"settings"` VerifiedLanguages []VoiceVerifiedLanguage `json:"verified_languages"` SafetyControl string `json:"safety_control"` }
type VoiceFineTuning ¶
type VoiceFineTuning struct { IsAllowedToFineTune bool `json:"is_allowed_to_fine_tune"` State struct { ElevenMultilingualV2 string `json:"eleven_multilingual_v2"` } `json:"state"` VerificationFailures []string `json:"verification_failures"` VerificationAttemptsCount int `json:"verification_attempts_count"` ManualVerificationRequested bool `json:"manual_verification_requested"` }
type VoiceLabelKey ¶
type VoiceLabelKey = string
const ( VoiceLabelKeyAccent VoiceLabelKey = "accent" VoiceLabelKeyAge VoiceLabelKey = "age" VoiceLabelKeyGender VoiceLabelKey = "gender" VoiceLabelKeyUseCase VoiceLabelKey = "use_case" VoiceLabelKeyDescription VoiceLabelKey = "description" )
type VoiceSample ¶
type VoiceSettingsKey ¶
type VoiceSettingsKey = string
const ( VoiceSettingKeyStability VoiceSettingsKey = "stability" VoiceSettingKeySimilarityBoost VoiceSettingsKey = "similarity_boost" VoiceSettingKeyStyle VoiceSettingsKey = "style" VoiceSettingKeyUseSpeakerBoost VoiceSettingsKey = "use_speaker_boost" VoiceSettingKeySpeed VoiceSettingsKey = "speed" )
type VoiceVerifiedLanguage ¶
Click to show internal directories.
Click to hide internal directories.