Documentation ¶
Overview ¶
Package elevenlabs provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.13.0 DO NOT EDIT.
Package elevenlabs provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.13.0 DO NOT EDIT.
Index ¶
- func NewAddVoiceV1VoicesAddPostRequestWithBody(server string, params *AddVoiceV1VoicesAddPostParams, contentType string, ...) (*http.Request, error)
- func NewDeleteHistoryItemV1HistoryHistoryItemIdDeleteRequest(server string, historyItemId string, ...) (*http.Request, error)
- func NewDeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteRequest(server string, voiceId string, sampleId string, ...) (*http.Request, error)
- func NewDeleteVoiceV1VoicesVoiceIdDeleteRequest(server string, voiceId string, params *DeleteVoiceV1VoicesVoiceIdDeleteParams) (*http.Request, error)
- func NewDownloadHistoryItemsV1HistoryDownloadPostRequest(server string, params *DownloadHistoryItemsV1HistoryDownloadPostParams, ...) (*http.Request, error)
- func NewDownloadHistoryItemsV1HistoryDownloadPostRequestWithBody(server string, params *DownloadHistoryItemsV1HistoryDownloadPostParams, ...) (*http.Request, error)
- func NewEditVoiceSettingsV1VoicesVoiceIdSettingsEditPostRequest(server string, voiceId string, ...) (*http.Request, error)
- func NewEditVoiceSettingsV1VoicesVoiceIdSettingsEditPostRequestWithBody(server string, voiceId string, ...) (*http.Request, error)
- func NewEditVoiceV1VoicesVoiceIdEditPostRequestWithBody(server string, voiceId string, params *EditVoiceV1VoicesVoiceIdEditPostParams, ...) (*http.Request, error)
- func NewGetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGetRequest(server string, historyItemId string, ...) (*http.Request, error)
- func NewGetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGetRequest(server string, voiceId string, sampleId string, ...) (*http.Request, error)
- func NewGetDefaultVoiceSettingsV1VoicesSettingsDefaultGetRequest(server string) (*http.Request, error)
- func NewGetGeneratedItemsV1HistoryGetRequest(server string, params *GetGeneratedItemsV1HistoryGetParams) (*http.Request, error)
- func NewGetHistoryItemByIDV1HistoryHistoryItemIdGetRequest(server string, historyItemId string, ...) (*http.Request, error)
- func NewGetModelsV1ModelsGetRequest(server string, params *GetModelsV1ModelsGetParams) (*http.Request, error)
- func NewGetUserInfoV1UserGetRequest(server string, params *GetUserInfoV1UserGetParams) (*http.Request, error)
- func NewGetUserSubscriptionInfoV1UserSubscriptionGetRequest(server string, params *GetUserSubscriptionInfoV1UserSubscriptionGetParams) (*http.Request, error)
- func NewGetVoiceSettingsV1VoicesVoiceIdSettingsGetRequest(server string, voiceId string, ...) (*http.Request, error)
- func NewGetVoiceV1VoicesVoiceIdGetRequest(server string, voiceId string, params *GetVoiceV1VoicesVoiceIdGetParams) (*http.Request, error)
- func NewGetVoicesV1VoicesGetRequest(server string, params *GetVoicesV1VoicesGetParams) (*http.Request, error)
- func NewTextToSpeechV1TextToSpeechVoiceIdPostRequest(server string, voiceId string, ...) (*http.Request, error)
- func NewTextToSpeechV1TextToSpeechVoiceIdPostRequestWithBody(server string, voiceId string, ...) (*http.Request, error)
- func NewTextToSpeechV1TextToSpeechVoiceIdStreamPostRequest(server string, voiceId string, ...) (*http.Request, error)
- func NewTextToSpeechV1TextToSpeechVoiceIdStreamPostRequestWithBody(server string, voiceId string, ...) (*http.Request, error)
- type AddVoiceResponseModel
- type AddVoiceV1VoicesAddPostMultipartRequestBody
- type AddVoiceV1VoicesAddPostParams
- type AddVoiceV1VoicesAddPostResponse
- type BodyAddVoiceV1VoicesAddPost
- type BodyDownloadHistoryItemsV1HistoryDownloadPost
- type BodyEditVoiceV1VoicesVoiceIdEditPost
- type BodyTextToSpeechV1TextToSpeechVoiceIdPost
- type BodyTextToSpeechV1TextToSpeechVoiceIdStreamPost
- type Client
- func (c *Client) AddVoiceV1VoicesAddPostWithBody(ctx context.Context, params *AddVoiceV1VoicesAddPostParams, contentType string, ...) (*http.Response, error)
- func (c *Client) DeleteHistoryItemV1HistoryHistoryItemIdDelete(ctx context.Context, historyItemId string, ...) (*http.Response, error)
- func (c *Client) DeleteSampleV1VoicesVoiceIdSamplesSampleIdDelete(ctx context.Context, voiceId string, sampleId string, ...) (*http.Response, error)
- func (c *Client) DeleteVoiceV1VoicesVoiceIdDelete(ctx context.Context, voiceId string, ...) (*http.Response, error)
- func (c *Client) DownloadHistoryItemsV1HistoryDownloadPost(ctx context.Context, params *DownloadHistoryItemsV1HistoryDownloadPostParams, ...) (*http.Response, error)
- func (c *Client) DownloadHistoryItemsV1HistoryDownloadPostWithBody(ctx context.Context, params *DownloadHistoryItemsV1HistoryDownloadPostParams, ...) (*http.Response, error)
- func (c *Client) EditVoiceSettingsV1VoicesVoiceIdSettingsEditPost(ctx context.Context, voiceId string, ...) (*http.Response, error)
- func (c *Client) EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostWithBody(ctx context.Context, voiceId string, ...) (*http.Response, error)
- func (c *Client) EditVoiceV1VoicesVoiceIdEditPostWithBody(ctx context.Context, voiceId string, ...) (*http.Response, error)
- func (c *Client) GetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGet(ctx context.Context, historyItemId string, ...) (*http.Response, error)
- func (c *Client) GetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGet(ctx context.Context, voiceId string, sampleId string, ...) (*http.Response, error)
- func (c *Client) GetDefaultVoiceSettingsV1VoicesSettingsDefaultGet(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetGeneratedItemsV1HistoryGet(ctx context.Context, params *GetGeneratedItemsV1HistoryGetParams, ...) (*http.Response, error)
- func (c *Client) GetHistoryItemByIDV1HistoryHistoryItemIdGet(ctx context.Context, historyItemId string, ...) (*http.Response, error)
- func (c *Client) GetModelsV1ModelsGet(ctx context.Context, params *GetModelsV1ModelsGetParams, ...) (*http.Response, error)
- func (c *Client) GetUserInfoV1UserGet(ctx context.Context, params *GetUserInfoV1UserGetParams, ...) (*http.Response, error)
- func (c *Client) GetUserSubscriptionInfoV1UserSubscriptionGet(ctx context.Context, ...) (*http.Response, error)
- func (c *Client) GetVoiceSettingsV1VoicesVoiceIdSettingsGet(ctx context.Context, voiceId string, ...) (*http.Response, error)
- func (c *Client) GetVoiceV1VoicesVoiceIdGet(ctx context.Context, voiceId string, params *GetVoiceV1VoicesVoiceIdGetParams, ...) (*http.Response, error)
- func (c *Client) GetVoicesV1VoicesGet(ctx context.Context, params *GetVoicesV1VoicesGetParams, ...) (*http.Response, error)
- func (c *Client) TextToSpeechV1TextToSpeechVoiceIdPost(ctx context.Context, voiceId string, ...) (*http.Response, error)
- func (c *Client) TextToSpeechV1TextToSpeechVoiceIdPostWithBody(ctx context.Context, voiceId string, ...) (*http.Response, error)
- func (c *Client) TextToSpeechV1TextToSpeechVoiceIdStreamPost(ctx context.Context, voiceId string, ...) (*http.Response, error)
- func (c *Client) TextToSpeechV1TextToSpeechVoiceIdStreamPostWithBody(ctx context.Context, voiceId string, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) AddVoiceV1VoicesAddPostWithBodyWithResponse(ctx context.Context, params *AddVoiceV1VoicesAddPostParams, contentType string, ...) (*AddVoiceV1VoicesAddPostResponse, error)
- func (c *ClientWithResponses) DeleteHistoryItemV1HistoryHistoryItemIdDeleteWithResponse(ctx context.Context, historyItemId string, ...) (*DeleteHistoryItemV1HistoryHistoryItemIdDeleteResponse, error)
- func (c *ClientWithResponses) DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteWithResponse(ctx context.Context, voiceId string, sampleId string, ...) (*DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteResponse, error)
- func (c *ClientWithResponses) DeleteVoiceV1VoicesVoiceIdDeleteWithResponse(ctx context.Context, voiceId string, ...) (*DeleteVoiceV1VoicesVoiceIdDeleteResponse, error)
- func (c *ClientWithResponses) DownloadHistoryItemsV1HistoryDownloadPostWithBodyWithResponse(ctx context.Context, params *DownloadHistoryItemsV1HistoryDownloadPostParams, ...) (*DownloadHistoryItemsV1HistoryDownloadPostResponse, error)
- func (c *ClientWithResponses) DownloadHistoryItemsV1HistoryDownloadPostWithResponse(ctx context.Context, params *DownloadHistoryItemsV1HistoryDownloadPostParams, ...) (*DownloadHistoryItemsV1HistoryDownloadPostResponse, error)
- func (c *ClientWithResponses) EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostWithBodyWithResponse(ctx context.Context, voiceId string, ...) (*EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostResponse, error)
- func (c *ClientWithResponses) EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostWithResponse(ctx context.Context, voiceId string, ...) (*EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostResponse, error)
- func (c *ClientWithResponses) EditVoiceV1VoicesVoiceIdEditPostWithBodyWithResponse(ctx context.Context, voiceId string, ...) (*EditVoiceV1VoicesVoiceIdEditPostResponse, error)
- func (c *ClientWithResponses) GetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGetWithResponse(ctx context.Context, historyItemId string, ...) (*GetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGetResponse, error)
- func (c *ClientWithResponses) GetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGetWithResponse(ctx context.Context, voiceId string, sampleId string, ...) (*GetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGetResponse, error)
- func (c *ClientWithResponses) GetDefaultVoiceSettingsV1VoicesSettingsDefaultGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDefaultVoiceSettingsV1VoicesSettingsDefaultGetResponse, error)
- func (c *ClientWithResponses) GetGeneratedItemsV1HistoryGetWithResponse(ctx context.Context, params *GetGeneratedItemsV1HistoryGetParams, ...) (*GetGeneratedItemsV1HistoryGetResponse, error)
- func (c *ClientWithResponses) GetHistoryItemByIDV1HistoryHistoryItemIdGetWithResponse(ctx context.Context, historyItemId string, ...) (*GetHistoryItemByIDV1HistoryHistoryItemIdGetResponse, error)
- func (c *ClientWithResponses) GetModelsV1ModelsGetWithResponse(ctx context.Context, params *GetModelsV1ModelsGetParams, ...) (*GetModelsV1ModelsGetResponse, error)
- func (c *ClientWithResponses) GetUserInfoV1UserGetWithResponse(ctx context.Context, params *GetUserInfoV1UserGetParams, ...) (*GetUserInfoV1UserGetResponse, error)
- func (c *ClientWithResponses) GetUserSubscriptionInfoV1UserSubscriptionGetWithResponse(ctx context.Context, ...) (*GetUserSubscriptionInfoV1UserSubscriptionGetResponse, error)
- func (c *ClientWithResponses) GetVoiceSettingsV1VoicesVoiceIdSettingsGetWithResponse(ctx context.Context, voiceId string, ...) (*GetVoiceSettingsV1VoicesVoiceIdSettingsGetResponse, error)
- func (c *ClientWithResponses) GetVoiceV1VoicesVoiceIdGetWithResponse(ctx context.Context, voiceId string, params *GetVoiceV1VoicesVoiceIdGetParams, ...) (*GetVoiceV1VoicesVoiceIdGetResponse, error)
- func (c *ClientWithResponses) GetVoicesV1VoicesGetWithResponse(ctx context.Context, params *GetVoicesV1VoicesGetParams, ...) (*GetVoicesV1VoicesGetResponse, error)
- func (c *ClientWithResponses) TextToSpeechV1TextToSpeechVoiceIdPostWithBodyWithResponse(ctx context.Context, voiceId string, ...) (*TextToSpeechV1TextToSpeechVoiceIdPostResponse, error)
- func (c *ClientWithResponses) TextToSpeechV1TextToSpeechVoiceIdPostWithResponse(ctx context.Context, voiceId string, ...) (*TextToSpeechV1TextToSpeechVoiceIdPostResponse, error)
- func (c *ClientWithResponses) TextToSpeechV1TextToSpeechVoiceIdStreamPostWithBodyWithResponse(ctx context.Context, voiceId string, ...) (*TextToSpeechV1TextToSpeechVoiceIdStreamPostResponse, error)
- func (c *ClientWithResponses) TextToSpeechV1TextToSpeechVoiceIdStreamPostWithResponse(ctx context.Context, voiceId string, ...) (*TextToSpeechV1TextToSpeechVoiceIdStreamPostResponse, error)
- type ClientWithResponsesInterface
- type DeleteHistoryItemV1HistoryHistoryItemIdDeleteParams
- type DeleteHistoryItemV1HistoryHistoryItemIdDeleteResponse
- type DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteParams
- type DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteResponse
- type DeleteVoiceV1VoicesVoiceIdDeleteParams
- type DeleteVoiceV1VoicesVoiceIdDeleteResponse
- type DownloadHistoryItemsV1HistoryDownloadPostJSONRequestBody
- type DownloadHistoryItemsV1HistoryDownloadPostParams
- type DownloadHistoryItemsV1HistoryDownloadPostResponse
- type EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostJSONBody
- type EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostJSONRequestBody
- type EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostParams
- type EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostResponse
- type EditVoiceV1VoicesVoiceIdEditPostMultipartRequestBody
- type EditVoiceV1VoicesVoiceIdEditPostParams
- type EditVoiceV1VoicesVoiceIdEditPostResponse
- type ExtendedSubscriptionResponseModel
- type ExtendedSubscriptionResponseModelCurrency
- type ExtendedSubscriptionResponseModelStatus
- type FeedbackResponseModel
- type FineTuningResponseModel
- type FineTuningResponseModelFinetuningState
- type GetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGetParams
- type GetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGetResponse
- type GetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGetParams
- type GetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGetResponse
- type GetDefaultVoiceSettingsV1VoicesSettingsDefaultGetResponse
- type GetGeneratedItemsV1HistoryGetParams
- type GetGeneratedItemsV1HistoryGetResponse
- type GetHistoryItemByIDV1HistoryHistoryItemIdGetParams
- type GetHistoryItemByIDV1HistoryHistoryItemIdGetResponse
- type GetHistoryResponseModel
- type GetModelsV1ModelsGetParams
- type GetModelsV1ModelsGetResponse
- type GetUserInfoV1UserGetParams
- type GetUserInfoV1UserGetResponse
- type GetUserSubscriptionInfoV1UserSubscriptionGetParams
- type GetUserSubscriptionInfoV1UserSubscriptionGetResponse
- type GetVoiceSettingsV1VoicesVoiceIdSettingsGetParams
- type GetVoiceSettingsV1VoicesVoiceIdSettingsGetResponse
- type GetVoiceV1VoicesVoiceIdGetParams
- type GetVoiceV1VoicesVoiceIdGetResponse
- type GetVoicesResponseModel
- type GetVoicesV1VoicesGetParams
- type GetVoicesV1VoicesGetResponse
- type HTTPValidationError
- type HistoryItemResponseModel
- type HistoryItemResponseModelState
- type HttpRequestDoer
- type InvoiceResponseModel
- type LanguageResponseModel
- type ManualVerificationFileResponseModel
- type ManualVerificationResponseModel
- type ModelResponseModel
- type RecordingResponseModel
- type RequestEditorFn
- type SampleResponseModel
- type SubscriptionResponseModel
- type SubscriptionResponseModelCurrency
- type SubscriptionResponseModelStatus
- type TextToSpeechV1TextToSpeechVoiceIdPostJSONRequestBody
- type TextToSpeechV1TextToSpeechVoiceIdPostParams
- type TextToSpeechV1TextToSpeechVoiceIdPostResponse
- type TextToSpeechV1TextToSpeechVoiceIdStreamPostJSONRequestBody
- type TextToSpeechV1TextToSpeechVoiceIdStreamPostParams
- type TextToSpeechV1TextToSpeechVoiceIdStreamPostResponse
- type UserResponseModel
- type ValidationError
- type ValidationErrorLoc0
- type ValidationErrorLoc1
- type ValidationError_Loc_Item
- func (t ValidationError_Loc_Item) AsValidationErrorLoc0() (ValidationErrorLoc0, error)
- func (t ValidationError_Loc_Item) AsValidationErrorLoc1() (ValidationErrorLoc1, error)
- func (t *ValidationError_Loc_Item) FromValidationErrorLoc0(v ValidationErrorLoc0) error
- func (t *ValidationError_Loc_Item) FromValidationErrorLoc1(v ValidationErrorLoc1) error
- func (t ValidationError_Loc_Item) MarshalJSON() ([]byte, error)
- func (t *ValidationError_Loc_Item) MergeValidationErrorLoc0(v ValidationErrorLoc0) error
- func (t *ValidationError_Loc_Item) MergeValidationErrorLoc1(v ValidationErrorLoc1) error
- func (t *ValidationError_Loc_Item) UnmarshalJSON(b []byte) error
- type VerificationAttemptResponseModel
- type VoiceResponseModel
- type VoiceSettingsResponseModel
- type VoiceSharingResponseModel
- type VoiceSharingResponseModelStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAddVoiceV1VoicesAddPostRequestWithBody ¶
func NewAddVoiceV1VoicesAddPostRequestWithBody(server string, params *AddVoiceV1VoicesAddPostParams, contentType string, body io.Reader) (*http.Request, error)
NewAddVoiceV1VoicesAddPostRequestWithBody generates requests for AddVoiceV1VoicesAddPost with any type of body
func NewDeleteHistoryItemV1HistoryHistoryItemIdDeleteRequest ¶
func NewDeleteHistoryItemV1HistoryHistoryItemIdDeleteRequest(server string, historyItemId string, params *DeleteHistoryItemV1HistoryHistoryItemIdDeleteParams) (*http.Request, error)
NewDeleteHistoryItemV1HistoryHistoryItemIdDeleteRequest generates requests for DeleteHistoryItemV1HistoryHistoryItemIdDelete
func NewDeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteRequest ¶
func NewDeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteRequest(server string, voiceId string, sampleId string, params *DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteParams) (*http.Request, error)
NewDeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteRequest generates requests for DeleteSampleV1VoicesVoiceIdSamplesSampleIdDelete
func NewDeleteVoiceV1VoicesVoiceIdDeleteRequest ¶
func NewDeleteVoiceV1VoicesVoiceIdDeleteRequest(server string, voiceId string, params *DeleteVoiceV1VoicesVoiceIdDeleteParams) (*http.Request, error)
NewDeleteVoiceV1VoicesVoiceIdDeleteRequest generates requests for DeleteVoiceV1VoicesVoiceIdDelete
func NewDownloadHistoryItemsV1HistoryDownloadPostRequest ¶
func NewDownloadHistoryItemsV1HistoryDownloadPostRequest(server string, params *DownloadHistoryItemsV1HistoryDownloadPostParams, body DownloadHistoryItemsV1HistoryDownloadPostJSONRequestBody) (*http.Request, error)
NewDownloadHistoryItemsV1HistoryDownloadPostRequest calls the generic DownloadHistoryItemsV1HistoryDownloadPost builder with application/json body
func NewDownloadHistoryItemsV1HistoryDownloadPostRequestWithBody ¶
func NewDownloadHistoryItemsV1HistoryDownloadPostRequestWithBody(server string, params *DownloadHistoryItemsV1HistoryDownloadPostParams, contentType string, body io.Reader) (*http.Request, error)
NewDownloadHistoryItemsV1HistoryDownloadPostRequestWithBody generates requests for DownloadHistoryItemsV1HistoryDownloadPost with any type of body
func NewEditVoiceSettingsV1VoicesVoiceIdSettingsEditPostRequest ¶
func NewEditVoiceSettingsV1VoicesVoiceIdSettingsEditPostRequest(server string, voiceId string, params *EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostParams, body EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostJSONRequestBody) (*http.Request, error)
NewEditVoiceSettingsV1VoicesVoiceIdSettingsEditPostRequest calls the generic EditVoiceSettingsV1VoicesVoiceIdSettingsEditPost builder with application/json body
func NewEditVoiceSettingsV1VoicesVoiceIdSettingsEditPostRequestWithBody ¶
func NewEditVoiceSettingsV1VoicesVoiceIdSettingsEditPostRequestWithBody(server string, voiceId string, params *EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostParams, contentType string, body io.Reader) (*http.Request, error)
NewEditVoiceSettingsV1VoicesVoiceIdSettingsEditPostRequestWithBody generates requests for EditVoiceSettingsV1VoicesVoiceIdSettingsEditPost with any type of body
func NewEditVoiceV1VoicesVoiceIdEditPostRequestWithBody ¶
func NewEditVoiceV1VoicesVoiceIdEditPostRequestWithBody(server string, voiceId string, params *EditVoiceV1VoicesVoiceIdEditPostParams, contentType string, body io.Reader) (*http.Request, error)
NewEditVoiceV1VoicesVoiceIdEditPostRequestWithBody generates requests for EditVoiceV1VoicesVoiceIdEditPost with any type of body
func NewGetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGetRequest ¶
func NewGetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGetRequest(server string, historyItemId string, params *GetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGetParams) (*http.Request, error)
NewGetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGetRequest generates requests for GetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGet
func NewGetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGetRequest ¶
func NewGetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGetRequest(server string, voiceId string, sampleId string, params *GetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGetParams) (*http.Request, error)
NewGetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGetRequest generates requests for GetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGet
func NewGetDefaultVoiceSettingsV1VoicesSettingsDefaultGetRequest ¶
func NewGetDefaultVoiceSettingsV1VoicesSettingsDefaultGetRequest(server string) (*http.Request, error)
NewGetDefaultVoiceSettingsV1VoicesSettingsDefaultGetRequest generates requests for GetDefaultVoiceSettingsV1VoicesSettingsDefaultGet
func NewGetGeneratedItemsV1HistoryGetRequest ¶
func NewGetGeneratedItemsV1HistoryGetRequest(server string, params *GetGeneratedItemsV1HistoryGetParams) (*http.Request, error)
NewGetGeneratedItemsV1HistoryGetRequest generates requests for GetGeneratedItemsV1HistoryGet
func NewGetHistoryItemByIDV1HistoryHistoryItemIdGetRequest ¶
func NewGetHistoryItemByIDV1HistoryHistoryItemIdGetRequest(server string, historyItemId string, params *GetHistoryItemByIDV1HistoryHistoryItemIdGetParams) (*http.Request, error)
NewGetHistoryItemByIDV1HistoryHistoryItemIdGetRequest generates requests for GetHistoryItemByIDV1HistoryHistoryItemIdGet
func NewGetModelsV1ModelsGetRequest ¶
func NewGetModelsV1ModelsGetRequest(server string, params *GetModelsV1ModelsGetParams) (*http.Request, error)
NewGetModelsV1ModelsGetRequest generates requests for GetModelsV1ModelsGet
func NewGetUserInfoV1UserGetRequest ¶
func NewGetUserInfoV1UserGetRequest(server string, params *GetUserInfoV1UserGetParams) (*http.Request, error)
NewGetUserInfoV1UserGetRequest generates requests for GetUserInfoV1UserGet
func NewGetUserSubscriptionInfoV1UserSubscriptionGetRequest ¶
func NewGetUserSubscriptionInfoV1UserSubscriptionGetRequest(server string, params *GetUserSubscriptionInfoV1UserSubscriptionGetParams) (*http.Request, error)
NewGetUserSubscriptionInfoV1UserSubscriptionGetRequest generates requests for GetUserSubscriptionInfoV1UserSubscriptionGet
func NewGetVoiceSettingsV1VoicesVoiceIdSettingsGetRequest ¶
func NewGetVoiceSettingsV1VoicesVoiceIdSettingsGetRequest(server string, voiceId string, params *GetVoiceSettingsV1VoicesVoiceIdSettingsGetParams) (*http.Request, error)
NewGetVoiceSettingsV1VoicesVoiceIdSettingsGetRequest generates requests for GetVoiceSettingsV1VoicesVoiceIdSettingsGet
func NewGetVoiceV1VoicesVoiceIdGetRequest ¶
func NewGetVoiceV1VoicesVoiceIdGetRequest(server string, voiceId string, params *GetVoiceV1VoicesVoiceIdGetParams) (*http.Request, error)
NewGetVoiceV1VoicesVoiceIdGetRequest generates requests for GetVoiceV1VoicesVoiceIdGet
func NewGetVoicesV1VoicesGetRequest ¶
func NewGetVoicesV1VoicesGetRequest(server string, params *GetVoicesV1VoicesGetParams) (*http.Request, error)
NewGetVoicesV1VoicesGetRequest generates requests for GetVoicesV1VoicesGet
func NewTextToSpeechV1TextToSpeechVoiceIdPostRequest ¶
func NewTextToSpeechV1TextToSpeechVoiceIdPostRequest(server string, voiceId string, params *TextToSpeechV1TextToSpeechVoiceIdPostParams, body TextToSpeechV1TextToSpeechVoiceIdPostJSONRequestBody) (*http.Request, error)
NewTextToSpeechV1TextToSpeechVoiceIdPostRequest calls the generic TextToSpeechV1TextToSpeechVoiceIdPost builder with application/json body
func NewTextToSpeechV1TextToSpeechVoiceIdPostRequestWithBody ¶
func NewTextToSpeechV1TextToSpeechVoiceIdPostRequestWithBody(server string, voiceId string, params *TextToSpeechV1TextToSpeechVoiceIdPostParams, contentType string, body io.Reader) (*http.Request, error)
NewTextToSpeechV1TextToSpeechVoiceIdPostRequestWithBody generates requests for TextToSpeechV1TextToSpeechVoiceIdPost with any type of body
func NewTextToSpeechV1TextToSpeechVoiceIdStreamPostRequest ¶
func NewTextToSpeechV1TextToSpeechVoiceIdStreamPostRequest(server string, voiceId string, params *TextToSpeechV1TextToSpeechVoiceIdStreamPostParams, body TextToSpeechV1TextToSpeechVoiceIdStreamPostJSONRequestBody) (*http.Request, error)
NewTextToSpeechV1TextToSpeechVoiceIdStreamPostRequest calls the generic TextToSpeechV1TextToSpeechVoiceIdStreamPost builder with application/json body
func NewTextToSpeechV1TextToSpeechVoiceIdStreamPostRequestWithBody ¶
func NewTextToSpeechV1TextToSpeechVoiceIdStreamPostRequestWithBody(server string, voiceId string, params *TextToSpeechV1TextToSpeechVoiceIdStreamPostParams, contentType string, body io.Reader) (*http.Request, error)
NewTextToSpeechV1TextToSpeechVoiceIdStreamPostRequestWithBody generates requests for TextToSpeechV1TextToSpeechVoiceIdStreamPost with any type of body
Types ¶
type AddVoiceResponseModel ¶
type AddVoiceResponseModel struct {
VoiceId string `json:"voice_id"`
}
AddVoiceResponseModel defines model for AddVoiceResponseModel.
type AddVoiceV1VoicesAddPostMultipartRequestBody ¶
type AddVoiceV1VoicesAddPostMultipartRequestBody = BodyAddVoiceV1VoicesAddPost
AddVoiceV1VoicesAddPostMultipartRequestBody defines body for AddVoiceV1VoicesAddPost for multipart/form-data ContentType.
type AddVoiceV1VoicesAddPostParams ¶
type AddVoiceV1VoicesAddPostParams struct { // XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. XiApiKey *string `json:"xi-api-key,omitempty"` }
AddVoiceV1VoicesAddPostParams defines parameters for AddVoiceV1VoicesAddPost.
type AddVoiceV1VoicesAddPostResponse ¶
type AddVoiceV1VoicesAddPostResponse struct { Body []byte HTTPResponse *http.Response JSON200 *AddVoiceResponseModel JSON422 *HTTPValidationError }
func ParseAddVoiceV1VoicesAddPostResponse ¶
func ParseAddVoiceV1VoicesAddPostResponse(rsp *http.Response) (*AddVoiceV1VoicesAddPostResponse, error)
ParseAddVoiceV1VoicesAddPostResponse parses an HTTP response from a AddVoiceV1VoicesAddPostWithResponse call
func (AddVoiceV1VoicesAddPostResponse) Status ¶
func (r AddVoiceV1VoicesAddPostResponse) Status() string
Status returns HTTPResponse.Status
func (AddVoiceV1VoicesAddPostResponse) StatusCode ¶
func (r AddVoiceV1VoicesAddPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type BodyAddVoiceV1VoicesAddPost ¶
type BodyAddVoiceV1VoicesAddPost struct { // Description How would you describe the voice? Description *string `json:"description,omitempty"` // Files One or more audio files to clone the voice from Files []openapi_types.File `json:"files"` // Labels Serialized labels dictionary for the voice. Labels *string `json:"labels,omitempty"` // Name The name that identifies this voice. This will be displayed in the dropdown of the website. Name string `json:"name"` }
BodyAddVoiceV1VoicesAddPost defines model for Body_Add_voice_v1_voices_add_post.
type BodyDownloadHistoryItemsV1HistoryDownloadPost ¶
type BodyDownloadHistoryItemsV1HistoryDownloadPost struct { // HistoryItemIds A list of history items to download, you can get IDs of history items and other metadata using the GET https://api.elevenlabs.io/v1/history endpoint. HistoryItemIds []string `json:"history_item_ids"` }
BodyDownloadHistoryItemsV1HistoryDownloadPost defines model for Body_Download_history_items_v1_history_download_post.
type BodyEditVoiceV1VoicesVoiceIdEditPost ¶
type BodyEditVoiceV1VoicesVoiceIdEditPost struct { // Description How would you describe the voice? Description *string `json:"description,omitempty"` // Files Audio files to add to the voice Files *[]openapi_types.File `json:"files,omitempty"` // Labels Serialized labels dictionary for the voice. Labels *string `json:"labels,omitempty"` // Name The name that identifies this voice. This will be displayed in the dropdown of the website. Name string `json:"name"` }
BodyEditVoiceV1VoicesVoiceIdEditPost defines model for Body_Edit_voice_v1_voices__voice_id__edit_post.
type BodyTextToSpeechV1TextToSpeechVoiceIdPost ¶
type BodyTextToSpeechV1TextToSpeechVoiceIdPost struct { // ModelId Identifier of the model that will be used, you can query them using GET /v1/models. ModelId *string `json:"model_id,omitempty"` // Text The text that will get converted into speech. Text string `json:"text"` // VoiceSettings Voice settings overriding stored setttings for the given voice. They are applied only on the given TTS request. VoiceSettings *VoiceSettingsResponseModel `json:"voice_settings,omitempty"` }
BodyTextToSpeechV1TextToSpeechVoiceIdPost defines model for Body_Text_to_speech_v1_text_to_speech__voice_id__post.
type BodyTextToSpeechV1TextToSpeechVoiceIdStreamPost ¶
type BodyTextToSpeechV1TextToSpeechVoiceIdStreamPost struct { // ModelId Identifier of the model that will be used, you can query them using GET /v1/models. ModelId *string `json:"model_id,omitempty"` // Text The text that will get converted into speech. Text string `json:"text"` // VoiceSettings Voice settings overriding stored setttings for the given voice. They are applied only on the given TTS request. VoiceSettings *VoiceSettingsResponseModel `json:"voice_settings,omitempty"` }
BodyTextToSpeechV1TextToSpeechVoiceIdStreamPost defines model for Body_Text_to_speech_v1_text_to_speech__voice_id__stream_post.
type Client ¶
type Client struct { // The endpoint of the server conforming to this interface, with scheme, // https://api.deepmap.com for example. This can contain a path relative // to the server, such as https://api.deepmap.com/dev-test, and all the // paths in the swagger spec will be appended to the server. Server string // Doer for performing requests, typically a *http.Client with any // customized settings, such as certificate chains. Client HttpRequestDoer // A list of callbacks for modifying requests which are generated before sending over // the network. RequestEditors []RequestEditorFn }
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) AddVoiceV1VoicesAddPostWithBody ¶
func (*Client) DeleteHistoryItemV1HistoryHistoryItemIdDelete ¶
func (c *Client) DeleteHistoryItemV1HistoryHistoryItemIdDelete(ctx context.Context, historyItemId string, params *DeleteHistoryItemV1HistoryHistoryItemIdDeleteParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteSampleV1VoicesVoiceIdSamplesSampleIdDelete ¶
func (c *Client) DeleteSampleV1VoicesVoiceIdSamplesSampleIdDelete(ctx context.Context, voiceId string, sampleId string, params *DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteVoiceV1VoicesVoiceIdDelete ¶
func (c *Client) DeleteVoiceV1VoicesVoiceIdDelete(ctx context.Context, voiceId string, params *DeleteVoiceV1VoicesVoiceIdDeleteParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DownloadHistoryItemsV1HistoryDownloadPost ¶
func (c *Client) DownloadHistoryItemsV1HistoryDownloadPost(ctx context.Context, params *DownloadHistoryItemsV1HistoryDownloadPostParams, body DownloadHistoryItemsV1HistoryDownloadPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DownloadHistoryItemsV1HistoryDownloadPostWithBody ¶
func (*Client) EditVoiceSettingsV1VoicesVoiceIdSettingsEditPost ¶
func (c *Client) EditVoiceSettingsV1VoicesVoiceIdSettingsEditPost(ctx context.Context, voiceId string, params *EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostParams, body EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostWithBody ¶
func (*Client) EditVoiceV1VoicesVoiceIdEditPostWithBody ¶
func (*Client) GetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGet ¶
func (c *Client) GetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGet(ctx context.Context, historyItemId string, params *GetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGet ¶
func (c *Client) GetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGet(ctx context.Context, voiceId string, sampleId string, params *GetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetDefaultVoiceSettingsV1VoicesSettingsDefaultGet ¶
func (*Client) GetGeneratedItemsV1HistoryGet ¶
func (c *Client) GetGeneratedItemsV1HistoryGet(ctx context.Context, params *GetGeneratedItemsV1HistoryGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetHistoryItemByIDV1HistoryHistoryItemIdGet ¶
func (c *Client) GetHistoryItemByIDV1HistoryHistoryItemIdGet(ctx context.Context, historyItemId string, params *GetHistoryItemByIDV1HistoryHistoryItemIdGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetModelsV1ModelsGet ¶
func (c *Client) GetModelsV1ModelsGet(ctx context.Context, params *GetModelsV1ModelsGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetUserInfoV1UserGet ¶
func (c *Client) GetUserInfoV1UserGet(ctx context.Context, params *GetUserInfoV1UserGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetUserSubscriptionInfoV1UserSubscriptionGet ¶
func (c *Client) GetUserSubscriptionInfoV1UserSubscriptionGet(ctx context.Context, params *GetUserSubscriptionInfoV1UserSubscriptionGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetVoiceSettingsV1VoicesVoiceIdSettingsGet ¶
func (c *Client) GetVoiceSettingsV1VoicesVoiceIdSettingsGet(ctx context.Context, voiceId string, params *GetVoiceSettingsV1VoicesVoiceIdSettingsGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetVoiceV1VoicesVoiceIdGet ¶
func (c *Client) GetVoiceV1VoicesVoiceIdGet(ctx context.Context, voiceId string, params *GetVoiceV1VoicesVoiceIdGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetVoicesV1VoicesGet ¶
func (c *Client) GetVoicesV1VoicesGet(ctx context.Context, params *GetVoicesV1VoicesGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) TextToSpeechV1TextToSpeechVoiceIdPost ¶
func (c *Client) TextToSpeechV1TextToSpeechVoiceIdPost(ctx context.Context, voiceId string, params *TextToSpeechV1TextToSpeechVoiceIdPostParams, body TextToSpeechV1TextToSpeechVoiceIdPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) TextToSpeechV1TextToSpeechVoiceIdPostWithBody ¶
func (*Client) TextToSpeechV1TextToSpeechVoiceIdStreamPost ¶
func (c *Client) TextToSpeechV1TextToSpeechVoiceIdStreamPost(ctx context.Context, voiceId string, params *TextToSpeechV1TextToSpeechVoiceIdStreamPostParams, body TextToSpeechV1TextToSpeechVoiceIdStreamPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) TextToSpeechV1TextToSpeechVoiceIdStreamPostWithBody ¶
type ClientInterface ¶
type ClientInterface interface { // GetGeneratedItemsV1HistoryGet request GetGeneratedItemsV1HistoryGet(ctx context.Context, params *GetGeneratedItemsV1HistoryGetParams, reqEditors ...RequestEditorFn) (*http.Response, error) // DownloadHistoryItemsV1HistoryDownloadPost request with any body DownloadHistoryItemsV1HistoryDownloadPostWithBody(ctx context.Context, params *DownloadHistoryItemsV1HistoryDownloadPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) DownloadHistoryItemsV1HistoryDownloadPost(ctx context.Context, params *DownloadHistoryItemsV1HistoryDownloadPostParams, body DownloadHistoryItemsV1HistoryDownloadPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteHistoryItemV1HistoryHistoryItemIdDelete request DeleteHistoryItemV1HistoryHistoryItemIdDelete(ctx context.Context, historyItemId string, params *DeleteHistoryItemV1HistoryHistoryItemIdDeleteParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetHistoryItemByIDV1HistoryHistoryItemIdGet request GetHistoryItemByIDV1HistoryHistoryItemIdGet(ctx context.Context, historyItemId string, params *GetHistoryItemByIDV1HistoryHistoryItemIdGetParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGet request GetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGet(ctx context.Context, historyItemId string, params *GetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGetParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetModelsV1ModelsGet request GetModelsV1ModelsGet(ctx context.Context, params *GetModelsV1ModelsGetParams, reqEditors ...RequestEditorFn) (*http.Response, error) // TextToSpeechV1TextToSpeechVoiceIdPost request with any body TextToSpeechV1TextToSpeechVoiceIdPostWithBody(ctx context.Context, voiceId string, params *TextToSpeechV1TextToSpeechVoiceIdPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) TextToSpeechV1TextToSpeechVoiceIdPost(ctx context.Context, voiceId string, params *TextToSpeechV1TextToSpeechVoiceIdPostParams, body TextToSpeechV1TextToSpeechVoiceIdPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // TextToSpeechV1TextToSpeechVoiceIdStreamPost request with any body TextToSpeechV1TextToSpeechVoiceIdStreamPostWithBody(ctx context.Context, voiceId string, params *TextToSpeechV1TextToSpeechVoiceIdStreamPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) TextToSpeechV1TextToSpeechVoiceIdStreamPost(ctx context.Context, voiceId string, params *TextToSpeechV1TextToSpeechVoiceIdStreamPostParams, body TextToSpeechV1TextToSpeechVoiceIdStreamPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetUserInfoV1UserGet request GetUserInfoV1UserGet(ctx context.Context, params *GetUserInfoV1UserGetParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetUserSubscriptionInfoV1UserSubscriptionGet request GetUserSubscriptionInfoV1UserSubscriptionGet(ctx context.Context, params *GetUserSubscriptionInfoV1UserSubscriptionGetParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetVoicesV1VoicesGet request GetVoicesV1VoicesGet(ctx context.Context, params *GetVoicesV1VoicesGetParams, reqEditors ...RequestEditorFn) (*http.Response, error) // AddVoiceV1VoicesAddPost request with any body AddVoiceV1VoicesAddPostWithBody(ctx context.Context, params *AddVoiceV1VoicesAddPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) // GetDefaultVoiceSettingsV1VoicesSettingsDefaultGet request GetDefaultVoiceSettingsV1VoicesSettingsDefaultGet(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteVoiceV1VoicesVoiceIdDelete request DeleteVoiceV1VoicesVoiceIdDelete(ctx context.Context, voiceId string, params *DeleteVoiceV1VoicesVoiceIdDeleteParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetVoiceV1VoicesVoiceIdGet request GetVoiceV1VoicesVoiceIdGet(ctx context.Context, voiceId string, params *GetVoiceV1VoicesVoiceIdGetParams, reqEditors ...RequestEditorFn) (*http.Response, error) // EditVoiceV1VoicesVoiceIdEditPost request with any body EditVoiceV1VoicesVoiceIdEditPostWithBody(ctx context.Context, voiceId string, params *EditVoiceV1VoicesVoiceIdEditPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteSampleV1VoicesVoiceIdSamplesSampleIdDelete request DeleteSampleV1VoicesVoiceIdSamplesSampleIdDelete(ctx context.Context, voiceId string, sampleId string, params *DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGet request GetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGet(ctx context.Context, voiceId string, sampleId string, params *GetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGetParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetVoiceSettingsV1VoicesVoiceIdSettingsGet request GetVoiceSettingsV1VoicesVoiceIdSettingsGet(ctx context.Context, voiceId string, params *GetVoiceSettingsV1VoicesVoiceIdSettingsGetParams, reqEditors ...RequestEditorFn) (*http.Response, error) // EditVoiceSettingsV1VoicesVoiceIdSettingsEditPost request with any body EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostWithBody(ctx context.Context, voiceId string, params *EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) EditVoiceSettingsV1VoicesVoiceIdSettingsEditPost(ctx context.Context, voiceId string, params *EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostParams, body EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) }
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) AddVoiceV1VoicesAddPostWithBodyWithResponse ¶
func (c *ClientWithResponses) AddVoiceV1VoicesAddPostWithBodyWithResponse(ctx context.Context, params *AddVoiceV1VoicesAddPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddVoiceV1VoicesAddPostResponse, error)
AddVoiceV1VoicesAddPostWithBodyWithResponse request with arbitrary body returning *AddVoiceV1VoicesAddPostResponse
func (*ClientWithResponses) DeleteHistoryItemV1HistoryHistoryItemIdDeleteWithResponse ¶
func (c *ClientWithResponses) DeleteHistoryItemV1HistoryHistoryItemIdDeleteWithResponse(ctx context.Context, historyItemId string, params *DeleteHistoryItemV1HistoryHistoryItemIdDeleteParams, reqEditors ...RequestEditorFn) (*DeleteHistoryItemV1HistoryHistoryItemIdDeleteResponse, error)
DeleteHistoryItemV1HistoryHistoryItemIdDeleteWithResponse request returning *DeleteHistoryItemV1HistoryHistoryItemIdDeleteResponse
func (*ClientWithResponses) DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteWithResponse ¶
func (c *ClientWithResponses) DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteWithResponse(ctx context.Context, voiceId string, sampleId string, params *DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteParams, reqEditors ...RequestEditorFn) (*DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteResponse, error)
DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteWithResponse request returning *DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteResponse
func (*ClientWithResponses) DeleteVoiceV1VoicesVoiceIdDeleteWithResponse ¶
func (c *ClientWithResponses) DeleteVoiceV1VoicesVoiceIdDeleteWithResponse(ctx context.Context, voiceId string, params *DeleteVoiceV1VoicesVoiceIdDeleteParams, reqEditors ...RequestEditorFn) (*DeleteVoiceV1VoicesVoiceIdDeleteResponse, error)
DeleteVoiceV1VoicesVoiceIdDeleteWithResponse request returning *DeleteVoiceV1VoicesVoiceIdDeleteResponse
func (*ClientWithResponses) DownloadHistoryItemsV1HistoryDownloadPostWithBodyWithResponse ¶
func (c *ClientWithResponses) DownloadHistoryItemsV1HistoryDownloadPostWithBodyWithResponse(ctx context.Context, params *DownloadHistoryItemsV1HistoryDownloadPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DownloadHistoryItemsV1HistoryDownloadPostResponse, error)
DownloadHistoryItemsV1HistoryDownloadPostWithBodyWithResponse request with arbitrary body returning *DownloadHistoryItemsV1HistoryDownloadPostResponse
func (*ClientWithResponses) DownloadHistoryItemsV1HistoryDownloadPostWithResponse ¶
func (c *ClientWithResponses) DownloadHistoryItemsV1HistoryDownloadPostWithResponse(ctx context.Context, params *DownloadHistoryItemsV1HistoryDownloadPostParams, body DownloadHistoryItemsV1HistoryDownloadPostJSONRequestBody, reqEditors ...RequestEditorFn) (*DownloadHistoryItemsV1HistoryDownloadPostResponse, error)
func (*ClientWithResponses) EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostWithBodyWithResponse ¶
func (c *ClientWithResponses) EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostWithBodyWithResponse(ctx context.Context, voiceId string, params *EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostResponse, error)
EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostWithBodyWithResponse request with arbitrary body returning *EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostResponse
func (*ClientWithResponses) EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostWithResponse ¶
func (c *ClientWithResponses) EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostWithResponse(ctx context.Context, voiceId string, params *EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostParams, body EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostJSONRequestBody, reqEditors ...RequestEditorFn) (*EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostResponse, error)
func (*ClientWithResponses) EditVoiceV1VoicesVoiceIdEditPostWithBodyWithResponse ¶
func (c *ClientWithResponses) EditVoiceV1VoicesVoiceIdEditPostWithBodyWithResponse(ctx context.Context, voiceId string, params *EditVoiceV1VoicesVoiceIdEditPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditVoiceV1VoicesVoiceIdEditPostResponse, error)
EditVoiceV1VoicesVoiceIdEditPostWithBodyWithResponse request with arbitrary body returning *EditVoiceV1VoicesVoiceIdEditPostResponse
func (*ClientWithResponses) GetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGetWithResponse ¶
func (c *ClientWithResponses) GetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGetWithResponse(ctx context.Context, historyItemId string, params *GetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGetParams, reqEditors ...RequestEditorFn) (*GetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGetResponse, error)
GetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGetWithResponse request returning *GetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGetResponse
func (*ClientWithResponses) GetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGetWithResponse ¶
func (c *ClientWithResponses) GetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGetWithResponse(ctx context.Context, voiceId string, sampleId string, params *GetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGetParams, reqEditors ...RequestEditorFn) (*GetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGetResponse, error)
GetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGetWithResponse request returning *GetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGetResponse
func (*ClientWithResponses) GetDefaultVoiceSettingsV1VoicesSettingsDefaultGetWithResponse ¶
func (c *ClientWithResponses) GetDefaultVoiceSettingsV1VoicesSettingsDefaultGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDefaultVoiceSettingsV1VoicesSettingsDefaultGetResponse, error)
GetDefaultVoiceSettingsV1VoicesSettingsDefaultGetWithResponse request returning *GetDefaultVoiceSettingsV1VoicesSettingsDefaultGetResponse
func (*ClientWithResponses) GetGeneratedItemsV1HistoryGetWithResponse ¶
func (c *ClientWithResponses) GetGeneratedItemsV1HistoryGetWithResponse(ctx context.Context, params *GetGeneratedItemsV1HistoryGetParams, reqEditors ...RequestEditorFn) (*GetGeneratedItemsV1HistoryGetResponse, error)
GetGeneratedItemsV1HistoryGetWithResponse request returning *GetGeneratedItemsV1HistoryGetResponse
func (*ClientWithResponses) GetHistoryItemByIDV1HistoryHistoryItemIdGetWithResponse ¶
func (c *ClientWithResponses) GetHistoryItemByIDV1HistoryHistoryItemIdGetWithResponse(ctx context.Context, historyItemId string, params *GetHistoryItemByIDV1HistoryHistoryItemIdGetParams, reqEditors ...RequestEditorFn) (*GetHistoryItemByIDV1HistoryHistoryItemIdGetResponse, error)
GetHistoryItemByIDV1HistoryHistoryItemIdGetWithResponse request returning *GetHistoryItemByIDV1HistoryHistoryItemIdGetResponse
func (*ClientWithResponses) GetModelsV1ModelsGetWithResponse ¶
func (c *ClientWithResponses) GetModelsV1ModelsGetWithResponse(ctx context.Context, params *GetModelsV1ModelsGetParams, reqEditors ...RequestEditorFn) (*GetModelsV1ModelsGetResponse, error)
GetModelsV1ModelsGetWithResponse request returning *GetModelsV1ModelsGetResponse
func (*ClientWithResponses) GetUserInfoV1UserGetWithResponse ¶
func (c *ClientWithResponses) GetUserInfoV1UserGetWithResponse(ctx context.Context, params *GetUserInfoV1UserGetParams, reqEditors ...RequestEditorFn) (*GetUserInfoV1UserGetResponse, error)
GetUserInfoV1UserGetWithResponse request returning *GetUserInfoV1UserGetResponse
func (*ClientWithResponses) GetUserSubscriptionInfoV1UserSubscriptionGetWithResponse ¶
func (c *ClientWithResponses) GetUserSubscriptionInfoV1UserSubscriptionGetWithResponse(ctx context.Context, params *GetUserSubscriptionInfoV1UserSubscriptionGetParams, reqEditors ...RequestEditorFn) (*GetUserSubscriptionInfoV1UserSubscriptionGetResponse, error)
GetUserSubscriptionInfoV1UserSubscriptionGetWithResponse request returning *GetUserSubscriptionInfoV1UserSubscriptionGetResponse
func (*ClientWithResponses) GetVoiceSettingsV1VoicesVoiceIdSettingsGetWithResponse ¶
func (c *ClientWithResponses) GetVoiceSettingsV1VoicesVoiceIdSettingsGetWithResponse(ctx context.Context, voiceId string, params *GetVoiceSettingsV1VoicesVoiceIdSettingsGetParams, reqEditors ...RequestEditorFn) (*GetVoiceSettingsV1VoicesVoiceIdSettingsGetResponse, error)
GetVoiceSettingsV1VoicesVoiceIdSettingsGetWithResponse request returning *GetVoiceSettingsV1VoicesVoiceIdSettingsGetResponse
func (*ClientWithResponses) GetVoiceV1VoicesVoiceIdGetWithResponse ¶
func (c *ClientWithResponses) GetVoiceV1VoicesVoiceIdGetWithResponse(ctx context.Context, voiceId string, params *GetVoiceV1VoicesVoiceIdGetParams, reqEditors ...RequestEditorFn) (*GetVoiceV1VoicesVoiceIdGetResponse, error)
GetVoiceV1VoicesVoiceIdGetWithResponse request returning *GetVoiceV1VoicesVoiceIdGetResponse
func (*ClientWithResponses) GetVoicesV1VoicesGetWithResponse ¶
func (c *ClientWithResponses) GetVoicesV1VoicesGetWithResponse(ctx context.Context, params *GetVoicesV1VoicesGetParams, reqEditors ...RequestEditorFn) (*GetVoicesV1VoicesGetResponse, error)
GetVoicesV1VoicesGetWithResponse request returning *GetVoicesV1VoicesGetResponse
func (*ClientWithResponses) TextToSpeechV1TextToSpeechVoiceIdPostWithBodyWithResponse ¶
func (c *ClientWithResponses) TextToSpeechV1TextToSpeechVoiceIdPostWithBodyWithResponse(ctx context.Context, voiceId string, params *TextToSpeechV1TextToSpeechVoiceIdPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TextToSpeechV1TextToSpeechVoiceIdPostResponse, error)
TextToSpeechV1TextToSpeechVoiceIdPostWithBodyWithResponse request with arbitrary body returning *TextToSpeechV1TextToSpeechVoiceIdPostResponse
func (*ClientWithResponses) TextToSpeechV1TextToSpeechVoiceIdPostWithResponse ¶
func (c *ClientWithResponses) TextToSpeechV1TextToSpeechVoiceIdPostWithResponse(ctx context.Context, voiceId string, params *TextToSpeechV1TextToSpeechVoiceIdPostParams, body TextToSpeechV1TextToSpeechVoiceIdPostJSONRequestBody, reqEditors ...RequestEditorFn) (*TextToSpeechV1TextToSpeechVoiceIdPostResponse, error)
func (*ClientWithResponses) TextToSpeechV1TextToSpeechVoiceIdStreamPostWithBodyWithResponse ¶
func (c *ClientWithResponses) TextToSpeechV1TextToSpeechVoiceIdStreamPostWithBodyWithResponse(ctx context.Context, voiceId string, params *TextToSpeechV1TextToSpeechVoiceIdStreamPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TextToSpeechV1TextToSpeechVoiceIdStreamPostResponse, error)
TextToSpeechV1TextToSpeechVoiceIdStreamPostWithBodyWithResponse request with arbitrary body returning *TextToSpeechV1TextToSpeechVoiceIdStreamPostResponse
func (*ClientWithResponses) TextToSpeechV1TextToSpeechVoiceIdStreamPostWithResponse ¶
func (c *ClientWithResponses) TextToSpeechV1TextToSpeechVoiceIdStreamPostWithResponse(ctx context.Context, voiceId string, params *TextToSpeechV1TextToSpeechVoiceIdStreamPostParams, body TextToSpeechV1TextToSpeechVoiceIdStreamPostJSONRequestBody, reqEditors ...RequestEditorFn) (*TextToSpeechV1TextToSpeechVoiceIdStreamPostResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // GetGeneratedItemsV1HistoryGet request GetGeneratedItemsV1HistoryGetWithResponse(ctx context.Context, params *GetGeneratedItemsV1HistoryGetParams, reqEditors ...RequestEditorFn) (*GetGeneratedItemsV1HistoryGetResponse, error) // DownloadHistoryItemsV1HistoryDownloadPost request with any body DownloadHistoryItemsV1HistoryDownloadPostWithBodyWithResponse(ctx context.Context, params *DownloadHistoryItemsV1HistoryDownloadPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DownloadHistoryItemsV1HistoryDownloadPostResponse, error) DownloadHistoryItemsV1HistoryDownloadPostWithResponse(ctx context.Context, params *DownloadHistoryItemsV1HistoryDownloadPostParams, body DownloadHistoryItemsV1HistoryDownloadPostJSONRequestBody, reqEditors ...RequestEditorFn) (*DownloadHistoryItemsV1HistoryDownloadPostResponse, error) // DeleteHistoryItemV1HistoryHistoryItemIdDelete request DeleteHistoryItemV1HistoryHistoryItemIdDeleteWithResponse(ctx context.Context, historyItemId string, params *DeleteHistoryItemV1HistoryHistoryItemIdDeleteParams, reqEditors ...RequestEditorFn) (*DeleteHistoryItemV1HistoryHistoryItemIdDeleteResponse, error) // GetHistoryItemByIDV1HistoryHistoryItemIdGet request GetHistoryItemByIDV1HistoryHistoryItemIdGetWithResponse(ctx context.Context, historyItemId string, params *GetHistoryItemByIDV1HistoryHistoryItemIdGetParams, reqEditors ...RequestEditorFn) (*GetHistoryItemByIDV1HistoryHistoryItemIdGetResponse, error) // GetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGet request GetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGetWithResponse(ctx context.Context, historyItemId string, params *GetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGetParams, reqEditors ...RequestEditorFn) (*GetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGetResponse, error) // GetModelsV1ModelsGet request GetModelsV1ModelsGetWithResponse(ctx context.Context, params *GetModelsV1ModelsGetParams, reqEditors ...RequestEditorFn) (*GetModelsV1ModelsGetResponse, error) // TextToSpeechV1TextToSpeechVoiceIdPost request with any body TextToSpeechV1TextToSpeechVoiceIdPostWithBodyWithResponse(ctx context.Context, voiceId string, params *TextToSpeechV1TextToSpeechVoiceIdPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TextToSpeechV1TextToSpeechVoiceIdPostResponse, error) TextToSpeechV1TextToSpeechVoiceIdPostWithResponse(ctx context.Context, voiceId string, params *TextToSpeechV1TextToSpeechVoiceIdPostParams, body TextToSpeechV1TextToSpeechVoiceIdPostJSONRequestBody, reqEditors ...RequestEditorFn) (*TextToSpeechV1TextToSpeechVoiceIdPostResponse, error) // TextToSpeechV1TextToSpeechVoiceIdStreamPost request with any body TextToSpeechV1TextToSpeechVoiceIdStreamPostWithBodyWithResponse(ctx context.Context, voiceId string, params *TextToSpeechV1TextToSpeechVoiceIdStreamPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TextToSpeechV1TextToSpeechVoiceIdStreamPostResponse, error) TextToSpeechV1TextToSpeechVoiceIdStreamPostWithResponse(ctx context.Context, voiceId string, params *TextToSpeechV1TextToSpeechVoiceIdStreamPostParams, body TextToSpeechV1TextToSpeechVoiceIdStreamPostJSONRequestBody, reqEditors ...RequestEditorFn) (*TextToSpeechV1TextToSpeechVoiceIdStreamPostResponse, error) // GetUserInfoV1UserGet request GetUserInfoV1UserGetWithResponse(ctx context.Context, params *GetUserInfoV1UserGetParams, reqEditors ...RequestEditorFn) (*GetUserInfoV1UserGetResponse, error) // GetUserSubscriptionInfoV1UserSubscriptionGet request GetUserSubscriptionInfoV1UserSubscriptionGetWithResponse(ctx context.Context, params *GetUserSubscriptionInfoV1UserSubscriptionGetParams, reqEditors ...RequestEditorFn) (*GetUserSubscriptionInfoV1UserSubscriptionGetResponse, error) // GetVoicesV1VoicesGet request GetVoicesV1VoicesGetWithResponse(ctx context.Context, params *GetVoicesV1VoicesGetParams, reqEditors ...RequestEditorFn) (*GetVoicesV1VoicesGetResponse, error) // AddVoiceV1VoicesAddPost request with any body AddVoiceV1VoicesAddPostWithBodyWithResponse(ctx context.Context, params *AddVoiceV1VoicesAddPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddVoiceV1VoicesAddPostResponse, error) // GetDefaultVoiceSettingsV1VoicesSettingsDefaultGet request GetDefaultVoiceSettingsV1VoicesSettingsDefaultGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDefaultVoiceSettingsV1VoicesSettingsDefaultGetResponse, error) // DeleteVoiceV1VoicesVoiceIdDelete request DeleteVoiceV1VoicesVoiceIdDeleteWithResponse(ctx context.Context, voiceId string, params *DeleteVoiceV1VoicesVoiceIdDeleteParams, reqEditors ...RequestEditorFn) (*DeleteVoiceV1VoicesVoiceIdDeleteResponse, error) // GetVoiceV1VoicesVoiceIdGet request GetVoiceV1VoicesVoiceIdGetWithResponse(ctx context.Context, voiceId string, params *GetVoiceV1VoicesVoiceIdGetParams, reqEditors ...RequestEditorFn) (*GetVoiceV1VoicesVoiceIdGetResponse, error) // EditVoiceV1VoicesVoiceIdEditPost request with any body EditVoiceV1VoicesVoiceIdEditPostWithBodyWithResponse(ctx context.Context, voiceId string, params *EditVoiceV1VoicesVoiceIdEditPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditVoiceV1VoicesVoiceIdEditPostResponse, error) // DeleteSampleV1VoicesVoiceIdSamplesSampleIdDelete request DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteWithResponse(ctx context.Context, voiceId string, sampleId string, params *DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteParams, reqEditors ...RequestEditorFn) (*DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteResponse, error) // GetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGet request GetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGetWithResponse(ctx context.Context, voiceId string, sampleId string, params *GetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGetParams, reqEditors ...RequestEditorFn) (*GetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGetResponse, error) // GetVoiceSettingsV1VoicesVoiceIdSettingsGet request GetVoiceSettingsV1VoicesVoiceIdSettingsGetWithResponse(ctx context.Context, voiceId string, params *GetVoiceSettingsV1VoicesVoiceIdSettingsGetParams, reqEditors ...RequestEditorFn) (*GetVoiceSettingsV1VoicesVoiceIdSettingsGetResponse, error) // EditVoiceSettingsV1VoicesVoiceIdSettingsEditPost request with any body EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostWithBodyWithResponse(ctx context.Context, voiceId string, params *EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostResponse, error) EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostWithResponse(ctx context.Context, voiceId string, params *EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostParams, body EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostJSONRequestBody, reqEditors ...RequestEditorFn) (*EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostResponse, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
type DeleteHistoryItemV1HistoryHistoryItemIdDeleteParams ¶
type DeleteHistoryItemV1HistoryHistoryItemIdDeleteParams struct { // XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. XiApiKey *string `json:"xi-api-key,omitempty"` }
DeleteHistoryItemV1HistoryHistoryItemIdDeleteParams defines parameters for DeleteHistoryItemV1HistoryHistoryItemIdDelete.
type DeleteHistoryItemV1HistoryHistoryItemIdDeleteResponse ¶
type DeleteHistoryItemV1HistoryHistoryItemIdDeleteResponse struct { Body []byte HTTPResponse *http.Response JSON200 *interface{} JSON422 *HTTPValidationError }
func ParseDeleteHistoryItemV1HistoryHistoryItemIdDeleteResponse ¶
func ParseDeleteHistoryItemV1HistoryHistoryItemIdDeleteResponse(rsp *http.Response) (*DeleteHistoryItemV1HistoryHistoryItemIdDeleteResponse, error)
ParseDeleteHistoryItemV1HistoryHistoryItemIdDeleteResponse parses an HTTP response from a DeleteHistoryItemV1HistoryHistoryItemIdDeleteWithResponse call
func (DeleteHistoryItemV1HistoryHistoryItemIdDeleteResponse) Status ¶
func (r DeleteHistoryItemV1HistoryHistoryItemIdDeleteResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteHistoryItemV1HistoryHistoryItemIdDeleteResponse) StatusCode ¶
func (r DeleteHistoryItemV1HistoryHistoryItemIdDeleteResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteParams ¶
type DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteParams struct { // XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. XiApiKey *string `json:"xi-api-key,omitempty"` }
DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteParams defines parameters for DeleteSampleV1VoicesVoiceIdSamplesSampleIdDelete.
type DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteResponse ¶
type DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteResponse struct { Body []byte HTTPResponse *http.Response JSON200 *interface{} JSON422 *HTTPValidationError }
func ParseDeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteResponse ¶
func ParseDeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteResponse(rsp *http.Response) (*DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteResponse, error)
ParseDeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteResponse parses an HTTP response from a DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteWithResponse call
func (DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteResponse) Status ¶
func (r DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteResponse) StatusCode ¶
func (r DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteVoiceV1VoicesVoiceIdDeleteParams ¶
type DeleteVoiceV1VoicesVoiceIdDeleteParams struct { // XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. XiApiKey *string `json:"xi-api-key,omitempty"` }
DeleteVoiceV1VoicesVoiceIdDeleteParams defines parameters for DeleteVoiceV1VoicesVoiceIdDelete.
type DeleteVoiceV1VoicesVoiceIdDeleteResponse ¶
type DeleteVoiceV1VoicesVoiceIdDeleteResponse struct { Body []byte HTTPResponse *http.Response JSON200 *interface{} JSON422 *HTTPValidationError }
func ParseDeleteVoiceV1VoicesVoiceIdDeleteResponse ¶
func ParseDeleteVoiceV1VoicesVoiceIdDeleteResponse(rsp *http.Response) (*DeleteVoiceV1VoicesVoiceIdDeleteResponse, error)
ParseDeleteVoiceV1VoicesVoiceIdDeleteResponse parses an HTTP response from a DeleteVoiceV1VoicesVoiceIdDeleteWithResponse call
func (DeleteVoiceV1VoicesVoiceIdDeleteResponse) Status ¶
func (r DeleteVoiceV1VoicesVoiceIdDeleteResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteVoiceV1VoicesVoiceIdDeleteResponse) StatusCode ¶
func (r DeleteVoiceV1VoicesVoiceIdDeleteResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DownloadHistoryItemsV1HistoryDownloadPostJSONRequestBody ¶
type DownloadHistoryItemsV1HistoryDownloadPostJSONRequestBody = BodyDownloadHistoryItemsV1HistoryDownloadPost
DownloadHistoryItemsV1HistoryDownloadPostJSONRequestBody defines body for DownloadHistoryItemsV1HistoryDownloadPost for application/json ContentType.
type DownloadHistoryItemsV1HistoryDownloadPostParams ¶
type DownloadHistoryItemsV1HistoryDownloadPostParams struct { // XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. XiApiKey *string `json:"xi-api-key,omitempty"` }
DownloadHistoryItemsV1HistoryDownloadPostParams defines parameters for DownloadHistoryItemsV1HistoryDownloadPost.
type DownloadHistoryItemsV1HistoryDownloadPostResponse ¶
type DownloadHistoryItemsV1HistoryDownloadPostResponse struct { Body []byte HTTPResponse *http.Response JSON422 *HTTPValidationError }
func ParseDownloadHistoryItemsV1HistoryDownloadPostResponse ¶
func ParseDownloadHistoryItemsV1HistoryDownloadPostResponse(rsp *http.Response) (*DownloadHistoryItemsV1HistoryDownloadPostResponse, error)
ParseDownloadHistoryItemsV1HistoryDownloadPostResponse parses an HTTP response from a DownloadHistoryItemsV1HistoryDownloadPostWithResponse call
func (DownloadHistoryItemsV1HistoryDownloadPostResponse) Status ¶
func (r DownloadHistoryItemsV1HistoryDownloadPostResponse) Status() string
Status returns HTTPResponse.Status
func (DownloadHistoryItemsV1HistoryDownloadPostResponse) StatusCode ¶
func (r DownloadHistoryItemsV1HistoryDownloadPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostJSONBody ¶
type EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostJSONBody = VoiceSettingsResponseModel
EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostJSONBody defines parameters for EditVoiceSettingsV1VoicesVoiceIdSettingsEditPost.
type EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostJSONRequestBody ¶
type EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostJSONRequestBody = EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostJSONBody
EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostJSONRequestBody defines body for EditVoiceSettingsV1VoicesVoiceIdSettingsEditPost for application/json ContentType.
type EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostParams ¶
type EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostParams struct { // XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. XiApiKey *string `json:"xi-api-key,omitempty"` }
EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostParams defines parameters for EditVoiceSettingsV1VoicesVoiceIdSettingsEditPost.
type EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostResponse ¶
type EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostResponse struct { Body []byte HTTPResponse *http.Response JSON200 *interface{} JSON422 *HTTPValidationError }
func ParseEditVoiceSettingsV1VoicesVoiceIdSettingsEditPostResponse ¶
func ParseEditVoiceSettingsV1VoicesVoiceIdSettingsEditPostResponse(rsp *http.Response) (*EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostResponse, error)
ParseEditVoiceSettingsV1VoicesVoiceIdSettingsEditPostResponse parses an HTTP response from a EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostWithResponse call
func (EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostResponse) Status ¶
func (r EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostResponse) Status() string
Status returns HTTPResponse.Status
func (EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostResponse) StatusCode ¶
func (r EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EditVoiceV1VoicesVoiceIdEditPostMultipartRequestBody ¶
type EditVoiceV1VoicesVoiceIdEditPostMultipartRequestBody = BodyEditVoiceV1VoicesVoiceIdEditPost
EditVoiceV1VoicesVoiceIdEditPostMultipartRequestBody defines body for EditVoiceV1VoicesVoiceIdEditPost for multipart/form-data ContentType.
type EditVoiceV1VoicesVoiceIdEditPostParams ¶
type EditVoiceV1VoicesVoiceIdEditPostParams struct { // XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. XiApiKey *string `json:"xi-api-key,omitempty"` }
EditVoiceV1VoicesVoiceIdEditPostParams defines parameters for EditVoiceV1VoicesVoiceIdEditPost.
type EditVoiceV1VoicesVoiceIdEditPostResponse ¶
type EditVoiceV1VoicesVoiceIdEditPostResponse struct { Body []byte HTTPResponse *http.Response JSON200 *interface{} JSON422 *HTTPValidationError }
func ParseEditVoiceV1VoicesVoiceIdEditPostResponse ¶
func ParseEditVoiceV1VoicesVoiceIdEditPostResponse(rsp *http.Response) (*EditVoiceV1VoicesVoiceIdEditPostResponse, error)
ParseEditVoiceV1VoicesVoiceIdEditPostResponse parses an HTTP response from a EditVoiceV1VoicesVoiceIdEditPostWithResponse call
func (EditVoiceV1VoicesVoiceIdEditPostResponse) Status ¶
func (r EditVoiceV1VoicesVoiceIdEditPostResponse) Status() string
Status returns HTTPResponse.Status
func (EditVoiceV1VoicesVoiceIdEditPostResponse) StatusCode ¶
func (r EditVoiceV1VoicesVoiceIdEditPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExtendedSubscriptionResponseModel ¶
type ExtendedSubscriptionResponseModel struct { AllowedToExtendCharacterLimit bool `json:"allowed_to_extend_character_limit"` CanExtendCharacterLimit bool `json:"can_extend_character_limit"` CanExtendVoiceLimit bool `json:"can_extend_voice_limit"` CanUseInstantVoiceCloning bool `json:"can_use_instant_voice_cloning"` CanUseProfessionalVoiceCloning bool `json:"can_use_professional_voice_cloning"` CharacterCount int `json:"character_count"` CharacterLimit int `json:"character_limit"` Currency ExtendedSubscriptionResponseModelCurrency `json:"currency"` HasOpenInvoices bool `json:"has_open_invoices"` NextCharacterCountResetUnix int `json:"next_character_count_reset_unix"` NextInvoice InvoiceResponseModel `json:"next_invoice"` ProfessionalVoiceLimit int `json:"professional_voice_limit"` Status ExtendedSubscriptionResponseModelStatus `json:"status"` Tier string `json:"tier"` VoiceLimit int `json:"voice_limit"` }
ExtendedSubscriptionResponseModel defines model for ExtendedSubscriptionResponseModel.
type ExtendedSubscriptionResponseModelCurrency ¶
type ExtendedSubscriptionResponseModelCurrency string
ExtendedSubscriptionResponseModelCurrency defines model for ExtendedSubscriptionResponseModel.Currency.
const ( ExtendedSubscriptionResponseModelCurrencyEur ExtendedSubscriptionResponseModelCurrency = "eur" ExtendedSubscriptionResponseModelCurrencyUsd ExtendedSubscriptionResponseModelCurrency = "usd" )
Defines values for ExtendedSubscriptionResponseModelCurrency.
type ExtendedSubscriptionResponseModelStatus ¶
type ExtendedSubscriptionResponseModelStatus string
ExtendedSubscriptionResponseModelStatus defines model for ExtendedSubscriptionResponseModel.Status.
const ( ExtendedSubscriptionResponseModelStatusActive ExtendedSubscriptionResponseModelStatus = "active" ExtendedSubscriptionResponseModelStatusCanceled ExtendedSubscriptionResponseModelStatus = "canceled" ExtendedSubscriptionResponseModelStatusFree ExtendedSubscriptionResponseModelStatus = "free" ExtendedSubscriptionResponseModelStatusIncomplete ExtendedSubscriptionResponseModelStatus = "incomplete" ExtendedSubscriptionResponseModelStatusIncompleteExpired ExtendedSubscriptionResponseModelStatus = "incomplete_expired" ExtendedSubscriptionResponseModelStatusPastDue ExtendedSubscriptionResponseModelStatus = "past_due" ExtendedSubscriptionResponseModelStatusTrialing ExtendedSubscriptionResponseModelStatus = "trialing" ExtendedSubscriptionResponseModelStatusUnpaid ExtendedSubscriptionResponseModelStatus = "unpaid" )
Defines values for ExtendedSubscriptionResponseModelStatus.
type FeedbackResponseModel ¶
type FeedbackResponseModel struct { AudioQuality bool `json:"audio_quality"` Emotions bool `json:"emotions"` Feedback string `json:"feedback"` Glitches bool `json:"glitches"` InaccurateClone bool `json:"inaccurate_clone"` Other bool `json:"other"` ReviewStatus *string `json:"review_status,omitempty"` ThumbsUp bool `json:"thumbs_up"` }
FeedbackResponseModel defines model for FeedbackResponseModel.
type FineTuningResponseModel ¶
type FineTuningResponseModel struct { FineTuningRequested bool `json:"fine_tuning_requested"` FinetuningState FineTuningResponseModelFinetuningState `json:"finetuning_state"` IsAllowedToFineTune bool `json:"is_allowed_to_fine_tune"` Language string `json:"language"` ManualVerification ManualVerificationResponseModel `json:"manual_verification"` ManualVerificationRequested bool `json:"manual_verification_requested"` ModelId string `json:"model_id"` SliceIds []string `json:"slice_ids"` VerificationAttempts []VerificationAttemptResponseModel `json:"verification_attempts"` VerificationAttemptsCount int `json:"verification_attempts_count"` VerificationFailures []string `json:"verification_failures"` }
FineTuningResponseModel defines model for FineTuningResponseModel.
type FineTuningResponseModelFinetuningState ¶
type FineTuningResponseModelFinetuningState string
FineTuningResponseModelFinetuningState defines model for FineTuningResponseModel.FinetuningState.
const ( FineTuned FineTuningResponseModelFinetuningState = "fine_tuned" IsFineTuning FineTuningResponseModelFinetuningState = "is_fine_tuning" NotStarted FineTuningResponseModelFinetuningState = "not_started" )
Defines values for FineTuningResponseModelFinetuningState.
type GetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGetParams ¶
type GetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGetParams struct { // XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. XiApiKey *string `json:"xi-api-key,omitempty"` }
GetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGetParams defines parameters for GetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGet.
type GetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGetResponse ¶
type GetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGetResponse struct { Body []byte HTTPResponse *http.Response JSON422 *HTTPValidationError }
func ParseGetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGetResponse ¶
func ParseGetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGetResponse(rsp *http.Response) (*GetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGetResponse, error)
ParseGetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGetResponse parses an HTTP response from a GetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGetWithResponse call
func (GetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGetResponse) Status ¶
func (r GetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGetResponse) Status() string
Status returns HTTPResponse.Status
func (GetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGetResponse) StatusCode ¶
func (r GetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGetParams ¶
type GetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGetParams struct { // XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. XiApiKey *string `json:"xi-api-key,omitempty"` }
GetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGetParams defines parameters for GetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGet.
type GetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGetResponse ¶
type GetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGetResponse struct { Body []byte HTTPResponse *http.Response JSON422 *HTTPValidationError }
func ParseGetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGetResponse ¶
func ParseGetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGetResponse(rsp *http.Response) (*GetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGetResponse, error)
ParseGetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGetResponse parses an HTTP response from a GetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGetWithResponse call
func (GetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGetResponse) Status ¶
func (r GetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGetResponse) Status() string
Status returns HTTPResponse.Status
func (GetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGetResponse) StatusCode ¶
func (r GetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetDefaultVoiceSettingsV1VoicesSettingsDefaultGetResponse ¶
type GetDefaultVoiceSettingsV1VoicesSettingsDefaultGetResponse struct { Body []byte HTTPResponse *http.Response JSON200 *VoiceSettingsResponseModel }
func ParseGetDefaultVoiceSettingsV1VoicesSettingsDefaultGetResponse ¶
func ParseGetDefaultVoiceSettingsV1VoicesSettingsDefaultGetResponse(rsp *http.Response) (*GetDefaultVoiceSettingsV1VoicesSettingsDefaultGetResponse, error)
ParseGetDefaultVoiceSettingsV1VoicesSettingsDefaultGetResponse parses an HTTP response from a GetDefaultVoiceSettingsV1VoicesSettingsDefaultGetWithResponse call
func (GetDefaultVoiceSettingsV1VoicesSettingsDefaultGetResponse) Status ¶
func (r GetDefaultVoiceSettingsV1VoicesSettingsDefaultGetResponse) Status() string
Status returns HTTPResponse.Status
func (GetDefaultVoiceSettingsV1VoicesSettingsDefaultGetResponse) StatusCode ¶
func (r GetDefaultVoiceSettingsV1VoicesSettingsDefaultGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetGeneratedItemsV1HistoryGetParams ¶
type GetGeneratedItemsV1HistoryGetParams struct { // PageSize How many history items to return at maximum. Can not exceed 1000, defaults to 100. PageSize *int `form:"page_size,omitempty" json:"page_size,omitempty"` // StartAfterHistoryItemId After which history_item_id to start fetching, use this parameter to paginate across a large collection of history items. In case this parameter is not provided history items will be fetched starting from the most recently created one ordered descending by their creation date. StartAfterHistoryItemId *string `form:"start_after_history_item_id,omitempty" json:"start_after_history_item_id,omitempty"` // XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. XiApiKey *string `json:"xi-api-key,omitempty"` }
GetGeneratedItemsV1HistoryGetParams defines parameters for GetGeneratedItemsV1HistoryGet.
type GetGeneratedItemsV1HistoryGetResponse ¶
type GetGeneratedItemsV1HistoryGetResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetHistoryResponseModel JSON422 *HTTPValidationError }
func ParseGetGeneratedItemsV1HistoryGetResponse ¶
func ParseGetGeneratedItemsV1HistoryGetResponse(rsp *http.Response) (*GetGeneratedItemsV1HistoryGetResponse, error)
ParseGetGeneratedItemsV1HistoryGetResponse parses an HTTP response from a GetGeneratedItemsV1HistoryGetWithResponse call
func (GetGeneratedItemsV1HistoryGetResponse) Status ¶
func (r GetGeneratedItemsV1HistoryGetResponse) Status() string
Status returns HTTPResponse.Status
func (GetGeneratedItemsV1HistoryGetResponse) StatusCode ¶
func (r GetGeneratedItemsV1HistoryGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetHistoryItemByIDV1HistoryHistoryItemIdGetParams ¶
type GetHistoryItemByIDV1HistoryHistoryItemIdGetParams struct { // XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. XiApiKey *string `json:"xi-api-key,omitempty"` }
GetHistoryItemByIDV1HistoryHistoryItemIdGetParams defines parameters for GetHistoryItemByIDV1HistoryHistoryItemIdGet.
type GetHistoryItemByIDV1HistoryHistoryItemIdGetResponse ¶
type GetHistoryItemByIDV1HistoryHistoryItemIdGetResponse struct { Body []byte HTTPResponse *http.Response JSON200 *HistoryItemResponseModel JSON422 *HTTPValidationError }
func ParseGetHistoryItemByIDV1HistoryHistoryItemIdGetResponse ¶
func ParseGetHistoryItemByIDV1HistoryHistoryItemIdGetResponse(rsp *http.Response) (*GetHistoryItemByIDV1HistoryHistoryItemIdGetResponse, error)
ParseGetHistoryItemByIDV1HistoryHistoryItemIdGetResponse parses an HTTP response from a GetHistoryItemByIDV1HistoryHistoryItemIdGetWithResponse call
func (GetHistoryItemByIDV1HistoryHistoryItemIdGetResponse) Status ¶
func (r GetHistoryItemByIDV1HistoryHistoryItemIdGetResponse) Status() string
Status returns HTTPResponse.Status
func (GetHistoryItemByIDV1HistoryHistoryItemIdGetResponse) StatusCode ¶
func (r GetHistoryItemByIDV1HistoryHistoryItemIdGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetHistoryResponseModel ¶
type GetHistoryResponseModel struct { HasMore bool `json:"has_more"` History []HistoryItemResponseModel `json:"history"` LastHistoryItemId string `json:"last_history_item_id"` }
GetHistoryResponseModel defines model for GetHistoryResponseModel.
type GetModelsV1ModelsGetParams ¶
type GetModelsV1ModelsGetParams struct { // XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. XiApiKey *string `json:"xi-api-key,omitempty"` }
GetModelsV1ModelsGetParams defines parameters for GetModelsV1ModelsGet.
type GetModelsV1ModelsGetResponse ¶
type GetModelsV1ModelsGetResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]ModelResponseModel JSON422 *HTTPValidationError }
func ParseGetModelsV1ModelsGetResponse ¶
func ParseGetModelsV1ModelsGetResponse(rsp *http.Response) (*GetModelsV1ModelsGetResponse, error)
ParseGetModelsV1ModelsGetResponse parses an HTTP response from a GetModelsV1ModelsGetWithResponse call
func (GetModelsV1ModelsGetResponse) Status ¶
func (r GetModelsV1ModelsGetResponse) Status() string
Status returns HTTPResponse.Status
func (GetModelsV1ModelsGetResponse) StatusCode ¶
func (r GetModelsV1ModelsGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUserInfoV1UserGetParams ¶
type GetUserInfoV1UserGetParams struct { // XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. XiApiKey *string `json:"xi-api-key,omitempty"` }
GetUserInfoV1UserGetParams defines parameters for GetUserInfoV1UserGet.
type GetUserInfoV1UserGetResponse ¶
type GetUserInfoV1UserGetResponse struct { Body []byte HTTPResponse *http.Response JSON200 *UserResponseModel JSON422 *HTTPValidationError }
func ParseGetUserInfoV1UserGetResponse ¶
func ParseGetUserInfoV1UserGetResponse(rsp *http.Response) (*GetUserInfoV1UserGetResponse, error)
ParseGetUserInfoV1UserGetResponse parses an HTTP response from a GetUserInfoV1UserGetWithResponse call
func (GetUserInfoV1UserGetResponse) Status ¶
func (r GetUserInfoV1UserGetResponse) Status() string
Status returns HTTPResponse.Status
func (GetUserInfoV1UserGetResponse) StatusCode ¶
func (r GetUserInfoV1UserGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUserSubscriptionInfoV1UserSubscriptionGetParams ¶
type GetUserSubscriptionInfoV1UserSubscriptionGetParams struct { // XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. XiApiKey *string `json:"xi-api-key,omitempty"` }
GetUserSubscriptionInfoV1UserSubscriptionGetParams defines parameters for GetUserSubscriptionInfoV1UserSubscriptionGet.
type GetUserSubscriptionInfoV1UserSubscriptionGetResponse ¶
type GetUserSubscriptionInfoV1UserSubscriptionGetResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ExtendedSubscriptionResponseModel JSON422 *HTTPValidationError }
func ParseGetUserSubscriptionInfoV1UserSubscriptionGetResponse ¶
func ParseGetUserSubscriptionInfoV1UserSubscriptionGetResponse(rsp *http.Response) (*GetUserSubscriptionInfoV1UserSubscriptionGetResponse, error)
ParseGetUserSubscriptionInfoV1UserSubscriptionGetResponse parses an HTTP response from a GetUserSubscriptionInfoV1UserSubscriptionGetWithResponse call
func (GetUserSubscriptionInfoV1UserSubscriptionGetResponse) Status ¶
func (r GetUserSubscriptionInfoV1UserSubscriptionGetResponse) Status() string
Status returns HTTPResponse.Status
func (GetUserSubscriptionInfoV1UserSubscriptionGetResponse) StatusCode ¶
func (r GetUserSubscriptionInfoV1UserSubscriptionGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetVoiceSettingsV1VoicesVoiceIdSettingsGetParams ¶
type GetVoiceSettingsV1VoicesVoiceIdSettingsGetParams struct { // XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. XiApiKey *string `json:"xi-api-key,omitempty"` }
GetVoiceSettingsV1VoicesVoiceIdSettingsGetParams defines parameters for GetVoiceSettingsV1VoicesVoiceIdSettingsGet.
type GetVoiceSettingsV1VoicesVoiceIdSettingsGetResponse ¶
type GetVoiceSettingsV1VoicesVoiceIdSettingsGetResponse struct { Body []byte HTTPResponse *http.Response JSON200 *VoiceSettingsResponseModel JSON422 *HTTPValidationError }
func ParseGetVoiceSettingsV1VoicesVoiceIdSettingsGetResponse ¶
func ParseGetVoiceSettingsV1VoicesVoiceIdSettingsGetResponse(rsp *http.Response) (*GetVoiceSettingsV1VoicesVoiceIdSettingsGetResponse, error)
ParseGetVoiceSettingsV1VoicesVoiceIdSettingsGetResponse parses an HTTP response from a GetVoiceSettingsV1VoicesVoiceIdSettingsGetWithResponse call
func (GetVoiceSettingsV1VoicesVoiceIdSettingsGetResponse) Status ¶
func (r GetVoiceSettingsV1VoicesVoiceIdSettingsGetResponse) Status() string
Status returns HTTPResponse.Status
func (GetVoiceSettingsV1VoicesVoiceIdSettingsGetResponse) StatusCode ¶
func (r GetVoiceSettingsV1VoicesVoiceIdSettingsGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetVoiceV1VoicesVoiceIdGetParams ¶
type GetVoiceV1VoicesVoiceIdGetParams struct { // WithSettings If set will return settings information corresponding to the voice, requires authorization. WithSettings *bool `form:"with_settings,omitempty" json:"with_settings,omitempty"` // XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. XiApiKey *string `json:"xi-api-key,omitempty"` }
GetVoiceV1VoicesVoiceIdGetParams defines parameters for GetVoiceV1VoicesVoiceIdGet.
type GetVoiceV1VoicesVoiceIdGetResponse ¶
type GetVoiceV1VoicesVoiceIdGetResponse struct { Body []byte HTTPResponse *http.Response JSON200 *VoiceResponseModel JSON422 *HTTPValidationError }
func ParseGetVoiceV1VoicesVoiceIdGetResponse ¶
func ParseGetVoiceV1VoicesVoiceIdGetResponse(rsp *http.Response) (*GetVoiceV1VoicesVoiceIdGetResponse, error)
ParseGetVoiceV1VoicesVoiceIdGetResponse parses an HTTP response from a GetVoiceV1VoicesVoiceIdGetWithResponse call
func (GetVoiceV1VoicesVoiceIdGetResponse) Status ¶
func (r GetVoiceV1VoicesVoiceIdGetResponse) Status() string
Status returns HTTPResponse.Status
func (GetVoiceV1VoicesVoiceIdGetResponse) StatusCode ¶
func (r GetVoiceV1VoicesVoiceIdGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetVoicesResponseModel ¶
type GetVoicesResponseModel struct {
Voices []VoiceResponseModel `json:"voices"`
}
GetVoicesResponseModel defines model for GetVoicesResponseModel.
type GetVoicesV1VoicesGetParams ¶
type GetVoicesV1VoicesGetParams struct { // XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. XiApiKey *string `json:"xi-api-key,omitempty"` }
GetVoicesV1VoicesGetParams defines parameters for GetVoicesV1VoicesGet.
type GetVoicesV1VoicesGetResponse ¶
type GetVoicesV1VoicesGetResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetVoicesResponseModel JSON422 *HTTPValidationError }
func ParseGetVoicesV1VoicesGetResponse ¶
func ParseGetVoicesV1VoicesGetResponse(rsp *http.Response) (*GetVoicesV1VoicesGetResponse, error)
ParseGetVoicesV1VoicesGetResponse parses an HTTP response from a GetVoicesV1VoicesGetWithResponse call
func (GetVoicesV1VoicesGetResponse) Status ¶
func (r GetVoicesV1VoicesGetResponse) Status() string
Status returns HTTPResponse.Status
func (GetVoicesV1VoicesGetResponse) StatusCode ¶
func (r GetVoicesV1VoicesGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HTTPValidationError ¶
type HTTPValidationError struct {
Detail *[]ValidationError `json:"detail,omitempty"`
}
HTTPValidationError defines model for HTTPValidationError.
type HistoryItemResponseModel ¶
type HistoryItemResponseModel struct { CharacterCountChangeFrom int `json:"character_count_change_from"` CharacterCountChangeTo int `json:"character_count_change_to"` ContentType string `json:"content_type"` DateUnix int `json:"date_unix"` Feedback FeedbackResponseModel `json:"feedback"` HistoryItemId string `json:"history_item_id"` RequestId string `json:"request_id"` Settings map[string]interface{} `json:"settings"` State HistoryItemResponseModelState `json:"state"` Text string `json:"text"` VoiceId string `json:"voice_id"` VoiceName string `json:"voice_name"` }
HistoryItemResponseModel defines model for HistoryItemResponseModel.
type HistoryItemResponseModelState ¶
type HistoryItemResponseModelState string
HistoryItemResponseModelState defines model for HistoryItemResponseModel.State.
const ( Created HistoryItemResponseModelState = "created" Deleted HistoryItemResponseModelState = "deleted" Processing HistoryItemResponseModelState = "processing" )
Defines values for HistoryItemResponseModelState.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type InvoiceResponseModel ¶
type InvoiceResponseModel struct { AmountDueCents int `json:"amount_due_cents"` NextPaymentAttemptUnix int `json:"next_payment_attempt_unix"` }
InvoiceResponseModel defines model for InvoiceResponseModel.
type LanguageResponseModel ¶
type LanguageResponseModel struct { LanguageId string `json:"language_id"` Name string `json:"name"` }
LanguageResponseModel defines model for LanguageResponseModel.
type ManualVerificationFileResponseModel ¶
type ManualVerificationFileResponseModel struct { FileId string `json:"file_id"` FileName string `json:"file_name"` MimeType string `json:"mime_type"` SizeBytes int `json:"size_bytes"` UploadDateUnix int `json:"upload_date_unix"` }
ManualVerificationFileResponseModel defines model for ManualVerificationFileResponseModel.
type ManualVerificationResponseModel ¶
type ManualVerificationResponseModel struct { ExtraText string `json:"extra_text"` Files []ManualVerificationFileResponseModel `json:"files"` RequestTimeUnix int `json:"request_time_unix"` }
ManualVerificationResponseModel defines model for ManualVerificationResponseModel.
type ModelResponseModel ¶
type ModelResponseModel struct { CanBeFinetuned bool `json:"can_be_finetuned"` CanDoTextToSpeech bool `json:"can_do_text_to_speech"` CanDoVoiceConversion bool `json:"can_do_voice_conversion"` CanUseSpeakerBoost bool `json:"can_use_speaker_boost"` CanUseStyle bool `json:"can_use_style"` Description string `json:"description"` Languages []LanguageResponseModel `json:"languages"` MaxCharactersRequestFreeUser int `json:"max_characters_request_free_user"` MaxCharactersRequestSubscribedUser int `json:"max_characters_request_subscribed_user"` ModelId string `json:"model_id"` Name string `json:"name"` RequiresAlphaAccess bool `json:"requires_alpha_access"` ServesProVoices bool `json:"serves_pro_voices"` TokenCostFactor float32 `json:"token_cost_factor"` }
ModelResponseModel defines model for ModelResponseModel.
type RecordingResponseModel ¶
type RecordingResponseModel struct { MimeType string `json:"mime_type"` RecordingId string `json:"recording_id"` SizeBytes int `json:"size_bytes"` Transcription string `json:"transcription"` UploadDateUnix int `json:"upload_date_unix"` }
RecordingResponseModel defines model for RecordingResponseModel.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type SampleResponseModel ¶
type SampleResponseModel struct { FileName string `json:"file_name"` Hash string `json:"hash"` MimeType string `json:"mime_type"` SampleId string `json:"sample_id"` SizeBytes int `json:"size_bytes"` }
SampleResponseModel defines model for SampleResponseModel.
type SubscriptionResponseModel ¶
type SubscriptionResponseModel struct { AllowedToExtendCharacterLimit bool `json:"allowed_to_extend_character_limit"` CanExtendCharacterLimit bool `json:"can_extend_character_limit"` CanExtendVoiceLimit bool `json:"can_extend_voice_limit"` CanUseInstantVoiceCloning bool `json:"can_use_instant_voice_cloning"` CanUseProfessionalVoiceCloning bool `json:"can_use_professional_voice_cloning"` CharacterCount int `json:"character_count"` CharacterLimit int `json:"character_limit"` Currency SubscriptionResponseModelCurrency `json:"currency"` NextCharacterCountResetUnix int `json:"next_character_count_reset_unix"` ProfessionalVoiceLimit int `json:"professional_voice_limit"` Status SubscriptionResponseModelStatus `json:"status"` Tier string `json:"tier"` VoiceLimit int `json:"voice_limit"` }
SubscriptionResponseModel defines model for SubscriptionResponseModel.
type SubscriptionResponseModelCurrency ¶
type SubscriptionResponseModelCurrency string
SubscriptionResponseModelCurrency defines model for SubscriptionResponseModel.Currency.
const ( SubscriptionResponseModelCurrencyEur SubscriptionResponseModelCurrency = "eur" SubscriptionResponseModelCurrencyUsd SubscriptionResponseModelCurrency = "usd" )
Defines values for SubscriptionResponseModelCurrency.
type SubscriptionResponseModelStatus ¶
type SubscriptionResponseModelStatus string
SubscriptionResponseModelStatus defines model for SubscriptionResponseModel.Status.
const ( SubscriptionResponseModelStatusActive SubscriptionResponseModelStatus = "active" SubscriptionResponseModelStatusCanceled SubscriptionResponseModelStatus = "canceled" SubscriptionResponseModelStatusFree SubscriptionResponseModelStatus = "free" SubscriptionResponseModelStatusIncomplete SubscriptionResponseModelStatus = "incomplete" SubscriptionResponseModelStatusIncompleteExpired SubscriptionResponseModelStatus = "incomplete_expired" SubscriptionResponseModelStatusPastDue SubscriptionResponseModelStatus = "past_due" SubscriptionResponseModelStatusTrialing SubscriptionResponseModelStatus = "trialing" SubscriptionResponseModelStatusUnpaid SubscriptionResponseModelStatus = "unpaid" )
Defines values for SubscriptionResponseModelStatus.
type TextToSpeechV1TextToSpeechVoiceIdPostJSONRequestBody ¶
type TextToSpeechV1TextToSpeechVoiceIdPostJSONRequestBody = BodyTextToSpeechV1TextToSpeechVoiceIdPost
TextToSpeechV1TextToSpeechVoiceIdPostJSONRequestBody defines body for TextToSpeechV1TextToSpeechVoiceIdPost for application/json ContentType.
type TextToSpeechV1TextToSpeechVoiceIdPostParams ¶
type TextToSpeechV1TextToSpeechVoiceIdPostParams struct { // OptimizeStreamingLatency You can turn on latency optimizations at some cost of quality. The best possible final latency varies by model. Possible values: // 0 - default mode (no latency optimizations) // 1 - normal latency optimizations (about 50% of possible latency improvement of option 3) // 2 - strong latency optimizations (about 75% of possible latency improvement of option 3) // 3 - max latency optimizations // 4 - max latency optimizations, but also with text normalizer turned off for even more latency savings (best latency, but can mispronounce eg numbers and dates). OptimizeStreamingLatency *int `form:"optimize_streaming_latency,omitempty" json:"optimize_streaming_latency,omitempty"` // XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. XiApiKey *string `json:"xi-api-key,omitempty"` }
TextToSpeechV1TextToSpeechVoiceIdPostParams defines parameters for TextToSpeechV1TextToSpeechVoiceIdPost.
type TextToSpeechV1TextToSpeechVoiceIdPostResponse ¶
type TextToSpeechV1TextToSpeechVoiceIdPostResponse struct { Body []byte HTTPResponse *http.Response JSON422 *HTTPValidationError }
func ParseTextToSpeechV1TextToSpeechVoiceIdPostResponse ¶
func ParseTextToSpeechV1TextToSpeechVoiceIdPostResponse(rsp *http.Response) (*TextToSpeechV1TextToSpeechVoiceIdPostResponse, error)
ParseTextToSpeechV1TextToSpeechVoiceIdPostResponse parses an HTTP response from a TextToSpeechV1TextToSpeechVoiceIdPostWithResponse call
func (TextToSpeechV1TextToSpeechVoiceIdPostResponse) Status ¶
func (r TextToSpeechV1TextToSpeechVoiceIdPostResponse) Status() string
Status returns HTTPResponse.Status
func (TextToSpeechV1TextToSpeechVoiceIdPostResponse) StatusCode ¶
func (r TextToSpeechV1TextToSpeechVoiceIdPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type TextToSpeechV1TextToSpeechVoiceIdStreamPostJSONRequestBody ¶
type TextToSpeechV1TextToSpeechVoiceIdStreamPostJSONRequestBody = BodyTextToSpeechV1TextToSpeechVoiceIdStreamPost
TextToSpeechV1TextToSpeechVoiceIdStreamPostJSONRequestBody defines body for TextToSpeechV1TextToSpeechVoiceIdStreamPost for application/json ContentType.
type TextToSpeechV1TextToSpeechVoiceIdStreamPostParams ¶
type TextToSpeechV1TextToSpeechVoiceIdStreamPostParams struct { // OptimizeStreamingLatency You can turn on latency optimizations at some cost of quality. The best possible final latency varies by model. Possible values: // 0 - default mode (no latency optimizations) // 1 - normal latency optimizations (about 50% of possible latency improvement of option 3) // 2 - strong latency optimizations (about 75% of possible latency improvement of option 3) // 3 - max latency optimizations // 4 - max latency optimizations, but also with text normalizer turned off for even more latency savings (best latency, but can mispronounce eg numbers and dates). OptimizeStreamingLatency *int `form:"optimize_streaming_latency,omitempty" json:"optimize_streaming_latency,omitempty"` // XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. XiApiKey *string `json:"xi-api-key,omitempty"` }
TextToSpeechV1TextToSpeechVoiceIdStreamPostParams defines parameters for TextToSpeechV1TextToSpeechVoiceIdStreamPost.
type TextToSpeechV1TextToSpeechVoiceIdStreamPostResponse ¶
type TextToSpeechV1TextToSpeechVoiceIdStreamPostResponse struct { Body []byte HTTPResponse *http.Response JSON422 *HTTPValidationError }
func ParseTextToSpeechV1TextToSpeechVoiceIdStreamPostResponse ¶
func ParseTextToSpeechV1TextToSpeechVoiceIdStreamPostResponse(rsp *http.Response) (*TextToSpeechV1TextToSpeechVoiceIdStreamPostResponse, error)
ParseTextToSpeechV1TextToSpeechVoiceIdStreamPostResponse parses an HTTP response from a TextToSpeechV1TextToSpeechVoiceIdStreamPostWithResponse call
func (TextToSpeechV1TextToSpeechVoiceIdStreamPostResponse) Status ¶
func (r TextToSpeechV1TextToSpeechVoiceIdStreamPostResponse) Status() string
Status returns HTTPResponse.Status
func (TextToSpeechV1TextToSpeechVoiceIdStreamPostResponse) StatusCode ¶
func (r TextToSpeechV1TextToSpeechVoiceIdStreamPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UserResponseModel ¶
type UserResponseModel struct { CanUseDelayedPaymentMethods bool `json:"can_use_delayed_payment_methods"` IsNewUser bool `json:"is_new_user"` Subscription SubscriptionResponseModel `json:"subscription"` XiApiKey string `json:"xi_api_key"` }
UserResponseModel defines model for UserResponseModel.
type ValidationError ¶
type ValidationError struct { Loc []ValidationError_Loc_Item `json:"loc"` Msg string `json:"msg"` Type string `json:"type"` }
ValidationError defines model for ValidationError.
type ValidationErrorLoc0 ¶
type ValidationErrorLoc0 = string
ValidationErrorLoc0 defines model for .
type ValidationError_Loc_Item ¶
type ValidationError_Loc_Item struct {
// contains filtered or unexported fields
}
ValidationError_Loc_Item defines model for ValidationError.loc.Item.
func (ValidationError_Loc_Item) AsValidationErrorLoc0 ¶
func (t ValidationError_Loc_Item) AsValidationErrorLoc0() (ValidationErrorLoc0, error)
AsValidationErrorLoc0 returns the union data inside the ValidationError_Loc_Item as a ValidationErrorLoc0
func (ValidationError_Loc_Item) AsValidationErrorLoc1 ¶
func (t ValidationError_Loc_Item) AsValidationErrorLoc1() (ValidationErrorLoc1, error)
AsValidationErrorLoc1 returns the union data inside the ValidationError_Loc_Item as a ValidationErrorLoc1
func (*ValidationError_Loc_Item) FromValidationErrorLoc0 ¶
func (t *ValidationError_Loc_Item) FromValidationErrorLoc0(v ValidationErrorLoc0) error
FromValidationErrorLoc0 overwrites any union data inside the ValidationError_Loc_Item as the provided ValidationErrorLoc0
func (*ValidationError_Loc_Item) FromValidationErrorLoc1 ¶
func (t *ValidationError_Loc_Item) FromValidationErrorLoc1(v ValidationErrorLoc1) error
FromValidationErrorLoc1 overwrites any union data inside the ValidationError_Loc_Item as the provided ValidationErrorLoc1
func (ValidationError_Loc_Item) MarshalJSON ¶
func (t ValidationError_Loc_Item) MarshalJSON() ([]byte, error)
func (*ValidationError_Loc_Item) MergeValidationErrorLoc0 ¶
func (t *ValidationError_Loc_Item) MergeValidationErrorLoc0(v ValidationErrorLoc0) error
MergeValidationErrorLoc0 performs a merge with any union data inside the ValidationError_Loc_Item, using the provided ValidationErrorLoc0
func (*ValidationError_Loc_Item) MergeValidationErrorLoc1 ¶
func (t *ValidationError_Loc_Item) MergeValidationErrorLoc1(v ValidationErrorLoc1) error
MergeValidationErrorLoc1 performs a merge with any union data inside the ValidationError_Loc_Item, using the provided ValidationErrorLoc1
func (*ValidationError_Loc_Item) UnmarshalJSON ¶
func (t *ValidationError_Loc_Item) UnmarshalJSON(b []byte) error
type VerificationAttemptResponseModel ¶
type VerificationAttemptResponseModel struct { Accepted bool `json:"accepted"` DateUnix int `json:"date_unix"` LevenshteinDistance float32 `json:"levenshtein_distance"` Recording RecordingResponseModel `json:"recording"` Similarity float32 `json:"similarity"` Text string `json:"text"` }
VerificationAttemptResponseModel defines model for VerificationAttemptResponseModel.
type VoiceResponseModel ¶
type VoiceResponseModel struct { AvailableForTiers []string `json:"available_for_tiers"` Category string `json:"category"` Description string `json:"description"` FineTuning FineTuningResponseModel `json:"fine_tuning"` Labels map[string]string `json:"labels"` Name string `json:"name"` PreviewUrl string `json:"preview_url"` Samples []SampleResponseModel `json:"samples"` Settings VoiceSettingsResponseModel `json:"settings"` Sharing VoiceSharingResponseModel `json:"sharing"` VoiceId string `json:"voice_id"` }
VoiceResponseModel defines model for VoiceResponseModel.
type VoiceSettingsResponseModel ¶
type VoiceSettingsResponseModel struct { SimilarityBoost float32 `json:"similarity_boost"` Stability float32 `json:"stability"` Style *float32 `json:"style,omitempty"` UseSpeakerBoost *bool `json:"use_speaker_boost,omitempty"` }
VoiceSettingsResponseModel defines model for VoiceSettingsResponseModel.
type VoiceSharingResponseModel ¶
type VoiceSharingResponseModel struct { ClonedByCount int `json:"cloned_by_count"` EnabledInLibrary bool `json:"enabled_in_library"` HistoryItemSampleId string `json:"history_item_sample_id"` LikedByCount int `json:"liked_by_count"` OriginalVoiceId string `json:"original_voice_id"` PublicOwnerId string `json:"public_owner_id"` Status VoiceSharingResponseModelStatus `json:"status"` WhitelistedEmails []string `json:"whitelisted_emails"` }
VoiceSharingResponseModel defines model for VoiceSharingResponseModel.
type VoiceSharingResponseModelStatus ¶
type VoiceSharingResponseModelStatus string
VoiceSharingResponseModelStatus defines model for VoiceSharingResponseModel.Status.
const ( Copied VoiceSharingResponseModelStatus = "copied" CopiedDisabled VoiceSharingResponseModelStatus = "copied_disabled" Disabled VoiceSharingResponseModelStatus = "disabled" Enabled VoiceSharingResponseModelStatus = "enabled" )
Defines values for VoiceSharingResponseModelStatus.