Documentation ¶
Index ¶
- type AddVoiceResponse
- type ExtendedSubscriptionResponseModel
- type FeedbackResponseModel
- type FineTuningResponseModel
- type GetHistoryResponse
- type GetVoicesResponseModel
- type HistoryItemList
- type HistoryPost
- type Invoice
- type Language
- type LanguageResponseModel
- type ModelResponseModel
- type RecordingResponseModel
- type Sample
- type Subscription
- type SynthesisOptions
- type TTS
- type TtsModelResponseModel
- type UserResponseModel
- type ValidationError
- type VerificationAttemptResponseModel
- type Voice
- type VoiceResponseModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddVoiceResponse ¶
type AddVoiceResponse struct {
VoiceID string `json:"voice_id"`
}
type ExtendedSubscriptionResponseModel ¶
type ExtendedSubscriptionResponseModel struct { Tier string `json:"tier"` CharacterCount int32 `json:"character_count"` CharacterLimit int32 `json:"character_limit"` CanExtendCharacterLimit bool `json:"can_extend_character_limit"` AllowedToExtendCharacterLimit bool `json:"allowed_to_extend_character_limit"` NextCharacterCountResetUnix int32 `json:"next_character_count_reset_unix"` VoiceLimit int32 `json:"voice_limit"` ProfessionalVoiceLimit int32 `json:"professional_voice_limit"` CanExtendVoiceLimit bool `json:"can_extend_voice_limit"` CanUseInstantVoiceCloning bool `json:"can_use_instant_voice_cloning"` CanUseProfessionalVoiceCloning bool `json:"can_use_professional_voice_cloning"` AvailableModels []TtsModelResponseModel `json:"available_models"` CanUseDelayedPaymentMethods bool `json:"can_use_delayed_payment_methods"` Currency string `json:"currency"` Status string `json:"status"` NextInvoice Invoice `json:"next_invoice"` }
type FeedbackResponseModel ¶
type FeedbackResponseModel struct { ThumbsUp bool `json:"thumbs_up"` Feedback string `json:"feedback"` Emotions bool `json:"emotions"` InaccurateClone bool `json:"inaccurate_clone"` Glitches bool `json:"glitches"` AudioQuality bool `json:"audio_quality"` Other bool `json:"other"` ReviewStatus string `json:"review_status,omitempty"` }
type FineTuningResponseModel ¶
type FineTuningResponseModel struct { ModelID string `json:"model_id"` IsAllowedToFineTune bool `json:"is_allowed_to_fine_tune"` FineTuningRequested bool `json:"fine_tuning_requested"` FinetuningState string `json:"finetuning_state"` VerificationAttempts []VerificationAttemptResponseModel `json:"verification_attempts"` VerificationFailures []string `json:"verification_failures"` VerificationAttemptsCount int32 `json:"verification_attempts_count"` SliceIds []string `json:"slice_ids"` }
type GetHistoryResponse ¶
type GetHistoryResponse struct {
History []HistoryItemList `json:"history"`
}
type GetVoicesResponseModel ¶
type GetVoicesResponseModel struct {
Voices []VoiceResponseModel `json:"voices"`
}
type HistoryItemList ¶
type HistoryItemList struct { HistoryItemID string `json:"history_item_id"` RequestID string `json:"request_id"` VoiceID string `json:"voice_id"` VoiceName string `json:"voice_name"` Text string `json:"text"` DateUnix int32 `json:"date_unix"` CharacterCountChangeFrom int32 `json:"character_count_change_from"` CharacterCountChangeTo int32 `json:"character_count_change_to"` ContentType string `json:"content_type"` State string `json:"state"` Settings *interface{} `json:"settings"` Feedback *FeedbackResponseModel `json:"feedback"` }
type HistoryPost ¶
type HistoryPost struct {
HistoryItemIds []string `json:"history_item_ids"`
}
type LanguageResponseModel ¶
type ModelResponseModel ¶
type ModelResponseModel struct { ModelID string `json:"model_id"` Name string `json:"name"` Description string `json:"description"` CanBeFinetuned bool `json:"can_be_finetuned"` CanDoTextToSpeech bool `json:"can_do_text_to_speech"` CanDoVoiceConversion bool `json:"can_do_voice_conversion"` TokenCostFactor float64 `json:"token_cost_factor"` Languages []Language `json:"languages"` }
type RecordingResponseModel ¶
type Subscription ¶
type Subscription struct { Tier string `json:"tier"` CharacterCount int32 `json:"character_count"` CharacterLimit int32 `json:"character_limit"` CanExtendCharacterLimit bool `json:"can_extend_character_limit"` AllowedToExtendCharacterLimit bool `json:"allowed_to_extend_character_limit"` NextCharacterCountResetUnix int32 `json:"next_character_count_reset_unix"` VoiceLimit int32 `json:"voice_limit"` ProfessionalVoiceLimit int32 `json:"professional_voice_limit"` CanExtendVoiceLimit bool `json:"can_extend_voice_limit"` CanUseInstantVoiceCloning bool `json:"can_use_instant_voice_cloning"` CanUseProfessionalVoiceCloning bool `json:"can_use_professional_voice_cloning"` AvailableModels []TtsModelResponseModel `json:"available_models"` CanUseDelayedPaymentMethods bool `json:"can_use_delayed_payment_methods"` Currency string `json:"currency"` Status string `json:"status"` }
type SynthesisOptions ¶
type SynthesisOptions struct { Stability float64 `json:"stability"` SimilarityBoost float64 `json:"similarity_boost"` Format string `json:"format"` Style float64 `json:"style"` }
func (*SynthesisOptions) Clamp ¶
func (so *SynthesisOptions) Clamp()
type TTS ¶
type TTS struct { ModelID string `json:"model_id"` Text string `json:"text"` // The text that will get converted into speech. Currently only English text is supported. VoiceSettings SynthesisOptions `json:"voice_settings,omitempty"` // Voice settings are applied only on the given TTS request. }
type TtsModelResponseModel ¶
type TtsModelResponseModel struct { ModelID string `json:"model_id"` DisplayName string `json:"display_name"` SupportedLanguage []LanguageResponseModel `json:"supported_language"` }
type UserResponseModel ¶
type UserResponseModel struct { Subscription Subscription `json:"subscription"` IsNewUser bool `json:"is_new_user"` XiAPIKey string `json:"xi_api_key"` }
type ValidationError ¶
type ValidationError struct { Loc any `json:"loc"` Msg string `json:"msg"` Type_ string `json:"type"` }
func (ValidationError) Error ¶
func (ve ValidationError) Error() string
type Voice ¶
type Voice struct { Name string `json:"name"` // The name that identifies this voice. This will be displayed in the dropdown of the website. Files []*os.File `json:"files,omitempty"` // Audio files to add to the voice Description string `json:"description,omitempty"` // How would you describe the voice? Labels string `json:"labels,omitempty"` // Serialized labels dictionary for the voice. }
type VoiceResponseModel ¶
type VoiceResponseModel struct { VoiceID string `json:"voice_id"` Name string `json:"name"` Samples []Sample `json:"samples"` Category string `json:"category"` FineTuning FineTuningResponseModel `json:"fine_tuning"` Labels map[string]string `json:"labels"` Description string `json:"description"` PreviewURL string `json:"preview_url"` AvailableForTiers []string `json:"available_for_tiers"` Settings SynthesisOptions `json:"settings"` }
Click to show internal directories.
Click to hide internal directories.