harmonyspeech

package module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

README

Go API client for harmonyspeech

API for the Harmony Speech Engine.

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 0.1.0
  • Package version: v0.1.0
  • Generator version: 7.11.0-SNAPSHOT
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import harmonyspeech "github.com/harmony-ai-solutions/harmony-speech-engine-client-go"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value harmonyspeech.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), harmonyspeech.ContextServerIndex, 1)
Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value harmonyspeech.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), harmonyspeech.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using harmonyspeech.ContextOperationServerIndices and harmonyspeech.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), harmonyspeech.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), harmonyspeech.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
DefaultAPI ConvertVoiceV1VoiceConvertPost Post /v1/voice/convert Convert Voice
DefaultAPI CreateEmbeddingV1EmbedSpeakerPost Post /v1/embed/speaker Create Embedding
DefaultAPI CreateSpeechV1AudioSpeechPost Post /v1/audio/speech Create Speech
DefaultAPI CreateTranscriptionV1AudioTranscriptionsPost Post /v1/audio/transcriptions Create Transcription
DefaultAPI HealthHealthGet Get /health Health
DefaultAPI ShowAvailableEmbeddingModelsV1EmbedModelsGet Get /v1/embed/models Show Available Embedding Models
DefaultAPI ShowAvailableSpeechModelsV1AudioSpeechModelsGet Get /v1/audio/speech/models Show Available Speech Models
DefaultAPI ShowAvailableTranscriptionModelsV1AudioTranscriptionsModelsGet Get /v1/audio/transcriptions/models Show Available Transcription Models
DefaultAPI ShowAvailableVoiceConversionModelsV1VoiceConvertModelsGet Get /v1/voice/convert/models Show Available Voice Conversion Models
DefaultAPI ShowVersionVersionGet Get /version Show Version

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`)
	XmlCheck  = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`)
)
View Source
var (
	// ContextServerIndex uses a server configuration from the index.
	ContextServerIndex = contextKey("serverIndex")

	// ContextOperationServerIndices uses a server configuration from the index mapping.
	ContextOperationServerIndices = contextKey("serverOperationIndices")

	// ContextServerVariables overrides a server configuration variables.
	ContextServerVariables = contextKey("serverVariables")

	// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
	ContextOperationServerVariables = contextKey("serverOperationVariables")
)

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func IsNil

func IsNil(i interface{}) bool

IsNil checks if an input is nil

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type APIClient

type APIClient struct {
	DefaultAPI *DefaultAPIService
	// contains filtered or unexported fields
}

APIClient manages communication with the Harmony Speech Engine API API v0.1.0 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type ApiConvertVoiceV1VoiceConvertPostRequest

type ApiConvertVoiceV1VoiceConvertPostRequest struct {
	ApiService *DefaultAPIService
	// contains filtered or unexported fields
}

func (ApiConvertVoiceV1VoiceConvertPostRequest) ApiKey added in v0.1.1

func (ApiConvertVoiceV1VoiceConvertPostRequest) Execute

func (ApiConvertVoiceV1VoiceConvertPostRequest) VoiceConversionRequest

func (ApiConvertVoiceV1VoiceConvertPostRequest) XApiKey

type ApiCreateEmbeddingV1EmbedSpeakerPostRequest

type ApiCreateEmbeddingV1EmbedSpeakerPostRequest struct {
	ApiService *DefaultAPIService
	// contains filtered or unexported fields
}

func (ApiCreateEmbeddingV1EmbedSpeakerPostRequest) ApiKey added in v0.1.1

func (ApiCreateEmbeddingV1EmbedSpeakerPostRequest) EmbedSpeakerRequest

func (ApiCreateEmbeddingV1EmbedSpeakerPostRequest) Execute

func (ApiCreateEmbeddingV1EmbedSpeakerPostRequest) XApiKey

type ApiCreateSpeechV1AudioSpeechPostRequest

type ApiCreateSpeechV1AudioSpeechPostRequest struct {
	ApiService *DefaultAPIService
	// contains filtered or unexported fields
}

func (ApiCreateSpeechV1AudioSpeechPostRequest) ApiKey added in v0.1.1

func (ApiCreateSpeechV1AudioSpeechPostRequest) Execute

func (ApiCreateSpeechV1AudioSpeechPostRequest) TextToSpeechRequest

func (ApiCreateSpeechV1AudioSpeechPostRequest) XApiKey

type ApiCreateTranscriptionV1AudioTranscriptionsPostRequest

type ApiCreateTranscriptionV1AudioTranscriptionsPostRequest struct {
	ApiService *DefaultAPIService
	// contains filtered or unexported fields
}

func (ApiCreateTranscriptionV1AudioTranscriptionsPostRequest) ApiKey added in v0.1.1

func (ApiCreateTranscriptionV1AudioTranscriptionsPostRequest) Execute

func (ApiCreateTranscriptionV1AudioTranscriptionsPostRequest) SpeechTranscribeRequest

func (ApiCreateTranscriptionV1AudioTranscriptionsPostRequest) XApiKey

type ApiHealthHealthGetRequest

type ApiHealthHealthGetRequest struct {
	ApiService *DefaultAPIService
	// contains filtered or unexported fields
}

func (ApiHealthHealthGetRequest) Execute

func (r ApiHealthHealthGetRequest) Execute() (map[string]interface{}, *http.Response, error)

type ApiShowAvailableEmbeddingModelsV1EmbedModelsGetRequest

type ApiShowAvailableEmbeddingModelsV1EmbedModelsGetRequest struct {
	ApiService *DefaultAPIService
	// contains filtered or unexported fields
}

func (ApiShowAvailableEmbeddingModelsV1EmbedModelsGetRequest) ApiKey added in v0.1.1

func (ApiShowAvailableEmbeddingModelsV1EmbedModelsGetRequest) Execute

func (ApiShowAvailableEmbeddingModelsV1EmbedModelsGetRequest) XApiKey

type ApiShowAvailableSpeechModelsV1AudioSpeechModelsGetRequest

type ApiShowAvailableSpeechModelsV1AudioSpeechModelsGetRequest struct {
	ApiService *DefaultAPIService
	// contains filtered or unexported fields
}

func (ApiShowAvailableSpeechModelsV1AudioSpeechModelsGetRequest) ApiKey added in v0.1.1

func (ApiShowAvailableSpeechModelsV1AudioSpeechModelsGetRequest) Execute

func (ApiShowAvailableSpeechModelsV1AudioSpeechModelsGetRequest) XApiKey

type ApiShowAvailableTranscriptionModelsV1AudioTranscriptionsModelsGetRequest

type ApiShowAvailableTranscriptionModelsV1AudioTranscriptionsModelsGetRequest struct {
	ApiService *DefaultAPIService
	// contains filtered or unexported fields
}

func (ApiShowAvailableTranscriptionModelsV1AudioTranscriptionsModelsGetRequest) ApiKey added in v0.1.1

func (ApiShowAvailableTranscriptionModelsV1AudioTranscriptionsModelsGetRequest) Execute

func (ApiShowAvailableTranscriptionModelsV1AudioTranscriptionsModelsGetRequest) XApiKey

type ApiShowAvailableVoiceConversionModelsV1VoiceConvertModelsGetRequest

type ApiShowAvailableVoiceConversionModelsV1VoiceConvertModelsGetRequest struct {
	ApiService *DefaultAPIService
	// contains filtered or unexported fields
}

func (ApiShowAvailableVoiceConversionModelsV1VoiceConvertModelsGetRequest) ApiKey added in v0.1.1

func (ApiShowAvailableVoiceConversionModelsV1VoiceConvertModelsGetRequest) Execute

func (ApiShowAvailableVoiceConversionModelsV1VoiceConvertModelsGetRequest) XApiKey

type ApiShowVersionVersionGetRequest

type ApiShowVersionVersionGetRequest struct {
	ApiService *DefaultAPIService
	// contains filtered or unexported fields
}

func (ApiShowVersionVersionGetRequest) ApiKey added in v0.1.1

func (ApiShowVersionVersionGetRequest) Execute

func (r ApiShowVersionVersionGetRequest) Execute() (map[string]interface{}, *http.Response, error)

func (ApiShowVersionVersionGetRequest) XApiKey

type AudioOutputOptions

type AudioOutputOptions struct {
	Format               NullableString `json:"format,omitempty"`
	SampleRate           NullableInt32  `json:"sample_rate,omitempty"`
	Stream               NullableBool   `json:"stream,omitempty"`
	AdditionalProperties map[string]interface{}
}

AudioOutputOptions struct for AudioOutputOptions

func NewAudioOutputOptions

func NewAudioOutputOptions() *AudioOutputOptions

NewAudioOutputOptions instantiates a new AudioOutputOptions object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAudioOutputOptionsWithDefaults

func NewAudioOutputOptionsWithDefaults() *AudioOutputOptions

NewAudioOutputOptionsWithDefaults instantiates a new AudioOutputOptions object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AudioOutputOptions) GetFormat

func (o *AudioOutputOptions) GetFormat() string

GetFormat returns the Format field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AudioOutputOptions) GetFormatOk

func (o *AudioOutputOptions) GetFormatOk() (*string, bool)

GetFormatOk returns a tuple with the Format field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AudioOutputOptions) GetSampleRate

func (o *AudioOutputOptions) GetSampleRate() int32

GetSampleRate returns the SampleRate field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AudioOutputOptions) GetSampleRateOk

func (o *AudioOutputOptions) GetSampleRateOk() (*int32, bool)

GetSampleRateOk returns a tuple with the SampleRate field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AudioOutputOptions) GetStream

func (o *AudioOutputOptions) GetStream() bool

GetStream returns the Stream field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AudioOutputOptions) GetStreamOk

func (o *AudioOutputOptions) GetStreamOk() (*bool, bool)

GetStreamOk returns a tuple with the Stream field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AudioOutputOptions) HasFormat

func (o *AudioOutputOptions) HasFormat() bool

HasFormat returns a boolean if a field has been set.

func (*AudioOutputOptions) HasSampleRate

func (o *AudioOutputOptions) HasSampleRate() bool

HasSampleRate returns a boolean if a field has been set.

func (*AudioOutputOptions) HasStream

func (o *AudioOutputOptions) HasStream() bool

HasStream returns a boolean if a field has been set.

func (AudioOutputOptions) MarshalJSON

func (o AudioOutputOptions) MarshalJSON() ([]byte, error)

func (*AudioOutputOptions) SetFormat

func (o *AudioOutputOptions) SetFormat(v string)

SetFormat gets a reference to the given NullableString and assigns it to the Format field.

func (*AudioOutputOptions) SetFormatNil

func (o *AudioOutputOptions) SetFormatNil()

SetFormatNil sets the value for Format to be an explicit nil

func (*AudioOutputOptions) SetSampleRate

func (o *AudioOutputOptions) SetSampleRate(v int32)

SetSampleRate gets a reference to the given NullableInt32 and assigns it to the SampleRate field.

func (*AudioOutputOptions) SetSampleRateNil

func (o *AudioOutputOptions) SetSampleRateNil()

SetSampleRateNil sets the value for SampleRate to be an explicit nil

func (*AudioOutputOptions) SetStream

func (o *AudioOutputOptions) SetStream(v bool)

SetStream gets a reference to the given NullableBool and assigns it to the Stream field.

func (*AudioOutputOptions) SetStreamNil

func (o *AudioOutputOptions) SetStreamNil()

SetStreamNil sets the value for Stream to be an explicit nil

func (AudioOutputOptions) ToMap

func (o AudioOutputOptions) ToMap() (map[string]interface{}, error)

func (*AudioOutputOptions) UnmarshalJSON

func (o *AudioOutputOptions) UnmarshalJSON(data []byte) (err error)

func (*AudioOutputOptions) UnsetFormat

func (o *AudioOutputOptions) UnsetFormat()

UnsetFormat ensures that no value is present for Format, not even an explicit nil

func (*AudioOutputOptions) UnsetSampleRate

func (o *AudioOutputOptions) UnsetSampleRate()

UnsetSampleRate ensures that no value is present for SampleRate, not even an explicit nil

func (*AudioOutputOptions) UnsetStream

func (o *AudioOutputOptions) UnsetStream()

UnsetStream ensures that no value is present for Stream, not even an explicit nil

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type Configuration

type Configuration struct {
	Host             string            `json:"host,omitempty"`
	Scheme           string            `json:"scheme,omitempty"`
	DefaultHeader    map[string]string `json:"defaultHeader,omitempty"`
	UserAgent        string            `json:"userAgent,omitempty"`
	Debug            bool              `json:"debug,omitempty"`
	Servers          ServerConfigurations
	OperationServers map[string]ServerConfigurations
	HTTPClient       *http.Client
}

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

AddDefaultHeader adds a new HTTP header to the default header in the request

func (*Configuration) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

ServerURLWithContext returns a new server URL given an endpoint

type DefaultAPIService

type DefaultAPIService service

DefaultAPIService DefaultAPI service

func (*DefaultAPIService) ConvertVoiceV1VoiceConvertPost

func (a *DefaultAPIService) ConvertVoiceV1VoiceConvertPost(ctx context.Context) ApiConvertVoiceV1VoiceConvertPostRequest

ConvertVoiceV1VoiceConvertPost Convert Voice

Convert the voice in an audio file or stream to a desired target voice.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiConvertVoiceV1VoiceConvertPostRequest

func (*DefaultAPIService) ConvertVoiceV1VoiceConvertPostExecute

Execute executes the request

@return VoiceConversionResponse

func (*DefaultAPIService) CreateEmbeddingV1EmbedSpeakerPost

func (a *DefaultAPIService) CreateEmbeddingV1EmbedSpeakerPost(ctx context.Context) ApiCreateEmbeddingV1EmbedSpeakerPostRequest

CreateEmbeddingV1EmbedSpeakerPost Create Embedding

Create a speaker embedding.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCreateEmbeddingV1EmbedSpeakerPostRequest

func (*DefaultAPIService) CreateEmbeddingV1EmbedSpeakerPostExecute

func (a *DefaultAPIService) CreateEmbeddingV1EmbedSpeakerPostExecute(r ApiCreateEmbeddingV1EmbedSpeakerPostRequest) (*EmbedSpeakerResponse, *http.Response, error)

Execute executes the request

@return EmbedSpeakerResponse

func (*DefaultAPIService) CreateSpeechV1AudioSpeechPost

func (a *DefaultAPIService) CreateSpeechV1AudioSpeechPost(ctx context.Context) ApiCreateSpeechV1AudioSpeechPostRequest

CreateSpeechV1AudioSpeechPost Create Speech

Generate speech Audio from text.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCreateSpeechV1AudioSpeechPostRequest

func (*DefaultAPIService) CreateSpeechV1AudioSpeechPostExecute

func (a *DefaultAPIService) CreateSpeechV1AudioSpeechPostExecute(r ApiCreateSpeechV1AudioSpeechPostRequest) (*TextToSpeechResponse, *http.Response, error)

Execute executes the request

@return TextToSpeechResponse

func (*DefaultAPIService) CreateTranscriptionV1AudioTranscriptionsPost

func (a *DefaultAPIService) CreateTranscriptionV1AudioTranscriptionsPost(ctx context.Context) ApiCreateTranscriptionV1AudioTranscriptionsPostRequest

CreateTranscriptionV1AudioTranscriptionsPost Create Transcription

Create a transcription from audio.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCreateTranscriptionV1AudioTranscriptionsPostRequest

func (*DefaultAPIService) CreateTranscriptionV1AudioTranscriptionsPostExecute

func (a *DefaultAPIService) CreateTranscriptionV1AudioTranscriptionsPostExecute(r ApiCreateTranscriptionV1AudioTranscriptionsPostRequest) (*SpeechToTextResponse, *http.Response, error)

Execute executes the request

@return SpeechToTextResponse

func (*DefaultAPIService) HealthHealthGet

HealthHealthGet Health

Health check endpoint to verify the status of all engine serving objects.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiHealthHealthGetRequest

func (*DefaultAPIService) HealthHealthGetExecute

func (a *DefaultAPIService) HealthHealthGetExecute(r ApiHealthHealthGetRequest) (map[string]interface{}, *http.Response, error)

Execute executes the request

@return map[string]interface{}

func (*DefaultAPIService) ShowAvailableEmbeddingModelsV1EmbedModelsGet

func (a *DefaultAPIService) ShowAvailableEmbeddingModelsV1EmbedModelsGet(ctx context.Context) ApiShowAvailableEmbeddingModelsV1EmbedModelsGetRequest

ShowAvailableEmbeddingModelsV1EmbedModelsGet Show Available Embedding Models

Show available embedding models.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiShowAvailableEmbeddingModelsV1EmbedModelsGetRequest

func (*DefaultAPIService) ShowAvailableEmbeddingModelsV1EmbedModelsGetExecute

func (a *DefaultAPIService) ShowAvailableEmbeddingModelsV1EmbedModelsGetExecute(r ApiShowAvailableEmbeddingModelsV1EmbedModelsGetRequest) (*ModelList, *http.Response, error)

Execute executes the request

@return ModelList

func (*DefaultAPIService) ShowAvailableSpeechModelsV1AudioSpeechModelsGet

func (a *DefaultAPIService) ShowAvailableSpeechModelsV1AudioSpeechModelsGet(ctx context.Context) ApiShowAvailableSpeechModelsV1AudioSpeechModelsGetRequest

ShowAvailableSpeechModelsV1AudioSpeechModelsGet Show Available Speech Models

Show available speech models.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiShowAvailableSpeechModelsV1AudioSpeechModelsGetRequest

func (*DefaultAPIService) ShowAvailableSpeechModelsV1AudioSpeechModelsGetExecute

func (a *DefaultAPIService) ShowAvailableSpeechModelsV1AudioSpeechModelsGetExecute(r ApiShowAvailableSpeechModelsV1AudioSpeechModelsGetRequest) (*ModelList, *http.Response, error)

Execute executes the request

@return ModelList

func (*DefaultAPIService) ShowAvailableTranscriptionModelsV1AudioTranscriptionsModelsGet

func (a *DefaultAPIService) ShowAvailableTranscriptionModelsV1AudioTranscriptionsModelsGet(ctx context.Context) ApiShowAvailableTranscriptionModelsV1AudioTranscriptionsModelsGetRequest

ShowAvailableTranscriptionModelsV1AudioTranscriptionsModelsGet Show Available Transcription Models

Show available transcription models.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiShowAvailableTranscriptionModelsV1AudioTranscriptionsModelsGetRequest

func (*DefaultAPIService) ShowAvailableTranscriptionModelsV1AudioTranscriptionsModelsGetExecute

func (a *DefaultAPIService) ShowAvailableTranscriptionModelsV1AudioTranscriptionsModelsGetExecute(r ApiShowAvailableTranscriptionModelsV1AudioTranscriptionsModelsGetRequest) (*ModelList, *http.Response, error)

Execute executes the request

@return ModelList

func (*DefaultAPIService) ShowAvailableVoiceConversionModelsV1VoiceConvertModelsGet

func (a *DefaultAPIService) ShowAvailableVoiceConversionModelsV1VoiceConvertModelsGet(ctx context.Context) ApiShowAvailableVoiceConversionModelsV1VoiceConvertModelsGetRequest

ShowAvailableVoiceConversionModelsV1VoiceConvertModelsGet Show Available Voice Conversion Models

Show available voice conversion models.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiShowAvailableVoiceConversionModelsV1VoiceConvertModelsGetRequest

func (*DefaultAPIService) ShowAvailableVoiceConversionModelsV1VoiceConvertModelsGetExecute

func (a *DefaultAPIService) ShowAvailableVoiceConversionModelsV1VoiceConvertModelsGetExecute(r ApiShowAvailableVoiceConversionModelsV1VoiceConvertModelsGetRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*DefaultAPIService) ShowVersionVersionGet

func (a *DefaultAPIService) ShowVersionVersionGet(ctx context.Context) ApiShowVersionVersionGetRequest

ShowVersionVersionGet Show Version

Fetch the Harmony Speech Engine version.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiShowVersionVersionGetRequest

func (*DefaultAPIService) ShowVersionVersionGetExecute

func (a *DefaultAPIService) ShowVersionVersionGetExecute(r ApiShowVersionVersionGetRequest) (map[string]interface{}, *http.Response, error)

Execute executes the request

@return map[string]interface{}

type EmbedSpeakerRequest

type EmbedSpeakerRequest struct {
	// the name of the model
	Model *string `json:"model,omitempty"`
	// Binary audio data to be processed, encoded in base64
	InputAudio           *string `json:"input_audio,omitempty"`
	AdditionalProperties map[string]interface{}
}

EmbedSpeakerRequest EmbedSpeakerRequest Used to create a Speaker Embedding form a provided audio, which can later be re-used for Text-to-Speech or Voice Conversion functionality. Please refer to the documentation whether an embedding is compatible between different models.

func NewEmbedSpeakerRequest

func NewEmbedSpeakerRequest() *EmbedSpeakerRequest

NewEmbedSpeakerRequest instantiates a new EmbedSpeakerRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewEmbedSpeakerRequestWithDefaults

func NewEmbedSpeakerRequestWithDefaults() *EmbedSpeakerRequest

NewEmbedSpeakerRequestWithDefaults instantiates a new EmbedSpeakerRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*EmbedSpeakerRequest) GetInputAudio

func (o *EmbedSpeakerRequest) GetInputAudio() string

GetInputAudio returns the InputAudio field value if set, zero value otherwise.

func (*EmbedSpeakerRequest) GetInputAudioOk

func (o *EmbedSpeakerRequest) GetInputAudioOk() (*string, bool)

GetInputAudioOk returns a tuple with the InputAudio field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EmbedSpeakerRequest) GetModel

func (o *EmbedSpeakerRequest) GetModel() string

GetModel returns the Model field value if set, zero value otherwise.

func (*EmbedSpeakerRequest) GetModelOk

func (o *EmbedSpeakerRequest) GetModelOk() (*string, bool)

GetModelOk returns a tuple with the Model field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EmbedSpeakerRequest) HasInputAudio

func (o *EmbedSpeakerRequest) HasInputAudio() bool

HasInputAudio returns a boolean if a field has been set.

func (*EmbedSpeakerRequest) HasModel

func (o *EmbedSpeakerRequest) HasModel() bool

HasModel returns a boolean if a field has been set.

func (EmbedSpeakerRequest) MarshalJSON

func (o EmbedSpeakerRequest) MarshalJSON() ([]byte, error)

func (*EmbedSpeakerRequest) SetInputAudio

func (o *EmbedSpeakerRequest) SetInputAudio(v string)

SetInputAudio gets a reference to the given string and assigns it to the InputAudio field.

func (*EmbedSpeakerRequest) SetModel

func (o *EmbedSpeakerRequest) SetModel(v string)

SetModel gets a reference to the given string and assigns it to the Model field.

func (EmbedSpeakerRequest) ToMap

func (o EmbedSpeakerRequest) ToMap() (map[string]interface{}, error)

func (*EmbedSpeakerRequest) UnmarshalJSON

func (o *EmbedSpeakerRequest) UnmarshalJSON(data []byte) (err error)

type EmbedSpeakerResponse added in v0.0.2

type EmbedSpeakerResponse struct {
	Id *string `json:"id,omitempty"`
	// the name of the model
	Model   *string `json:"model,omitempty"`
	Created *int32  `json:"created,omitempty"`
	// Speaker embedding data for the audio provided in the initial request, encoded in base64
	Data                 *string `json:"data,omitempty"`
	AdditionalProperties map[string]interface{}
}

EmbedSpeakerResponse EmbedSpeakerResult Result Speaker Embedding

func NewEmbedSpeakerResponse added in v0.0.2

func NewEmbedSpeakerResponse() *EmbedSpeakerResponse

NewEmbedSpeakerResponse instantiates a new EmbedSpeakerResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewEmbedSpeakerResponseWithDefaults added in v0.0.2

func NewEmbedSpeakerResponseWithDefaults() *EmbedSpeakerResponse

NewEmbedSpeakerResponseWithDefaults instantiates a new EmbedSpeakerResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*EmbedSpeakerResponse) GetCreated added in v0.0.2

func (o *EmbedSpeakerResponse) GetCreated() int32

GetCreated returns the Created field value if set, zero value otherwise.

func (*EmbedSpeakerResponse) GetCreatedOk added in v0.0.2

func (o *EmbedSpeakerResponse) GetCreatedOk() (*int32, bool)

GetCreatedOk returns a tuple with the Created field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EmbedSpeakerResponse) GetData added in v0.0.2

func (o *EmbedSpeakerResponse) GetData() string

GetData returns the Data field value if set, zero value otherwise.

func (*EmbedSpeakerResponse) GetDataOk added in v0.0.2

func (o *EmbedSpeakerResponse) GetDataOk() (*string, bool)

GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EmbedSpeakerResponse) GetId added in v0.0.2

func (o *EmbedSpeakerResponse) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*EmbedSpeakerResponse) GetIdOk added in v0.0.2

func (o *EmbedSpeakerResponse) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EmbedSpeakerResponse) GetModel added in v0.0.2

func (o *EmbedSpeakerResponse) GetModel() string

GetModel returns the Model field value if set, zero value otherwise.

func (*EmbedSpeakerResponse) GetModelOk added in v0.0.2

func (o *EmbedSpeakerResponse) GetModelOk() (*string, bool)

GetModelOk returns a tuple with the Model field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EmbedSpeakerResponse) HasCreated added in v0.0.2

func (o *EmbedSpeakerResponse) HasCreated() bool

HasCreated returns a boolean if a field has been set.

func (*EmbedSpeakerResponse) HasData added in v0.0.2

func (o *EmbedSpeakerResponse) HasData() bool

HasData returns a boolean if a field has been set.

func (*EmbedSpeakerResponse) HasId added in v0.0.2

func (o *EmbedSpeakerResponse) HasId() bool

HasId returns a boolean if a field has been set.

func (*EmbedSpeakerResponse) HasModel added in v0.0.2

func (o *EmbedSpeakerResponse) HasModel() bool

HasModel returns a boolean if a field has been set.

func (EmbedSpeakerResponse) MarshalJSON added in v0.0.2

func (o EmbedSpeakerResponse) MarshalJSON() ([]byte, error)

func (*EmbedSpeakerResponse) SetCreated added in v0.0.2

func (o *EmbedSpeakerResponse) SetCreated(v int32)

SetCreated gets a reference to the given int32 and assigns it to the Created field.

func (*EmbedSpeakerResponse) SetData added in v0.0.2

func (o *EmbedSpeakerResponse) SetData(v string)

SetData gets a reference to the given string and assigns it to the Data field.

func (*EmbedSpeakerResponse) SetId added in v0.0.2

func (o *EmbedSpeakerResponse) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*EmbedSpeakerResponse) SetModel added in v0.0.2

func (o *EmbedSpeakerResponse) SetModel(v string)

SetModel gets a reference to the given string and assigns it to the Model field.

func (EmbedSpeakerResponse) ToMap added in v0.0.2

func (o EmbedSpeakerResponse) ToMap() (map[string]interface{}, error)

func (*EmbedSpeakerResponse) UnmarshalJSON added in v0.0.2

func (o *EmbedSpeakerResponse) UnmarshalJSON(data []byte) (err error)

type GenerationOptions

type GenerationOptions struct {
	Seed                 NullableInt32   `json:"seed,omitempty"`
	Style                NullableInt32   `json:"style,omitempty"`
	Speed                NullableFloat32 `json:"speed,omitempty"`
	Pitch                NullableFloat32 `json:"pitch,omitempty"`
	Energy               NullableFloat32 `json:"energy,omitempty"`
	AdditionalProperties map[string]interface{}
}

GenerationOptions struct for GenerationOptions

func NewGenerationOptions

func NewGenerationOptions() *GenerationOptions

NewGenerationOptions instantiates a new GenerationOptions object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewGenerationOptionsWithDefaults

func NewGenerationOptionsWithDefaults() *GenerationOptions

NewGenerationOptionsWithDefaults instantiates a new GenerationOptions object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*GenerationOptions) GetEnergy

func (o *GenerationOptions) GetEnergy() float32

GetEnergy returns the Energy field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GenerationOptions) GetEnergyOk

func (o *GenerationOptions) GetEnergyOk() (*float32, bool)

GetEnergyOk returns a tuple with the Energy field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GenerationOptions) GetPitch

func (o *GenerationOptions) GetPitch() float32

GetPitch returns the Pitch field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GenerationOptions) GetPitchOk

func (o *GenerationOptions) GetPitchOk() (*float32, bool)

GetPitchOk returns a tuple with the Pitch field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GenerationOptions) GetSeed

func (o *GenerationOptions) GetSeed() int32

GetSeed returns the Seed field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GenerationOptions) GetSeedOk

func (o *GenerationOptions) GetSeedOk() (*int32, bool)

GetSeedOk returns a tuple with the Seed field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GenerationOptions) GetSpeed

func (o *GenerationOptions) GetSpeed() float32

GetSpeed returns the Speed field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GenerationOptions) GetSpeedOk

func (o *GenerationOptions) GetSpeedOk() (*float32, bool)

GetSpeedOk returns a tuple with the Speed field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GenerationOptions) GetStyle

func (o *GenerationOptions) GetStyle() int32

GetStyle returns the Style field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GenerationOptions) GetStyleOk

func (o *GenerationOptions) GetStyleOk() (*int32, bool)

GetStyleOk returns a tuple with the Style field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GenerationOptions) HasEnergy

func (o *GenerationOptions) HasEnergy() bool

HasEnergy returns a boolean if a field has been set.

func (*GenerationOptions) HasPitch

func (o *GenerationOptions) HasPitch() bool

HasPitch returns a boolean if a field has been set.

func (*GenerationOptions) HasSeed

func (o *GenerationOptions) HasSeed() bool

HasSeed returns a boolean if a field has been set.

func (*GenerationOptions) HasSpeed

func (o *GenerationOptions) HasSpeed() bool

HasSpeed returns a boolean if a field has been set.

func (*GenerationOptions) HasStyle

func (o *GenerationOptions) HasStyle() bool

HasStyle returns a boolean if a field has been set.

func (GenerationOptions) MarshalJSON

func (o GenerationOptions) MarshalJSON() ([]byte, error)

func (*GenerationOptions) SetEnergy

func (o *GenerationOptions) SetEnergy(v float32)

SetEnergy gets a reference to the given NullableFloat32 and assigns it to the Energy field.

func (*GenerationOptions) SetEnergyNil

func (o *GenerationOptions) SetEnergyNil()

SetEnergyNil sets the value for Energy to be an explicit nil

func (*GenerationOptions) SetPitch

func (o *GenerationOptions) SetPitch(v float32)

SetPitch gets a reference to the given NullableFloat32 and assigns it to the Pitch field.

func (*GenerationOptions) SetPitchNil

func (o *GenerationOptions) SetPitchNil()

SetPitchNil sets the value for Pitch to be an explicit nil

func (*GenerationOptions) SetSeed

func (o *GenerationOptions) SetSeed(v int32)

SetSeed gets a reference to the given NullableInt32 and assigns it to the Seed field.

func (*GenerationOptions) SetSeedNil

func (o *GenerationOptions) SetSeedNil()

SetSeedNil sets the value for Seed to be an explicit nil

func (*GenerationOptions) SetSpeed

func (o *GenerationOptions) SetSpeed(v float32)

SetSpeed gets a reference to the given NullableFloat32 and assigns it to the Speed field.

func (*GenerationOptions) SetSpeedNil

func (o *GenerationOptions) SetSpeedNil()

SetSpeedNil sets the value for Speed to be an explicit nil

func (*GenerationOptions) SetStyle

func (o *GenerationOptions) SetStyle(v int32)

SetStyle gets a reference to the given NullableInt32 and assigns it to the Style field.

func (*GenerationOptions) SetStyleNil

func (o *GenerationOptions) SetStyleNil()

SetStyleNil sets the value for Style to be an explicit nil

func (GenerationOptions) ToMap

func (o GenerationOptions) ToMap() (map[string]interface{}, error)

func (*GenerationOptions) UnmarshalJSON

func (o *GenerationOptions) UnmarshalJSON(data []byte) (err error)

func (*GenerationOptions) UnsetEnergy

func (o *GenerationOptions) UnsetEnergy()

UnsetEnergy ensures that no value is present for Energy, not even an explicit nil

func (*GenerationOptions) UnsetPitch

func (o *GenerationOptions) UnsetPitch()

UnsetPitch ensures that no value is present for Pitch, not even an explicit nil

func (*GenerationOptions) UnsetSeed

func (o *GenerationOptions) UnsetSeed()

UnsetSeed ensures that no value is present for Seed, not even an explicit nil

func (*GenerationOptions) UnsetSpeed

func (o *GenerationOptions) UnsetSpeed()

UnsetSpeed ensures that no value is present for Speed, not even an explicit nil

func (*GenerationOptions) UnsetStyle

func (o *GenerationOptions) UnsetStyle()

UnsetStyle ensures that no value is present for Style, not even an explicit nil

type GenericOpenAPIError

type GenericOpenAPIError struct {
	// contains filtered or unexported fields
}

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type HTTPValidationError

type HTTPValidationError struct {
	Detail               []ValidationError `json:"detail,omitempty"`
	AdditionalProperties map[string]interface{}
}

HTTPValidationError struct for HTTPValidationError

func NewHTTPValidationError

func NewHTTPValidationError() *HTTPValidationError

NewHTTPValidationError instantiates a new HTTPValidationError object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewHTTPValidationErrorWithDefaults

func NewHTTPValidationErrorWithDefaults() *HTTPValidationError

NewHTTPValidationErrorWithDefaults instantiates a new HTTPValidationError object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*HTTPValidationError) GetDetail

func (o *HTTPValidationError) GetDetail() []ValidationError

GetDetail returns the Detail field value if set, zero value otherwise.

func (*HTTPValidationError) GetDetailOk

func (o *HTTPValidationError) GetDetailOk() ([]ValidationError, bool)

GetDetailOk returns a tuple with the Detail field value if set, nil otherwise and a boolean to check if the value has been set.

func (*HTTPValidationError) HasDetail

func (o *HTTPValidationError) HasDetail() bool

HasDetail returns a boolean if a field has been set.

func (HTTPValidationError) MarshalJSON

func (o HTTPValidationError) MarshalJSON() ([]byte, error)

func (*HTTPValidationError) SetDetail

func (o *HTTPValidationError) SetDetail(v []ValidationError)

SetDetail gets a reference to the given []ValidationError and assigns it to the Detail field.

func (HTTPValidationError) ToMap

func (o HTTPValidationError) ToMap() (map[string]interface{}, error)

func (*HTTPValidationError) UnmarshalJSON

func (o *HTTPValidationError) UnmarshalJSON(data []byte) (err error)

type LanguageOptions added in v0.0.5

type LanguageOptions struct {
	Language             *string        `json:"language,omitempty"`
	Voices               []VoiceOptions `json:"voices,omitempty"`
	AdditionalProperties map[string]interface{}
}

LanguageOptions struct for LanguageOptions

func NewLanguageOptions added in v0.0.5

func NewLanguageOptions() *LanguageOptions

NewLanguageOptions instantiates a new LanguageOptions object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewLanguageOptionsWithDefaults added in v0.0.5

func NewLanguageOptionsWithDefaults() *LanguageOptions

NewLanguageOptionsWithDefaults instantiates a new LanguageOptions object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*LanguageOptions) GetLanguage added in v0.0.5

func (o *LanguageOptions) GetLanguage() string

GetLanguage returns the Language field value if set, zero value otherwise.

func (*LanguageOptions) GetLanguageOk added in v0.0.5

func (o *LanguageOptions) GetLanguageOk() (*string, bool)

GetLanguageOk returns a tuple with the Language field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LanguageOptions) GetVoices added in v0.0.5

func (o *LanguageOptions) GetVoices() []VoiceOptions

GetVoices returns the Voices field value if set, zero value otherwise (both if not set or set to explicit null).

func (*LanguageOptions) GetVoicesOk added in v0.0.5

func (o *LanguageOptions) GetVoicesOk() ([]VoiceOptions, bool)

GetVoicesOk returns a tuple with the Voices field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*LanguageOptions) HasLanguage added in v0.0.5

func (o *LanguageOptions) HasLanguage() bool

HasLanguage returns a boolean if a field has been set.

func (*LanguageOptions) HasVoices added in v0.0.5

func (o *LanguageOptions) HasVoices() bool

HasVoices returns a boolean if a field has been set.

func (LanguageOptions) MarshalJSON added in v0.0.5

func (o LanguageOptions) MarshalJSON() ([]byte, error)

func (*LanguageOptions) SetLanguage added in v0.0.5

func (o *LanguageOptions) SetLanguage(v string)

SetLanguage gets a reference to the given string and assigns it to the Language field.

func (*LanguageOptions) SetVoices added in v0.0.5

func (o *LanguageOptions) SetVoices(v []VoiceOptions)

SetVoices gets a reference to the given []VoiceOptions and assigns it to the Voices field.

func (LanguageOptions) ToMap added in v0.0.5

func (o LanguageOptions) ToMap() (map[string]interface{}, error)

func (*LanguageOptions) UnmarshalJSON added in v0.0.5

func (o *LanguageOptions) UnmarshalJSON(data []byte) (err error)

type MappedNullable

type MappedNullable interface {
	ToMap() (map[string]interface{}, error)
}

type ModelCard added in v0.0.2

type ModelCard struct {
	Id                   string            `json:"id"`
	Object               *string           `json:"object,omitempty"`
	Created              *int32            `json:"created,omitempty"`
	OwnedBy              *string           `json:"owned_by,omitempty"`
	Languages            []LanguageOptions `json:"languages,omitempty"`
	Root                 NullableString    `json:"root,omitempty"`
	Parent               NullableString    `json:"parent,omitempty"`
	AdditionalProperties map[string]interface{}
}

ModelCard struct for ModelCard

func NewModelCard added in v0.0.2

func NewModelCard(id string) *ModelCard

NewModelCard instantiates a new ModelCard object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewModelCardWithDefaults added in v0.0.2

func NewModelCardWithDefaults() *ModelCard

NewModelCardWithDefaults instantiates a new ModelCard object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ModelCard) GetCreated added in v0.0.2

func (o *ModelCard) GetCreated() int32

GetCreated returns the Created field value if set, zero value otherwise.

func (*ModelCard) GetCreatedOk added in v0.0.2

func (o *ModelCard) GetCreatedOk() (*int32, bool)

GetCreatedOk returns a tuple with the Created field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ModelCard) GetId added in v0.0.2

func (o *ModelCard) GetId() string

GetId returns the Id field value

func (*ModelCard) GetIdOk added in v0.0.2

func (o *ModelCard) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*ModelCard) GetLanguages added in v0.0.5

func (o *ModelCard) GetLanguages() []LanguageOptions

GetLanguages returns the Languages field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ModelCard) GetLanguagesOk added in v0.0.5

func (o *ModelCard) GetLanguagesOk() ([]LanguageOptions, bool)

GetLanguagesOk returns a tuple with the Languages field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ModelCard) GetObject added in v0.0.2

func (o *ModelCard) GetObject() string

GetObject returns the Object field value if set, zero value otherwise.

func (*ModelCard) GetObjectOk added in v0.0.2

func (o *ModelCard) GetObjectOk() (*string, bool)

GetObjectOk returns a tuple with the Object field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ModelCard) GetOwnedBy added in v0.0.2

func (o *ModelCard) GetOwnedBy() string

GetOwnedBy returns the OwnedBy field value if set, zero value otherwise.

func (*ModelCard) GetOwnedByOk added in v0.0.2

func (o *ModelCard) GetOwnedByOk() (*string, bool)

GetOwnedByOk returns a tuple with the OwnedBy field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ModelCard) GetParent added in v0.0.2

func (o *ModelCard) GetParent() string

GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ModelCard) GetParentOk added in v0.0.2

func (o *ModelCard) GetParentOk() (*string, bool)

GetParentOk returns a tuple with the Parent field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ModelCard) GetRoot added in v0.0.2

func (o *ModelCard) GetRoot() string

GetRoot returns the Root field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ModelCard) GetRootOk added in v0.0.2

func (o *ModelCard) GetRootOk() (*string, bool)

GetRootOk returns a tuple with the Root field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ModelCard) HasCreated added in v0.0.2

func (o *ModelCard) HasCreated() bool

HasCreated returns a boolean if a field has been set.

func (*ModelCard) HasLanguages added in v0.0.5

func (o *ModelCard) HasLanguages() bool

HasLanguages returns a boolean if a field has been set.

func (*ModelCard) HasObject added in v0.0.2

func (o *ModelCard) HasObject() bool

HasObject returns a boolean if a field has been set.

func (*ModelCard) HasOwnedBy added in v0.0.2

func (o *ModelCard) HasOwnedBy() bool

HasOwnedBy returns a boolean if a field has been set.

func (*ModelCard) HasParent added in v0.0.2

func (o *ModelCard) HasParent() bool

HasParent returns a boolean if a field has been set.

func (*ModelCard) HasRoot added in v0.0.2

func (o *ModelCard) HasRoot() bool

HasRoot returns a boolean if a field has been set.

func (ModelCard) MarshalJSON added in v0.0.2

func (o ModelCard) MarshalJSON() ([]byte, error)

func (*ModelCard) SetCreated added in v0.0.2

func (o *ModelCard) SetCreated(v int32)

SetCreated gets a reference to the given int32 and assigns it to the Created field.

func (*ModelCard) SetId added in v0.0.2

func (o *ModelCard) SetId(v string)

SetId sets field value

func (*ModelCard) SetLanguages added in v0.0.5

func (o *ModelCard) SetLanguages(v []LanguageOptions)

SetLanguages gets a reference to the given []LanguageOptions and assigns it to the Languages field.

func (*ModelCard) SetObject added in v0.0.2

func (o *ModelCard) SetObject(v string)

SetObject gets a reference to the given string and assigns it to the Object field.

func (*ModelCard) SetOwnedBy added in v0.0.2

func (o *ModelCard) SetOwnedBy(v string)

SetOwnedBy gets a reference to the given string and assigns it to the OwnedBy field.

func (*ModelCard) SetParent added in v0.0.2

func (o *ModelCard) SetParent(v string)

SetParent gets a reference to the given NullableString and assigns it to the Parent field.

func (*ModelCard) SetParentNil added in v0.0.2

func (o *ModelCard) SetParentNil()

SetParentNil sets the value for Parent to be an explicit nil

func (*ModelCard) SetRoot added in v0.0.2

func (o *ModelCard) SetRoot(v string)

SetRoot gets a reference to the given NullableString and assigns it to the Root field.

func (*ModelCard) SetRootNil added in v0.0.2

func (o *ModelCard) SetRootNil()

SetRootNil sets the value for Root to be an explicit nil

func (ModelCard) ToMap added in v0.0.2

func (o ModelCard) ToMap() (map[string]interface{}, error)

func (*ModelCard) UnmarshalJSON added in v0.0.2

func (o *ModelCard) UnmarshalJSON(data []byte) (err error)

func (*ModelCard) UnsetParent added in v0.0.2

func (o *ModelCard) UnsetParent()

UnsetParent ensures that no value is present for Parent, not even an explicit nil

func (*ModelCard) UnsetRoot added in v0.0.2

func (o *ModelCard) UnsetRoot()

UnsetRoot ensures that no value is present for Root, not even an explicit nil

type ModelList added in v0.0.2

type ModelList struct {
	Object               *string     `json:"object,omitempty"`
	Data                 []ModelCard `json:"data,omitempty"`
	AdditionalProperties map[string]interface{}
}

ModelList struct for ModelList

func NewModelList added in v0.0.2

func NewModelList() *ModelList

NewModelList instantiates a new ModelList object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewModelListWithDefaults added in v0.0.2

func NewModelListWithDefaults() *ModelList

NewModelListWithDefaults instantiates a new ModelList object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ModelList) GetData added in v0.0.2

func (o *ModelList) GetData() []ModelCard

GetData returns the Data field value if set, zero value otherwise.

func (*ModelList) GetDataOk added in v0.0.2

func (o *ModelList) GetDataOk() ([]ModelCard, bool)

GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ModelList) GetObject added in v0.0.2

func (o *ModelList) GetObject() string

GetObject returns the Object field value if set, zero value otherwise.

func (*ModelList) GetObjectOk added in v0.0.2

func (o *ModelList) GetObjectOk() (*string, bool)

GetObjectOk returns a tuple with the Object field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ModelList) HasData added in v0.0.2

func (o *ModelList) HasData() bool

HasData returns a boolean if a field has been set.

func (*ModelList) HasObject added in v0.0.2

func (o *ModelList) HasObject() bool

HasObject returns a boolean if a field has been set.

func (ModelList) MarshalJSON added in v0.0.2

func (o ModelList) MarshalJSON() ([]byte, error)

func (*ModelList) SetData added in v0.0.2

func (o *ModelList) SetData(v []ModelCard)

SetData gets a reference to the given []ModelCard and assigns it to the Data field.

func (*ModelList) SetObject added in v0.0.2

func (o *ModelList) SetObject(v string)

SetObject gets a reference to the given string and assigns it to the Object field.

func (ModelList) ToMap added in v0.0.2

func (o ModelList) ToMap() (map[string]interface{}, error)

func (*ModelList) UnmarshalJSON added in v0.0.2

func (o *ModelList) UnmarshalJSON(data []byte) (err error)

type NullableAudioOutputOptions

type NullableAudioOutputOptions struct {
	// contains filtered or unexported fields
}

func NewNullableAudioOutputOptions

func NewNullableAudioOutputOptions(val *AudioOutputOptions) *NullableAudioOutputOptions

func (NullableAudioOutputOptions) Get

func (NullableAudioOutputOptions) IsSet

func (v NullableAudioOutputOptions) IsSet() bool

func (NullableAudioOutputOptions) MarshalJSON

func (v NullableAudioOutputOptions) MarshalJSON() ([]byte, error)

func (*NullableAudioOutputOptions) Set

func (*NullableAudioOutputOptions) UnmarshalJSON

func (v *NullableAudioOutputOptions) UnmarshalJSON(src []byte) error

func (*NullableAudioOutputOptions) Unset

func (v *NullableAudioOutputOptions) Unset()

type NullableBool

type NullableBool struct {
	// contains filtered or unexported fields
}

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

func (v NullableBool) MarshalJSON() ([]byte, error)

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

func (v *NullableBool) UnmarshalJSON(src []byte) error

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableEmbedSpeakerRequest

type NullableEmbedSpeakerRequest struct {
	// contains filtered or unexported fields
}

func NewNullableEmbedSpeakerRequest

func NewNullableEmbedSpeakerRequest(val *EmbedSpeakerRequest) *NullableEmbedSpeakerRequest

func (NullableEmbedSpeakerRequest) Get

func (NullableEmbedSpeakerRequest) IsSet

func (NullableEmbedSpeakerRequest) MarshalJSON

func (v NullableEmbedSpeakerRequest) MarshalJSON() ([]byte, error)

func (*NullableEmbedSpeakerRequest) Set

func (*NullableEmbedSpeakerRequest) UnmarshalJSON

func (v *NullableEmbedSpeakerRequest) UnmarshalJSON(src []byte) error

func (*NullableEmbedSpeakerRequest) Unset

func (v *NullableEmbedSpeakerRequest) Unset()

type NullableEmbedSpeakerResponse added in v0.0.2

type NullableEmbedSpeakerResponse struct {
	// contains filtered or unexported fields
}

func NewNullableEmbedSpeakerResponse added in v0.0.2

func NewNullableEmbedSpeakerResponse(val *EmbedSpeakerResponse) *NullableEmbedSpeakerResponse

func (NullableEmbedSpeakerResponse) Get added in v0.0.2

func (NullableEmbedSpeakerResponse) IsSet added in v0.0.2

func (NullableEmbedSpeakerResponse) MarshalJSON added in v0.0.2

func (v NullableEmbedSpeakerResponse) MarshalJSON() ([]byte, error)

func (*NullableEmbedSpeakerResponse) Set added in v0.0.2

func (*NullableEmbedSpeakerResponse) UnmarshalJSON added in v0.0.2

func (v *NullableEmbedSpeakerResponse) UnmarshalJSON(src []byte) error

func (*NullableEmbedSpeakerResponse) Unset added in v0.0.2

func (v *NullableEmbedSpeakerResponse) Unset()

type NullableFloat32

type NullableFloat32 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

func (v NullableFloat32) MarshalJSON() ([]byte, error)

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

func (v *NullableFloat32) UnmarshalJSON(src []byte) error

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

type NullableFloat64 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

func (v NullableFloat64) MarshalJSON() ([]byte, error)

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

func (v *NullableFloat64) UnmarshalJSON(src []byte) error

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableGenerationOptions

type NullableGenerationOptions struct {
	// contains filtered or unexported fields
}

func NewNullableGenerationOptions

func NewNullableGenerationOptions(val *GenerationOptions) *NullableGenerationOptions

func (NullableGenerationOptions) Get

func (NullableGenerationOptions) IsSet

func (v NullableGenerationOptions) IsSet() bool

func (NullableGenerationOptions) MarshalJSON

func (v NullableGenerationOptions) MarshalJSON() ([]byte, error)

func (*NullableGenerationOptions) Set

func (*NullableGenerationOptions) UnmarshalJSON

func (v *NullableGenerationOptions) UnmarshalJSON(src []byte) error

func (*NullableGenerationOptions) Unset

func (v *NullableGenerationOptions) Unset()

type NullableHTTPValidationError

type NullableHTTPValidationError struct {
	// contains filtered or unexported fields
}

func NewNullableHTTPValidationError

func NewNullableHTTPValidationError(val *HTTPValidationError) *NullableHTTPValidationError

func (NullableHTTPValidationError) Get

func (NullableHTTPValidationError) IsSet

func (NullableHTTPValidationError) MarshalJSON

func (v NullableHTTPValidationError) MarshalJSON() ([]byte, error)

func (*NullableHTTPValidationError) Set

func (*NullableHTTPValidationError) UnmarshalJSON

func (v *NullableHTTPValidationError) UnmarshalJSON(src []byte) error

func (*NullableHTTPValidationError) Unset

func (v *NullableHTTPValidationError) Unset()

type NullableInt

type NullableInt struct {
	// contains filtered or unexported fields
}

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

func (v NullableInt) MarshalJSON() ([]byte, error)

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

func (v *NullableInt) UnmarshalJSON(src []byte) error

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

type NullableInt32 struct {
	// contains filtered or unexported fields
}

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

func (v NullableInt32) MarshalJSON() ([]byte, error)

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

func (v *NullableInt32) UnmarshalJSON(src []byte) error

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

type NullableInt64 struct {
	// contains filtered or unexported fields
}

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

func (v NullableInt64) MarshalJSON() ([]byte, error)

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

func (v *NullableInt64) UnmarshalJSON(src []byte) error

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableLanguageOptions added in v0.0.5

type NullableLanguageOptions struct {
	// contains filtered or unexported fields
}

func NewNullableLanguageOptions added in v0.0.5

func NewNullableLanguageOptions(val *LanguageOptions) *NullableLanguageOptions

func (NullableLanguageOptions) Get added in v0.0.5

func (NullableLanguageOptions) IsSet added in v0.0.5

func (v NullableLanguageOptions) IsSet() bool

func (NullableLanguageOptions) MarshalJSON added in v0.0.5

func (v NullableLanguageOptions) MarshalJSON() ([]byte, error)

func (*NullableLanguageOptions) Set added in v0.0.5

func (*NullableLanguageOptions) UnmarshalJSON added in v0.0.5

func (v *NullableLanguageOptions) UnmarshalJSON(src []byte) error

func (*NullableLanguageOptions) Unset added in v0.0.5

func (v *NullableLanguageOptions) Unset()

type NullableModelCard added in v0.0.2

type NullableModelCard struct {
	// contains filtered or unexported fields
}

func NewNullableModelCard added in v0.0.2

func NewNullableModelCard(val *ModelCard) *NullableModelCard

func (NullableModelCard) Get added in v0.0.2

func (v NullableModelCard) Get() *ModelCard

func (NullableModelCard) IsSet added in v0.0.2

func (v NullableModelCard) IsSet() bool

func (NullableModelCard) MarshalJSON added in v0.0.2

func (v NullableModelCard) MarshalJSON() ([]byte, error)

func (*NullableModelCard) Set added in v0.0.2

func (v *NullableModelCard) Set(val *ModelCard)

func (*NullableModelCard) UnmarshalJSON added in v0.0.2

func (v *NullableModelCard) UnmarshalJSON(src []byte) error

func (*NullableModelCard) Unset added in v0.0.2

func (v *NullableModelCard) Unset()

type NullableModelList added in v0.0.2

type NullableModelList struct {
	// contains filtered or unexported fields
}

func NewNullableModelList added in v0.0.2

func NewNullableModelList(val *ModelList) *NullableModelList

func (NullableModelList) Get added in v0.0.2

func (v NullableModelList) Get() *ModelList

func (NullableModelList) IsSet added in v0.0.2

func (v NullableModelList) IsSet() bool

func (NullableModelList) MarshalJSON added in v0.0.2

func (v NullableModelList) MarshalJSON() ([]byte, error)

func (*NullableModelList) Set added in v0.0.2

func (v *NullableModelList) Set(val *ModelList)

func (*NullableModelList) UnmarshalJSON added in v0.0.2

func (v *NullableModelList) UnmarshalJSON(src []byte) error

func (*NullableModelList) Unset added in v0.0.2

func (v *NullableModelList) Unset()

type NullableSpeechToTextResponse added in v0.0.2

type NullableSpeechToTextResponse struct {
	// contains filtered or unexported fields
}

func NewNullableSpeechToTextResponse added in v0.0.2

func NewNullableSpeechToTextResponse(val *SpeechToTextResponse) *NullableSpeechToTextResponse

func (NullableSpeechToTextResponse) Get added in v0.0.2

func (NullableSpeechToTextResponse) IsSet added in v0.0.2

func (NullableSpeechToTextResponse) MarshalJSON added in v0.0.2

func (v NullableSpeechToTextResponse) MarshalJSON() ([]byte, error)

func (*NullableSpeechToTextResponse) Set added in v0.0.2

func (*NullableSpeechToTextResponse) UnmarshalJSON added in v0.0.2

func (v *NullableSpeechToTextResponse) UnmarshalJSON(src []byte) error

func (*NullableSpeechToTextResponse) Unset added in v0.0.2

func (v *NullableSpeechToTextResponse) Unset()

type NullableSpeechTranscribeRequest

type NullableSpeechTranscribeRequest struct {
	// contains filtered or unexported fields
}

func (NullableSpeechTranscribeRequest) Get

func (NullableSpeechTranscribeRequest) IsSet

func (NullableSpeechTranscribeRequest) MarshalJSON

func (v NullableSpeechTranscribeRequest) MarshalJSON() ([]byte, error)

func (*NullableSpeechTranscribeRequest) Set

func (*NullableSpeechTranscribeRequest) UnmarshalJSON

func (v *NullableSpeechTranscribeRequest) UnmarshalJSON(src []byte) error

func (*NullableSpeechTranscribeRequest) Unset

type NullableString

type NullableString struct {
	// contains filtered or unexported fields
}

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

func (v NullableString) MarshalJSON() ([]byte, error)

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

func (v *NullableString) UnmarshalJSON(src []byte) error

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableTextToSpeechRequest

type NullableTextToSpeechRequest struct {
	// contains filtered or unexported fields
}

func NewNullableTextToSpeechRequest

func NewNullableTextToSpeechRequest(val *TextToSpeechRequest) *NullableTextToSpeechRequest

func (NullableTextToSpeechRequest) Get

func (NullableTextToSpeechRequest) IsSet

func (NullableTextToSpeechRequest) MarshalJSON

func (v NullableTextToSpeechRequest) MarshalJSON() ([]byte, error)

func (*NullableTextToSpeechRequest) Set

func (*NullableTextToSpeechRequest) UnmarshalJSON

func (v *NullableTextToSpeechRequest) UnmarshalJSON(src []byte) error

func (*NullableTextToSpeechRequest) Unset

func (v *NullableTextToSpeechRequest) Unset()

type NullableTextToSpeechResponse added in v0.0.2

type NullableTextToSpeechResponse struct {
	// contains filtered or unexported fields
}

func NewNullableTextToSpeechResponse added in v0.0.2

func NewNullableTextToSpeechResponse(val *TextToSpeechResponse) *NullableTextToSpeechResponse

func (NullableTextToSpeechResponse) Get added in v0.0.2

func (NullableTextToSpeechResponse) IsSet added in v0.0.2

func (NullableTextToSpeechResponse) MarshalJSON added in v0.0.2

func (v NullableTextToSpeechResponse) MarshalJSON() ([]byte, error)

func (*NullableTextToSpeechResponse) Set added in v0.0.2

func (*NullableTextToSpeechResponse) UnmarshalJSON added in v0.0.2

func (v *NullableTextToSpeechResponse) UnmarshalJSON(src []byte) error

func (*NullableTextToSpeechResponse) Unset added in v0.0.2

func (v *NullableTextToSpeechResponse) Unset()

type NullableTime

type NullableTime struct {
	// contains filtered or unexported fields
}

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

func (v NullableTime) MarshalJSON() ([]byte, error)

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

func (v *NullableTime) UnmarshalJSON(src []byte) error

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type NullableValidationError

type NullableValidationError struct {
	// contains filtered or unexported fields
}

func NewNullableValidationError

func NewNullableValidationError(val *ValidationError) *NullableValidationError

func (NullableValidationError) Get

func (NullableValidationError) IsSet

func (v NullableValidationError) IsSet() bool

func (NullableValidationError) MarshalJSON

func (v NullableValidationError) MarshalJSON() ([]byte, error)

func (*NullableValidationError) Set

func (*NullableValidationError) UnmarshalJSON

func (v *NullableValidationError) UnmarshalJSON(src []byte) error

func (*NullableValidationError) Unset

func (v *NullableValidationError) Unset()

type NullableValidationErrorLocInner

type NullableValidationErrorLocInner struct {
	// contains filtered or unexported fields
}

func (NullableValidationErrorLocInner) Get

func (NullableValidationErrorLocInner) IsSet

func (NullableValidationErrorLocInner) MarshalJSON

func (v NullableValidationErrorLocInner) MarshalJSON() ([]byte, error)

func (*NullableValidationErrorLocInner) Set

func (*NullableValidationErrorLocInner) UnmarshalJSON

func (v *NullableValidationErrorLocInner) UnmarshalJSON(src []byte) error

func (*NullableValidationErrorLocInner) Unset

type NullableVoiceConversionRequest

type NullableVoiceConversionRequest struct {
	// contains filtered or unexported fields
}

func (NullableVoiceConversionRequest) Get

func (NullableVoiceConversionRequest) IsSet

func (NullableVoiceConversionRequest) MarshalJSON

func (v NullableVoiceConversionRequest) MarshalJSON() ([]byte, error)

func (*NullableVoiceConversionRequest) Set

func (*NullableVoiceConversionRequest) UnmarshalJSON

func (v *NullableVoiceConversionRequest) UnmarshalJSON(src []byte) error

func (*NullableVoiceConversionRequest) Unset

func (v *NullableVoiceConversionRequest) Unset()

type NullableVoiceConversionResponse added in v0.0.2

type NullableVoiceConversionResponse struct {
	// contains filtered or unexported fields
}

func NewNullableVoiceConversionResponse added in v0.0.2

func NewNullableVoiceConversionResponse(val *VoiceConversionResponse) *NullableVoiceConversionResponse

func (NullableVoiceConversionResponse) Get added in v0.0.2

func (NullableVoiceConversionResponse) IsSet added in v0.0.2

func (NullableVoiceConversionResponse) MarshalJSON added in v0.0.2

func (v NullableVoiceConversionResponse) MarshalJSON() ([]byte, error)

func (*NullableVoiceConversionResponse) Set added in v0.0.2

func (*NullableVoiceConversionResponse) UnmarshalJSON added in v0.0.2

func (v *NullableVoiceConversionResponse) UnmarshalJSON(src []byte) error

func (*NullableVoiceConversionResponse) Unset added in v0.0.2

type NullableVoiceOptions added in v0.0.5

type NullableVoiceOptions struct {
	// contains filtered or unexported fields
}

func NewNullableVoiceOptions added in v0.0.5

func NewNullableVoiceOptions(val *VoiceOptions) *NullableVoiceOptions

func (NullableVoiceOptions) Get added in v0.0.5

func (NullableVoiceOptions) IsSet added in v0.0.5

func (v NullableVoiceOptions) IsSet() bool

func (NullableVoiceOptions) MarshalJSON added in v0.0.5

func (v NullableVoiceOptions) MarshalJSON() ([]byte, error)

func (*NullableVoiceOptions) Set added in v0.0.5

func (v *NullableVoiceOptions) Set(val *VoiceOptions)

func (*NullableVoiceOptions) UnmarshalJSON added in v0.0.5

func (v *NullableVoiceOptions) UnmarshalJSON(src []byte) error

func (*NullableVoiceOptions) Unset added in v0.0.5

func (v *NullableVoiceOptions) Unset()

type ServerConfiguration

type ServerConfiguration struct {
	URL         string
	Description string
	Variables   map[string]ServerVariable
}

ServerConfiguration stores the information about a server

type ServerConfigurations

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

ServerVariable stores the information about a server variable

type SpeechToTextResponse added in v0.0.2

type SpeechToTextResponse struct {
	Id *string `json:"id,omitempty"`
	// the name of the model
	Model   *string `json:"model,omitempty"`
	Created *int32  `json:"created,omitempty"`
	// text retrieved from the input audio
	Text                 *string                  `json:"text,omitempty"`
	Language             NullableString           `json:"language,omitempty"`
	Timestamps           []map[string]interface{} `json:"timestamps,omitempty"`
	AdditionalProperties map[string]interface{}
}

SpeechToTextResponse SpeechToTextResponse Result text determined from audio and optional language tag

func NewSpeechToTextResponse added in v0.0.2

func NewSpeechToTextResponse() *SpeechToTextResponse

NewSpeechToTextResponse instantiates a new SpeechToTextResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewSpeechToTextResponseWithDefaults added in v0.0.2

func NewSpeechToTextResponseWithDefaults() *SpeechToTextResponse

NewSpeechToTextResponseWithDefaults instantiates a new SpeechToTextResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*SpeechToTextResponse) GetCreated added in v0.0.2

func (o *SpeechToTextResponse) GetCreated() int32

GetCreated returns the Created field value if set, zero value otherwise.

func (*SpeechToTextResponse) GetCreatedOk added in v0.0.2

func (o *SpeechToTextResponse) GetCreatedOk() (*int32, bool)

GetCreatedOk returns a tuple with the Created field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SpeechToTextResponse) GetId added in v0.0.2

func (o *SpeechToTextResponse) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*SpeechToTextResponse) GetIdOk added in v0.0.2

func (o *SpeechToTextResponse) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SpeechToTextResponse) GetLanguage added in v0.0.2

func (o *SpeechToTextResponse) GetLanguage() string

GetLanguage returns the Language field value if set, zero value otherwise (both if not set or set to explicit null).

func (*SpeechToTextResponse) GetLanguageOk added in v0.0.2

func (o *SpeechToTextResponse) GetLanguageOk() (*string, bool)

GetLanguageOk returns a tuple with the Language field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*SpeechToTextResponse) GetModel added in v0.0.2

func (o *SpeechToTextResponse) GetModel() string

GetModel returns the Model field value if set, zero value otherwise.

func (*SpeechToTextResponse) GetModelOk added in v0.0.2

func (o *SpeechToTextResponse) GetModelOk() (*string, bool)

GetModelOk returns a tuple with the Model field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SpeechToTextResponse) GetText added in v0.0.2

func (o *SpeechToTextResponse) GetText() string

GetText returns the Text field value if set, zero value otherwise.

func (*SpeechToTextResponse) GetTextOk added in v0.0.2

func (o *SpeechToTextResponse) GetTextOk() (*string, bool)

GetTextOk returns a tuple with the Text field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SpeechToTextResponse) GetTimestamps added in v0.0.2

func (o *SpeechToTextResponse) GetTimestamps() []map[string]interface{}

GetTimestamps returns the Timestamps field value if set, zero value otherwise (both if not set or set to explicit null).

func (*SpeechToTextResponse) GetTimestampsOk added in v0.0.2

func (o *SpeechToTextResponse) GetTimestampsOk() ([]map[string]interface{}, bool)

GetTimestampsOk returns a tuple with the Timestamps field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*SpeechToTextResponse) HasCreated added in v0.0.2

func (o *SpeechToTextResponse) HasCreated() bool

HasCreated returns a boolean if a field has been set.

func (*SpeechToTextResponse) HasId added in v0.0.2

func (o *SpeechToTextResponse) HasId() bool

HasId returns a boolean if a field has been set.

func (*SpeechToTextResponse) HasLanguage added in v0.0.2

func (o *SpeechToTextResponse) HasLanguage() bool

HasLanguage returns a boolean if a field has been set.

func (*SpeechToTextResponse) HasModel added in v0.0.2

func (o *SpeechToTextResponse) HasModel() bool

HasModel returns a boolean if a field has been set.

func (*SpeechToTextResponse) HasText added in v0.0.2

func (o *SpeechToTextResponse) HasText() bool

HasText returns a boolean if a field has been set.

func (*SpeechToTextResponse) HasTimestamps added in v0.0.2

func (o *SpeechToTextResponse) HasTimestamps() bool

HasTimestamps returns a boolean if a field has been set.

func (SpeechToTextResponse) MarshalJSON added in v0.0.2

func (o SpeechToTextResponse) MarshalJSON() ([]byte, error)

func (*SpeechToTextResponse) SetCreated added in v0.0.2

func (o *SpeechToTextResponse) SetCreated(v int32)

SetCreated gets a reference to the given int32 and assigns it to the Created field.

func (*SpeechToTextResponse) SetId added in v0.0.2

func (o *SpeechToTextResponse) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*SpeechToTextResponse) SetLanguage added in v0.0.2

func (o *SpeechToTextResponse) SetLanguage(v string)

SetLanguage gets a reference to the given NullableString and assigns it to the Language field.

func (*SpeechToTextResponse) SetLanguageNil added in v0.0.2

func (o *SpeechToTextResponse) SetLanguageNil()

SetLanguageNil sets the value for Language to be an explicit nil

func (*SpeechToTextResponse) SetModel added in v0.0.2

func (o *SpeechToTextResponse) SetModel(v string)

SetModel gets a reference to the given string and assigns it to the Model field.

func (*SpeechToTextResponse) SetText added in v0.0.2

func (o *SpeechToTextResponse) SetText(v string)

SetText gets a reference to the given string and assigns it to the Text field.

func (*SpeechToTextResponse) SetTimestamps added in v0.0.2

func (o *SpeechToTextResponse) SetTimestamps(v []map[string]interface{})

SetTimestamps gets a reference to the given []map[string]interface{} and assigns it to the Timestamps field.

func (SpeechToTextResponse) ToMap added in v0.0.2

func (o SpeechToTextResponse) ToMap() (map[string]interface{}, error)

func (*SpeechToTextResponse) UnmarshalJSON added in v0.0.2

func (o *SpeechToTextResponse) UnmarshalJSON(data []byte) (err error)

func (*SpeechToTextResponse) UnsetLanguage added in v0.0.2

func (o *SpeechToTextResponse) UnsetLanguage()

UnsetLanguage ensures that no value is present for Language, not even an explicit nil

type SpeechTranscribeRequest

type SpeechTranscribeRequest struct {
	// the name of the model
	Model *string `json:"model,omitempty"`
	// Binary audio data of the reference speaker for synthesizing the text, encoded in base64
	InputAudio           *string      `json:"input_audio,omitempty"`
	GetLanguage          NullableBool `json:"get_language,omitempty"`
	GetTimestamps        NullableBool `json:"get_timestamps,omitempty"`
	AdditionalProperties map[string]interface{}
}

SpeechTranscribeRequest SpeechTranscribeRequest Used to apply ASR on a provided audio file Depending on model selection, the caller may need to provide additional params. Based on OpenAI STT API; extended for Harmony Speech Engine features.

func NewSpeechTranscribeRequest

func NewSpeechTranscribeRequest() *SpeechTranscribeRequest

NewSpeechTranscribeRequest instantiates a new SpeechTranscribeRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewSpeechTranscribeRequestWithDefaults

func NewSpeechTranscribeRequestWithDefaults() *SpeechTranscribeRequest

NewSpeechTranscribeRequestWithDefaults instantiates a new SpeechTranscribeRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*SpeechTranscribeRequest) GetGetLanguage

func (o *SpeechTranscribeRequest) GetGetLanguage() bool

GetGetLanguage returns the GetLanguage field value if set, zero value otherwise (both if not set or set to explicit null).

func (*SpeechTranscribeRequest) GetGetLanguageOk

func (o *SpeechTranscribeRequest) GetGetLanguageOk() (*bool, bool)

GetGetLanguageOk returns a tuple with the GetLanguage field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*SpeechTranscribeRequest) GetGetTimestamps

func (o *SpeechTranscribeRequest) GetGetTimestamps() bool

GetGetTimestamps returns the GetTimestamps field value if set, zero value otherwise (both if not set or set to explicit null).

func (*SpeechTranscribeRequest) GetGetTimestampsOk

func (o *SpeechTranscribeRequest) GetGetTimestampsOk() (*bool, bool)

GetGetTimestampsOk returns a tuple with the GetTimestamps field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*SpeechTranscribeRequest) GetInputAudio

func (o *SpeechTranscribeRequest) GetInputAudio() string

GetInputAudio returns the InputAudio field value if set, zero value otherwise.

func (*SpeechTranscribeRequest) GetInputAudioOk

func (o *SpeechTranscribeRequest) GetInputAudioOk() (*string, bool)

GetInputAudioOk returns a tuple with the InputAudio field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SpeechTranscribeRequest) GetModel

func (o *SpeechTranscribeRequest) GetModel() string

GetModel returns the Model field value if set, zero value otherwise.

func (*SpeechTranscribeRequest) GetModelOk

func (o *SpeechTranscribeRequest) GetModelOk() (*string, bool)

GetModelOk returns a tuple with the Model field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SpeechTranscribeRequest) HasGetLanguage

func (o *SpeechTranscribeRequest) HasGetLanguage() bool

HasGetLanguage returns a boolean if a field has been set.

func (*SpeechTranscribeRequest) HasGetTimestamps

func (o *SpeechTranscribeRequest) HasGetTimestamps() bool

HasGetTimestamps returns a boolean if a field has been set.

func (*SpeechTranscribeRequest) HasInputAudio

func (o *SpeechTranscribeRequest) HasInputAudio() bool

HasInputAudio returns a boolean if a field has been set.

func (*SpeechTranscribeRequest) HasModel

func (o *SpeechTranscribeRequest) HasModel() bool

HasModel returns a boolean if a field has been set.

func (SpeechTranscribeRequest) MarshalJSON

func (o SpeechTranscribeRequest) MarshalJSON() ([]byte, error)

func (*SpeechTranscribeRequest) SetGetLanguage

func (o *SpeechTranscribeRequest) SetGetLanguage(v bool)

SetGetLanguage gets a reference to the given NullableBool and assigns it to the GetLanguage field.

func (*SpeechTranscribeRequest) SetGetLanguageNil

func (o *SpeechTranscribeRequest) SetGetLanguageNil()

SetGetLanguageNil sets the value for GetLanguage to be an explicit nil

func (*SpeechTranscribeRequest) SetGetTimestamps

func (o *SpeechTranscribeRequest) SetGetTimestamps(v bool)

SetGetTimestamps gets a reference to the given NullableBool and assigns it to the GetTimestamps field.

func (*SpeechTranscribeRequest) SetGetTimestampsNil

func (o *SpeechTranscribeRequest) SetGetTimestampsNil()

SetGetTimestampsNil sets the value for GetTimestamps to be an explicit nil

func (*SpeechTranscribeRequest) SetInputAudio

func (o *SpeechTranscribeRequest) SetInputAudio(v string)

SetInputAudio gets a reference to the given string and assigns it to the InputAudio field.

func (*SpeechTranscribeRequest) SetModel

func (o *SpeechTranscribeRequest) SetModel(v string)

SetModel gets a reference to the given string and assigns it to the Model field.

func (SpeechTranscribeRequest) ToMap

func (o SpeechTranscribeRequest) ToMap() (map[string]interface{}, error)

func (*SpeechTranscribeRequest) UnmarshalJSON

func (o *SpeechTranscribeRequest) UnmarshalJSON(data []byte) (err error)

func (*SpeechTranscribeRequest) UnsetGetLanguage

func (o *SpeechTranscribeRequest) UnsetGetLanguage()

UnsetGetLanguage ensures that no value is present for GetLanguage, not even an explicit nil

func (*SpeechTranscribeRequest) UnsetGetTimestamps

func (o *SpeechTranscribeRequest) UnsetGetTimestamps()

UnsetGetTimestamps ensures that no value is present for GetTimestamps, not even an explicit nil

type TextToSpeechRequest

type TextToSpeechRequest struct {
	// the name of the model
	Model *string `json:"model,omitempty"`
	// the text to synthesize
	Input *string `json:"input,omitempty"`
	// the operation mode for the model to process the request
	Mode                  *string                    `json:"mode,omitempty"`
	Language              NullableString             `json:"language,omitempty"`
	Voice                 NullableString             `json:"voice,omitempty"`
	InputAudio            NullableString             `json:"input_audio,omitempty"`
	InputVadMode          NullableString             `json:"input_vad_mode,omitempty"`
	InputVadData          NullableString             `json:"input_vad_data,omitempty"`
	InputEmbedding        NullableString             `json:"input_embedding,omitempty"`
	GenerationOptions     NullableGenerationOptions  `json:"generation_options,omitempty"`
	OutputOptions         NullableAudioOutputOptions `json:"output_options,omitempty"`
	PostGenerationFilters []VoiceConversionRequest   `json:"post_generation_filters,omitempty"`
	AdditionalProperties  map[string]interface{}
}

TextToSpeechRequest TextToSpeechRequest Used to trigger a speech generation for the provided text input using the specified model. Depending on model selection, the caller may need to provide additional params. Based on OpenAI TTS API; extended for Harmony Speech Engine features.

func NewTextToSpeechRequest

func NewTextToSpeechRequest() *TextToSpeechRequest

NewTextToSpeechRequest instantiates a new TextToSpeechRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTextToSpeechRequestWithDefaults

func NewTextToSpeechRequestWithDefaults() *TextToSpeechRequest

NewTextToSpeechRequestWithDefaults instantiates a new TextToSpeechRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*TextToSpeechRequest) GetGenerationOptions

func (o *TextToSpeechRequest) GetGenerationOptions() GenerationOptions

GetGenerationOptions returns the GenerationOptions field value if set, zero value otherwise (both if not set or set to explicit null).

func (*TextToSpeechRequest) GetGenerationOptionsOk

func (o *TextToSpeechRequest) GetGenerationOptionsOk() (*GenerationOptions, bool)

GetGenerationOptionsOk returns a tuple with the GenerationOptions field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TextToSpeechRequest) GetInput

func (o *TextToSpeechRequest) GetInput() string

GetInput returns the Input field value if set, zero value otherwise.

func (*TextToSpeechRequest) GetInputAudio

func (o *TextToSpeechRequest) GetInputAudio() string

GetInputAudio returns the InputAudio field value if set, zero value otherwise (both if not set or set to explicit null).

func (*TextToSpeechRequest) GetInputAudioOk

func (o *TextToSpeechRequest) GetInputAudioOk() (*string, bool)

GetInputAudioOk returns a tuple with the InputAudio field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TextToSpeechRequest) GetInputEmbedding

func (o *TextToSpeechRequest) GetInputEmbedding() string

GetInputEmbedding returns the InputEmbedding field value if set, zero value otherwise (both if not set or set to explicit null).

func (*TextToSpeechRequest) GetInputEmbeddingOk

func (o *TextToSpeechRequest) GetInputEmbeddingOk() (*string, bool)

GetInputEmbeddingOk returns a tuple with the InputEmbedding field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TextToSpeechRequest) GetInputOk

func (o *TextToSpeechRequest) GetInputOk() (*string, bool)

GetInputOk returns a tuple with the Input field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TextToSpeechRequest) GetInputVadData

func (o *TextToSpeechRequest) GetInputVadData() string

GetInputVadData returns the InputVadData field value if set, zero value otherwise (both if not set or set to explicit null).

func (*TextToSpeechRequest) GetInputVadDataOk

func (o *TextToSpeechRequest) GetInputVadDataOk() (*string, bool)

GetInputVadDataOk returns a tuple with the InputVadData field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TextToSpeechRequest) GetInputVadMode

func (o *TextToSpeechRequest) GetInputVadMode() string

GetInputVadMode returns the InputVadMode field value if set, zero value otherwise (both if not set or set to explicit null).

func (*TextToSpeechRequest) GetInputVadModeOk

func (o *TextToSpeechRequest) GetInputVadModeOk() (*string, bool)

GetInputVadModeOk returns a tuple with the InputVadMode field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TextToSpeechRequest) GetLanguage

func (o *TextToSpeechRequest) GetLanguage() string

GetLanguage returns the Language field value if set, zero value otherwise (both if not set or set to explicit null).

func (*TextToSpeechRequest) GetLanguageOk

func (o *TextToSpeechRequest) GetLanguageOk() (*string, bool)

GetLanguageOk returns a tuple with the Language field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TextToSpeechRequest) GetMode added in v0.0.9

func (o *TextToSpeechRequest) GetMode() string

GetMode returns the Mode field value if set, zero value otherwise.

func (*TextToSpeechRequest) GetModeOk added in v0.0.9

func (o *TextToSpeechRequest) GetModeOk() (*string, bool)

GetModeOk returns a tuple with the Mode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TextToSpeechRequest) GetModel

func (o *TextToSpeechRequest) GetModel() string

GetModel returns the Model field value if set, zero value otherwise.

func (*TextToSpeechRequest) GetModelOk

func (o *TextToSpeechRequest) GetModelOk() (*string, bool)

GetModelOk returns a tuple with the Model field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TextToSpeechRequest) GetOutputOptions

func (o *TextToSpeechRequest) GetOutputOptions() AudioOutputOptions

GetOutputOptions returns the OutputOptions field value if set, zero value otherwise (both if not set or set to explicit null).

func (*TextToSpeechRequest) GetOutputOptionsOk

func (o *TextToSpeechRequest) GetOutputOptionsOk() (*AudioOutputOptions, bool)

GetOutputOptionsOk returns a tuple with the OutputOptions field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TextToSpeechRequest) GetPostGenerationFilters

func (o *TextToSpeechRequest) GetPostGenerationFilters() []VoiceConversionRequest

GetPostGenerationFilters returns the PostGenerationFilters field value if set, zero value otherwise (both if not set or set to explicit null).

func (*TextToSpeechRequest) GetPostGenerationFiltersOk

func (o *TextToSpeechRequest) GetPostGenerationFiltersOk() ([]VoiceConversionRequest, bool)

GetPostGenerationFiltersOk returns a tuple with the PostGenerationFilters field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TextToSpeechRequest) GetVoice

func (o *TextToSpeechRequest) GetVoice() string

GetVoice returns the Voice field value if set, zero value otherwise (both if not set or set to explicit null).

func (*TextToSpeechRequest) GetVoiceOk

func (o *TextToSpeechRequest) GetVoiceOk() (*string, bool)

GetVoiceOk returns a tuple with the Voice field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TextToSpeechRequest) HasGenerationOptions

func (o *TextToSpeechRequest) HasGenerationOptions() bool

HasGenerationOptions returns a boolean if a field has been set.

func (*TextToSpeechRequest) HasInput

func (o *TextToSpeechRequest) HasInput() bool

HasInput returns a boolean if a field has been set.

func (*TextToSpeechRequest) HasInputAudio

func (o *TextToSpeechRequest) HasInputAudio() bool

HasInputAudio returns a boolean if a field has been set.

func (*TextToSpeechRequest) HasInputEmbedding

func (o *TextToSpeechRequest) HasInputEmbedding() bool

HasInputEmbedding returns a boolean if a field has been set.

func (*TextToSpeechRequest) HasInputVadData

func (o *TextToSpeechRequest) HasInputVadData() bool

HasInputVadData returns a boolean if a field has been set.

func (*TextToSpeechRequest) HasInputVadMode

func (o *TextToSpeechRequest) HasInputVadMode() bool

HasInputVadMode returns a boolean if a field has been set.

func (*TextToSpeechRequest) HasLanguage

func (o *TextToSpeechRequest) HasLanguage() bool

HasLanguage returns a boolean if a field has been set.

func (*TextToSpeechRequest) HasMode added in v0.0.9

func (o *TextToSpeechRequest) HasMode() bool

HasMode returns a boolean if a field has been set.

func (*TextToSpeechRequest) HasModel

func (o *TextToSpeechRequest) HasModel() bool

HasModel returns a boolean if a field has been set.

func (*TextToSpeechRequest) HasOutputOptions

func (o *TextToSpeechRequest) HasOutputOptions() bool

HasOutputOptions returns a boolean if a field has been set.

func (*TextToSpeechRequest) HasPostGenerationFilters

func (o *TextToSpeechRequest) HasPostGenerationFilters() bool

HasPostGenerationFilters returns a boolean if a field has been set.

func (*TextToSpeechRequest) HasVoice

func (o *TextToSpeechRequest) HasVoice() bool

HasVoice returns a boolean if a field has been set.

func (TextToSpeechRequest) MarshalJSON

func (o TextToSpeechRequest) MarshalJSON() ([]byte, error)

func (*TextToSpeechRequest) SetGenerationOptions

func (o *TextToSpeechRequest) SetGenerationOptions(v GenerationOptions)

SetGenerationOptions gets a reference to the given NullableGenerationOptions and assigns it to the GenerationOptions field.

func (*TextToSpeechRequest) SetGenerationOptionsNil

func (o *TextToSpeechRequest) SetGenerationOptionsNil()

SetGenerationOptionsNil sets the value for GenerationOptions to be an explicit nil

func (*TextToSpeechRequest) SetInput

func (o *TextToSpeechRequest) SetInput(v string)

SetInput gets a reference to the given string and assigns it to the Input field.

func (*TextToSpeechRequest) SetInputAudio

func (o *TextToSpeechRequest) SetInputAudio(v string)

SetInputAudio gets a reference to the given NullableString and assigns it to the InputAudio field.

func (*TextToSpeechRequest) SetInputAudioNil

func (o *TextToSpeechRequest) SetInputAudioNil()

SetInputAudioNil sets the value for InputAudio to be an explicit nil

func (*TextToSpeechRequest) SetInputEmbedding

func (o *TextToSpeechRequest) SetInputEmbedding(v string)

SetInputEmbedding gets a reference to the given NullableString and assigns it to the InputEmbedding field.

func (*TextToSpeechRequest) SetInputEmbeddingNil

func (o *TextToSpeechRequest) SetInputEmbeddingNil()

SetInputEmbeddingNil sets the value for InputEmbedding to be an explicit nil

func (*TextToSpeechRequest) SetInputVadData

func (o *TextToSpeechRequest) SetInputVadData(v string)

SetInputVadData gets a reference to the given NullableString and assigns it to the InputVadData field.

func (*TextToSpeechRequest) SetInputVadDataNil

func (o *TextToSpeechRequest) SetInputVadDataNil()

SetInputVadDataNil sets the value for InputVadData to be an explicit nil

func (*TextToSpeechRequest) SetInputVadMode

func (o *TextToSpeechRequest) SetInputVadMode(v string)

SetInputVadMode gets a reference to the given NullableString and assigns it to the InputVadMode field.

func (*TextToSpeechRequest) SetInputVadModeNil

func (o *TextToSpeechRequest) SetInputVadModeNil()

SetInputVadModeNil sets the value for InputVadMode to be an explicit nil

func (*TextToSpeechRequest) SetLanguage

func (o *TextToSpeechRequest) SetLanguage(v string)

SetLanguage gets a reference to the given NullableString and assigns it to the Language field.

func (*TextToSpeechRequest) SetLanguageNil added in v0.0.3

func (o *TextToSpeechRequest) SetLanguageNil()

SetLanguageNil sets the value for Language to be an explicit nil

func (*TextToSpeechRequest) SetMode added in v0.0.9

func (o *TextToSpeechRequest) SetMode(v string)

SetMode gets a reference to the given string and assigns it to the Mode field.

func (*TextToSpeechRequest) SetModel

func (o *TextToSpeechRequest) SetModel(v string)

SetModel gets a reference to the given string and assigns it to the Model field.

func (*TextToSpeechRequest) SetOutputOptions

func (o *TextToSpeechRequest) SetOutputOptions(v AudioOutputOptions)

SetOutputOptions gets a reference to the given NullableAudioOutputOptions and assigns it to the OutputOptions field.

func (*TextToSpeechRequest) SetOutputOptionsNil

func (o *TextToSpeechRequest) SetOutputOptionsNil()

SetOutputOptionsNil sets the value for OutputOptions to be an explicit nil

func (*TextToSpeechRequest) SetPostGenerationFilters

func (o *TextToSpeechRequest) SetPostGenerationFilters(v []VoiceConversionRequest)

SetPostGenerationFilters gets a reference to the given []VoiceConversionRequest and assigns it to the PostGenerationFilters field.

func (*TextToSpeechRequest) SetVoice

func (o *TextToSpeechRequest) SetVoice(v string)

SetVoice gets a reference to the given NullableString and assigns it to the Voice field.

func (*TextToSpeechRequest) SetVoiceNil

func (o *TextToSpeechRequest) SetVoiceNil()

SetVoiceNil sets the value for Voice to be an explicit nil

func (TextToSpeechRequest) ToMap

func (o TextToSpeechRequest) ToMap() (map[string]interface{}, error)

func (*TextToSpeechRequest) UnmarshalJSON

func (o *TextToSpeechRequest) UnmarshalJSON(data []byte) (err error)

func (*TextToSpeechRequest) UnsetGenerationOptions

func (o *TextToSpeechRequest) UnsetGenerationOptions()

UnsetGenerationOptions ensures that no value is present for GenerationOptions, not even an explicit nil

func (*TextToSpeechRequest) UnsetInputAudio

func (o *TextToSpeechRequest) UnsetInputAudio()

UnsetInputAudio ensures that no value is present for InputAudio, not even an explicit nil

func (*TextToSpeechRequest) UnsetInputEmbedding

func (o *TextToSpeechRequest) UnsetInputEmbedding()

UnsetInputEmbedding ensures that no value is present for InputEmbedding, not even an explicit nil

func (*TextToSpeechRequest) UnsetInputVadData

func (o *TextToSpeechRequest) UnsetInputVadData()

UnsetInputVadData ensures that no value is present for InputVadData, not even an explicit nil

func (*TextToSpeechRequest) UnsetInputVadMode

func (o *TextToSpeechRequest) UnsetInputVadMode()

UnsetInputVadMode ensures that no value is present for InputVadMode, not even an explicit nil

func (*TextToSpeechRequest) UnsetLanguage added in v0.0.3

func (o *TextToSpeechRequest) UnsetLanguage()

UnsetLanguage ensures that no value is present for Language, not even an explicit nil

func (*TextToSpeechRequest) UnsetOutputOptions

func (o *TextToSpeechRequest) UnsetOutputOptions()

UnsetOutputOptions ensures that no value is present for OutputOptions, not even an explicit nil

func (*TextToSpeechRequest) UnsetVoice

func (o *TextToSpeechRequest) UnsetVoice()

UnsetVoice ensures that no value is present for Voice, not even an explicit nil

type TextToSpeechResponse added in v0.0.2

type TextToSpeechResponse struct {
	Id *string `json:"id,omitempty"`
	// the name of the model
	Model   *string `json:"model,omitempty"`
	Created *int32  `json:"created,omitempty"`
	// Audio Bytes in requested format of the initial request
	Data                 *string `json:"data,omitempty"`
	AdditionalProperties map[string]interface{}
}

TextToSpeechResponse TextToSpeechResponse Extends AudioDataResponse with a request specific ID

func NewTextToSpeechResponse added in v0.0.2

func NewTextToSpeechResponse() *TextToSpeechResponse

NewTextToSpeechResponse instantiates a new TextToSpeechResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTextToSpeechResponseWithDefaults added in v0.0.2

func NewTextToSpeechResponseWithDefaults() *TextToSpeechResponse

NewTextToSpeechResponseWithDefaults instantiates a new TextToSpeechResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*TextToSpeechResponse) GetCreated added in v0.0.2

func (o *TextToSpeechResponse) GetCreated() int32

GetCreated returns the Created field value if set, zero value otherwise.

func (*TextToSpeechResponse) GetCreatedOk added in v0.0.2

func (o *TextToSpeechResponse) GetCreatedOk() (*int32, bool)

GetCreatedOk returns a tuple with the Created field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TextToSpeechResponse) GetData added in v0.0.2

func (o *TextToSpeechResponse) GetData() string

GetData returns the Data field value if set, zero value otherwise.

func (*TextToSpeechResponse) GetDataOk added in v0.0.2

func (o *TextToSpeechResponse) GetDataOk() (*string, bool)

GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TextToSpeechResponse) GetId added in v0.0.2

func (o *TextToSpeechResponse) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*TextToSpeechResponse) GetIdOk added in v0.0.2

func (o *TextToSpeechResponse) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TextToSpeechResponse) GetModel added in v0.0.2

func (o *TextToSpeechResponse) GetModel() string

GetModel returns the Model field value if set, zero value otherwise.

func (*TextToSpeechResponse) GetModelOk added in v0.0.2

func (o *TextToSpeechResponse) GetModelOk() (*string, bool)

GetModelOk returns a tuple with the Model field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TextToSpeechResponse) HasCreated added in v0.0.2

func (o *TextToSpeechResponse) HasCreated() bool

HasCreated returns a boolean if a field has been set.

func (*TextToSpeechResponse) HasData added in v0.0.2

func (o *TextToSpeechResponse) HasData() bool

HasData returns a boolean if a field has been set.

func (*TextToSpeechResponse) HasId added in v0.0.2

func (o *TextToSpeechResponse) HasId() bool

HasId returns a boolean if a field has been set.

func (*TextToSpeechResponse) HasModel added in v0.0.2

func (o *TextToSpeechResponse) HasModel() bool

HasModel returns a boolean if a field has been set.

func (TextToSpeechResponse) MarshalJSON added in v0.0.2

func (o TextToSpeechResponse) MarshalJSON() ([]byte, error)

func (*TextToSpeechResponse) SetCreated added in v0.0.2

func (o *TextToSpeechResponse) SetCreated(v int32)

SetCreated gets a reference to the given int32 and assigns it to the Created field.

func (*TextToSpeechResponse) SetData added in v0.0.2

func (o *TextToSpeechResponse) SetData(v string)

SetData gets a reference to the given string and assigns it to the Data field.

func (*TextToSpeechResponse) SetId added in v0.0.2

func (o *TextToSpeechResponse) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*TextToSpeechResponse) SetModel added in v0.0.2

func (o *TextToSpeechResponse) SetModel(v string)

SetModel gets a reference to the given string and assigns it to the Model field.

func (TextToSpeechResponse) ToMap added in v0.0.2

func (o TextToSpeechResponse) ToMap() (map[string]interface{}, error)

func (*TextToSpeechResponse) UnmarshalJSON added in v0.0.2

func (o *TextToSpeechResponse) UnmarshalJSON(data []byte) (err error)

type ValidationError

type ValidationError struct {
	Loc                  []ValidationErrorLocInner `json:"loc"`
	Msg                  string                    `json:"msg"`
	Type                 string                    `json:"type"`
	AdditionalProperties map[string]interface{}
}

ValidationError struct for ValidationError

func NewValidationError

func NewValidationError(loc []ValidationErrorLocInner, msg string, type_ string) *ValidationError

NewValidationError instantiates a new ValidationError object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewValidationErrorWithDefaults

func NewValidationErrorWithDefaults() *ValidationError

NewValidationErrorWithDefaults instantiates a new ValidationError object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ValidationError) GetLoc

GetLoc returns the Loc field value

func (*ValidationError) GetLocOk

func (o *ValidationError) GetLocOk() ([]ValidationErrorLocInner, bool)

GetLocOk returns a tuple with the Loc field value and a boolean to check if the value has been set.

func (*ValidationError) GetMsg

func (o *ValidationError) GetMsg() string

GetMsg returns the Msg field value

func (*ValidationError) GetMsgOk

func (o *ValidationError) GetMsgOk() (*string, bool)

GetMsgOk returns a tuple with the Msg field value and a boolean to check if the value has been set.

func (*ValidationError) GetType

func (o *ValidationError) GetType() string

GetType returns the Type field value

func (*ValidationError) GetTypeOk

func (o *ValidationError) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (ValidationError) MarshalJSON

func (o ValidationError) MarshalJSON() ([]byte, error)

func (*ValidationError) SetLoc

SetLoc sets field value

func (*ValidationError) SetMsg

func (o *ValidationError) SetMsg(v string)

SetMsg sets field value

func (*ValidationError) SetType

func (o *ValidationError) SetType(v string)

SetType sets field value

func (ValidationError) ToMap

func (o ValidationError) ToMap() (map[string]interface{}, error)

func (*ValidationError) UnmarshalJSON

func (o *ValidationError) UnmarshalJSON(data []byte) (err error)

type ValidationErrorLocInner

type ValidationErrorLocInner struct {
	Int32  *int32
	String *string
}

ValidationErrorLocInner struct for ValidationErrorLocInner

func (ValidationErrorLocInner) MarshalJSON

func (src ValidationErrorLocInner) MarshalJSON() ([]byte, error)

Marshal data from the first non-nil pointers in the struct to JSON

func (*ValidationErrorLocInner) UnmarshalJSON

func (dst *ValidationErrorLocInner) UnmarshalJSON(data []byte) error

Unmarshal JSON data into any of the pointers in the struct

type VoiceConversionRequest

type VoiceConversionRequest struct {
	// the name of the model
	Model *string `json:"model,omitempty"`
	// Binary audio data to be processed, encoded in base64
	SourceAudio          *string                    `json:"source_audio,omitempty"`
	TargetAudio          NullableString             `json:"target_audio,omitempty"`
	TargetEmbedding      NullableString             `json:"target_embedding,omitempty"`
	GenerationOptions    NullableGenerationOptions  `json:"generation_options,omitempty"`
	OutputOptions        NullableAudioOutputOptions `json:"output_options,omitempty"`
	AdditionalProperties map[string]interface{}
}

VoiceConversionRequest VoiceConversionRequest Used to convert the tone or nature of a voice in a specific way. Depending on model selection, the caller may need to provide additional params.

func NewVoiceConversionRequest

func NewVoiceConversionRequest() *VoiceConversionRequest

NewVoiceConversionRequest instantiates a new VoiceConversionRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewVoiceConversionRequestWithDefaults

func NewVoiceConversionRequestWithDefaults() *VoiceConversionRequest

NewVoiceConversionRequestWithDefaults instantiates a new VoiceConversionRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*VoiceConversionRequest) GetGenerationOptions

func (o *VoiceConversionRequest) GetGenerationOptions() GenerationOptions

GetGenerationOptions returns the GenerationOptions field value if set, zero value otherwise (both if not set or set to explicit null).

func (*VoiceConversionRequest) GetGenerationOptionsOk

func (o *VoiceConversionRequest) GetGenerationOptionsOk() (*GenerationOptions, bool)

GetGenerationOptionsOk returns a tuple with the GenerationOptions field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*VoiceConversionRequest) GetModel

func (o *VoiceConversionRequest) GetModel() string

GetModel returns the Model field value if set, zero value otherwise.

func (*VoiceConversionRequest) GetModelOk

func (o *VoiceConversionRequest) GetModelOk() (*string, bool)

GetModelOk returns a tuple with the Model field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VoiceConversionRequest) GetOutputOptions

func (o *VoiceConversionRequest) GetOutputOptions() AudioOutputOptions

GetOutputOptions returns the OutputOptions field value if set, zero value otherwise (both if not set or set to explicit null).

func (*VoiceConversionRequest) GetOutputOptionsOk

func (o *VoiceConversionRequest) GetOutputOptionsOk() (*AudioOutputOptions, bool)

GetOutputOptionsOk returns a tuple with the OutputOptions field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*VoiceConversionRequest) GetSourceAudio

func (o *VoiceConversionRequest) GetSourceAudio() string

GetSourceAudio returns the SourceAudio field value if set, zero value otherwise.

func (*VoiceConversionRequest) GetSourceAudioOk

func (o *VoiceConversionRequest) GetSourceAudioOk() (*string, bool)

GetSourceAudioOk returns a tuple with the SourceAudio field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VoiceConversionRequest) GetTargetAudio

func (o *VoiceConversionRequest) GetTargetAudio() string

GetTargetAudio returns the TargetAudio field value if set, zero value otherwise (both if not set or set to explicit null).

func (*VoiceConversionRequest) GetTargetAudioOk

func (o *VoiceConversionRequest) GetTargetAudioOk() (*string, bool)

GetTargetAudioOk returns a tuple with the TargetAudio field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*VoiceConversionRequest) GetTargetEmbedding

func (o *VoiceConversionRequest) GetTargetEmbedding() string

GetTargetEmbedding returns the TargetEmbedding field value if set, zero value otherwise (both if not set or set to explicit null).

func (*VoiceConversionRequest) GetTargetEmbeddingOk

func (o *VoiceConversionRequest) GetTargetEmbeddingOk() (*string, bool)

GetTargetEmbeddingOk returns a tuple with the TargetEmbedding field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*VoiceConversionRequest) HasGenerationOptions

func (o *VoiceConversionRequest) HasGenerationOptions() bool

HasGenerationOptions returns a boolean if a field has been set.

func (*VoiceConversionRequest) HasModel

func (o *VoiceConversionRequest) HasModel() bool

HasModel returns a boolean if a field has been set.

func (*VoiceConversionRequest) HasOutputOptions

func (o *VoiceConversionRequest) HasOutputOptions() bool

HasOutputOptions returns a boolean if a field has been set.

func (*VoiceConversionRequest) HasSourceAudio

func (o *VoiceConversionRequest) HasSourceAudio() bool

HasSourceAudio returns a boolean if a field has been set.

func (*VoiceConversionRequest) HasTargetAudio

func (o *VoiceConversionRequest) HasTargetAudio() bool

HasTargetAudio returns a boolean if a field has been set.

func (*VoiceConversionRequest) HasTargetEmbedding

func (o *VoiceConversionRequest) HasTargetEmbedding() bool

HasTargetEmbedding returns a boolean if a field has been set.

func (VoiceConversionRequest) MarshalJSON

func (o VoiceConversionRequest) MarshalJSON() ([]byte, error)

func (*VoiceConversionRequest) SetGenerationOptions

func (o *VoiceConversionRequest) SetGenerationOptions(v GenerationOptions)

SetGenerationOptions gets a reference to the given NullableGenerationOptions and assigns it to the GenerationOptions field.

func (*VoiceConversionRequest) SetGenerationOptionsNil

func (o *VoiceConversionRequest) SetGenerationOptionsNil()

SetGenerationOptionsNil sets the value for GenerationOptions to be an explicit nil

func (*VoiceConversionRequest) SetModel

func (o *VoiceConversionRequest) SetModel(v string)

SetModel gets a reference to the given string and assigns it to the Model field.

func (*VoiceConversionRequest) SetOutputOptions

func (o *VoiceConversionRequest) SetOutputOptions(v AudioOutputOptions)

SetOutputOptions gets a reference to the given NullableAudioOutputOptions and assigns it to the OutputOptions field.

func (*VoiceConversionRequest) SetOutputOptionsNil

func (o *VoiceConversionRequest) SetOutputOptionsNil()

SetOutputOptionsNil sets the value for OutputOptions to be an explicit nil

func (*VoiceConversionRequest) SetSourceAudio

func (o *VoiceConversionRequest) SetSourceAudio(v string)

SetSourceAudio gets a reference to the given string and assigns it to the SourceAudio field.

func (*VoiceConversionRequest) SetTargetAudio

func (o *VoiceConversionRequest) SetTargetAudio(v string)

SetTargetAudio gets a reference to the given NullableString and assigns it to the TargetAudio field.

func (*VoiceConversionRequest) SetTargetAudioNil

func (o *VoiceConversionRequest) SetTargetAudioNil()

SetTargetAudioNil sets the value for TargetAudio to be an explicit nil

func (*VoiceConversionRequest) SetTargetEmbedding

func (o *VoiceConversionRequest) SetTargetEmbedding(v string)

SetTargetEmbedding gets a reference to the given NullableString and assigns it to the TargetEmbedding field.

func (*VoiceConversionRequest) SetTargetEmbeddingNil

func (o *VoiceConversionRequest) SetTargetEmbeddingNil()

SetTargetEmbeddingNil sets the value for TargetEmbedding to be an explicit nil

func (VoiceConversionRequest) ToMap

func (o VoiceConversionRequest) ToMap() (map[string]interface{}, error)

func (*VoiceConversionRequest) UnmarshalJSON

func (o *VoiceConversionRequest) UnmarshalJSON(data []byte) (err error)

func (*VoiceConversionRequest) UnsetGenerationOptions

func (o *VoiceConversionRequest) UnsetGenerationOptions()

UnsetGenerationOptions ensures that no value is present for GenerationOptions, not even an explicit nil

func (*VoiceConversionRequest) UnsetOutputOptions

func (o *VoiceConversionRequest) UnsetOutputOptions()

UnsetOutputOptions ensures that no value is present for OutputOptions, not even an explicit nil

func (*VoiceConversionRequest) UnsetTargetAudio

func (o *VoiceConversionRequest) UnsetTargetAudio()

UnsetTargetAudio ensures that no value is present for TargetAudio, not even an explicit nil

func (*VoiceConversionRequest) UnsetTargetEmbedding

func (o *VoiceConversionRequest) UnsetTargetEmbedding()

UnsetTargetEmbedding ensures that no value is present for TargetEmbedding, not even an explicit nil

type VoiceConversionResponse added in v0.0.2

type VoiceConversionResponse struct {
	Id *string `json:"id,omitempty"`
	// the name of the model
	Model   *string `json:"model,omitempty"`
	Created *int32  `json:"created,omitempty"`
	// Audio Bytes in requested format of the initial request
	Data                 *string `json:"data,omitempty"`
	AdditionalProperties map[string]interface{}
}

VoiceConversionResponse VoiceConversionResponse Extends AudioDataResponse with a request specific ID

func NewVoiceConversionResponse added in v0.0.2

func NewVoiceConversionResponse() *VoiceConversionResponse

NewVoiceConversionResponse instantiates a new VoiceConversionResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewVoiceConversionResponseWithDefaults added in v0.0.2

func NewVoiceConversionResponseWithDefaults() *VoiceConversionResponse

NewVoiceConversionResponseWithDefaults instantiates a new VoiceConversionResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*VoiceConversionResponse) GetCreated added in v0.0.2

func (o *VoiceConversionResponse) GetCreated() int32

GetCreated returns the Created field value if set, zero value otherwise.

func (*VoiceConversionResponse) GetCreatedOk added in v0.0.2

func (o *VoiceConversionResponse) GetCreatedOk() (*int32, bool)

GetCreatedOk returns a tuple with the Created field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VoiceConversionResponse) GetData added in v0.0.2

func (o *VoiceConversionResponse) GetData() string

GetData returns the Data field value if set, zero value otherwise.

func (*VoiceConversionResponse) GetDataOk added in v0.0.2

func (o *VoiceConversionResponse) GetDataOk() (*string, bool)

GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VoiceConversionResponse) GetId added in v0.0.2

func (o *VoiceConversionResponse) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*VoiceConversionResponse) GetIdOk added in v0.0.2

func (o *VoiceConversionResponse) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VoiceConversionResponse) GetModel added in v0.0.2

func (o *VoiceConversionResponse) GetModel() string

GetModel returns the Model field value if set, zero value otherwise.

func (*VoiceConversionResponse) GetModelOk added in v0.0.2

func (o *VoiceConversionResponse) GetModelOk() (*string, bool)

GetModelOk returns a tuple with the Model field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VoiceConversionResponse) HasCreated added in v0.0.2

func (o *VoiceConversionResponse) HasCreated() bool

HasCreated returns a boolean if a field has been set.

func (*VoiceConversionResponse) HasData added in v0.0.2

func (o *VoiceConversionResponse) HasData() bool

HasData returns a boolean if a field has been set.

func (*VoiceConversionResponse) HasId added in v0.0.2

func (o *VoiceConversionResponse) HasId() bool

HasId returns a boolean if a field has been set.

func (*VoiceConversionResponse) HasModel added in v0.0.2

func (o *VoiceConversionResponse) HasModel() bool

HasModel returns a boolean if a field has been set.

func (VoiceConversionResponse) MarshalJSON added in v0.0.2

func (o VoiceConversionResponse) MarshalJSON() ([]byte, error)

func (*VoiceConversionResponse) SetCreated added in v0.0.2

func (o *VoiceConversionResponse) SetCreated(v int32)

SetCreated gets a reference to the given int32 and assigns it to the Created field.

func (*VoiceConversionResponse) SetData added in v0.0.2

func (o *VoiceConversionResponse) SetData(v string)

SetData gets a reference to the given string and assigns it to the Data field.

func (*VoiceConversionResponse) SetId added in v0.0.2

func (o *VoiceConversionResponse) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*VoiceConversionResponse) SetModel added in v0.0.2

func (o *VoiceConversionResponse) SetModel(v string)

SetModel gets a reference to the given string and assigns it to the Model field.

func (VoiceConversionResponse) ToMap added in v0.0.2

func (o VoiceConversionResponse) ToMap() (map[string]interface{}, error)

func (*VoiceConversionResponse) UnmarshalJSON added in v0.0.2

func (o *VoiceConversionResponse) UnmarshalJSON(data []byte) (err error)

type VoiceOptions added in v0.0.5

type VoiceOptions struct {
	Voice                *string  `json:"voice,omitempty"`
	Styles               []string `json:"styles,omitempty"`
	AdditionalProperties map[string]interface{}
}

VoiceOptions struct for VoiceOptions

func NewVoiceOptions added in v0.0.5

func NewVoiceOptions() *VoiceOptions

NewVoiceOptions instantiates a new VoiceOptions object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewVoiceOptionsWithDefaults added in v0.0.5

func NewVoiceOptionsWithDefaults() *VoiceOptions

NewVoiceOptionsWithDefaults instantiates a new VoiceOptions object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*VoiceOptions) GetStyles added in v0.0.5

func (o *VoiceOptions) GetStyles() []string

GetStyles returns the Styles field value if set, zero value otherwise (both if not set or set to explicit null).

func (*VoiceOptions) GetStylesOk added in v0.0.5

func (o *VoiceOptions) GetStylesOk() ([]string, bool)

GetStylesOk returns a tuple with the Styles field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*VoiceOptions) GetVoice added in v0.0.5

func (o *VoiceOptions) GetVoice() string

GetVoice returns the Voice field value if set, zero value otherwise.

func (*VoiceOptions) GetVoiceOk added in v0.0.5

func (o *VoiceOptions) GetVoiceOk() (*string, bool)

GetVoiceOk returns a tuple with the Voice field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VoiceOptions) HasStyles added in v0.0.5

func (o *VoiceOptions) HasStyles() bool

HasStyles returns a boolean if a field has been set.

func (*VoiceOptions) HasVoice added in v0.0.5

func (o *VoiceOptions) HasVoice() bool

HasVoice returns a boolean if a field has been set.

func (VoiceOptions) MarshalJSON added in v0.0.5

func (o VoiceOptions) MarshalJSON() ([]byte, error)

func (*VoiceOptions) SetStyles added in v0.0.5

func (o *VoiceOptions) SetStyles(v []string)

SetStyles gets a reference to the given []string and assigns it to the Styles field.

func (*VoiceOptions) SetVoice added in v0.0.5

func (o *VoiceOptions) SetVoice(v string)

SetVoice gets a reference to the given string and assigns it to the Voice field.

func (VoiceOptions) ToMap added in v0.0.5

func (o VoiceOptions) ToMap() (map[string]interface{}, error)

func (*VoiceOptions) UnmarshalJSON added in v0.0.5

func (o *VoiceOptions) UnmarshalJSON(data []byte) (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL