speechsaasprod

package
v1.1.26 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package speechsaasprodiface provides an interface to enable mocking the SPEECH_SAAS_PROD service client for testing your code.

It is important to note that this interface will have breaking changes when the service model is updated and adds new API operations, paginators, and waiters.

Index

Constants

View Source
const (
	ServiceName = "speech_saas_prod" // Name of service.
	EndpointsID = ServiceName        // ID to lookup a service endpoint with.
	ServiceID   = "speech_saas_prod" // ServiceID is a unique identifer of a specific service.
)

Service information constants

Variables

This section is empty.

Functions

This section is empty.

Types

type CategoryForListBigModelTTSTimbresOutput

type CategoryForListBigModelTTSTimbresOutput struct {
	Category *string `type:"string" json:",omitempty"`

	NextCategory *NextCategoryForListBigModelTTSTimbresOutput `type:"structure" json:",omitempty"`
	// contains filtered or unexported fields
}

func (CategoryForListBigModelTTSTimbresOutput) GoString

GoString returns the string representation

func (*CategoryForListBigModelTTSTimbresOutput) SetCategory

SetCategory sets the Category field's value.

func (*CategoryForListBigModelTTSTimbresOutput) SetNextCategory

SetNextCategory sets the NextCategory field's value.

func (CategoryForListBigModelTTSTimbresOutput) String

String returns the string representation

type EmotionForListBigModelTTSTimbresOutput

type EmotionForListBigModelTTSTimbresOutput struct {
	DemoText *string `type:"string" json:",omitempty"`

	DemoURL *string `type:"string" json:",omitempty"`

	Emotion *string `type:"string" json:",omitempty"`

	EmotionType *string `type:"string" json:",omitempty"`
	// contains filtered or unexported fields
}

func (EmotionForListBigModelTTSTimbresOutput) GoString

GoString returns the string representation

func (*EmotionForListBigModelTTSTimbresOutput) SetDemoText

SetDemoText sets the DemoText field's value.

func (*EmotionForListBigModelTTSTimbresOutput) SetDemoURL

SetDemoURL sets the DemoURL field's value.

func (*EmotionForListBigModelTTSTimbresOutput) SetEmotion

SetEmotion sets the Emotion field's value.

func (*EmotionForListBigModelTTSTimbresOutput) SetEmotionType

SetEmotionType sets the EmotionType field's value.

func (EmotionForListBigModelTTSTimbresOutput) String

String returns the string representation

type ListBigModelTTSTimbresInput

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

func (ListBigModelTTSTimbresInput) GoString

func (s ListBigModelTTSTimbresInput) GoString() string

GoString returns the string representation

func (ListBigModelTTSTimbresInput) String

String returns the string representation

type ListBigModelTTSTimbresOutput

type ListBigModelTTSTimbresOutput struct {
	Metadata *response.ResponseMetadata

	Timbres []*TimbreForListBigModelTTSTimbresOutput `type:"list" json:",omitempty"`
	// contains filtered or unexported fields
}

func (ListBigModelTTSTimbresOutput) GoString

func (s ListBigModelTTSTimbresOutput) GoString() string

GoString returns the string representation

func (*ListBigModelTTSTimbresOutput) SetTimbres

SetTimbres sets the Timbres field's value.

func (ListBigModelTTSTimbresOutput) String

String returns the string representation

type NextCategoryForListBigModelTTSTimbresOutput

type NextCategoryForListBigModelTTSTimbresOutput struct {
	Category *string `type:"string" json:",omitempty"`
	// contains filtered or unexported fields
}

func (NextCategoryForListBigModelTTSTimbresOutput) GoString

GoString returns the string representation

func (*NextCategoryForListBigModelTTSTimbresOutput) SetCategory

SetCategory sets the Category field's value.

func (NextCategoryForListBigModelTTSTimbresOutput) String

String returns the string representation

type SPEECHSAASPROD

type SPEECHSAASPROD struct {
	*client.Client
}

SPEECHSAASPROD provides the API operation methods for making requests to SPEECH_SAAS_PROD. See this package's package overview docs for details on the service.

SPEECHSAASPROD methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

func New

New create int can support ssl or region locate set

func (*SPEECHSAASPROD) ListBigModelTTSTimbres

func (c *SPEECHSAASPROD) ListBigModelTTSTimbres(input *ListBigModelTTSTimbresInput) (*ListBigModelTTSTimbresOutput, error)

ListBigModelTTSTimbres API operation for SPEECH_SAAS_PROD.

Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.

See the VOLCENGINE API reference guide for SPEECH_SAAS_PROD's API operation ListBigModelTTSTimbres for usage and error information.

func (*SPEECHSAASPROD) ListBigModelTTSTimbresCommon

func (c *SPEECHSAASPROD) ListBigModelTTSTimbresCommon(input *map[string]interface{}) (*map[string]interface{}, error)

ListBigModelTTSTimbresCommon API operation for SPEECH_SAAS_PROD.

Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.

See the VOLCENGINE API reference guide for SPEECH_SAAS_PROD's API operation ListBigModelTTSTimbresCommon for usage and error information.

func (*SPEECHSAASPROD) ListBigModelTTSTimbresCommonRequest

func (c *SPEECHSAASPROD) ListBigModelTTSTimbresCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})

ListBigModelTTSTimbresCommonRequest generates a "volcengine/request.Request" representing the client's request for the ListBigModelTTSTimbresCommon operation. The "output" return value will be populated with the ListBigModelTTSTimbresCommon request's response once the request completes successfully.

Use "Send" method on the returned ListBigModelTTSTimbresCommon Request to send the API call to the service. the "output" return value is not valid until after ListBigModelTTSTimbresCommon Send returns without error.

See ListBigModelTTSTimbresCommon for more information on using the ListBigModelTTSTimbresCommon API call, and error handling.

// Example sending a request using the ListBigModelTTSTimbresCommonRequest method.
req, resp := client.ListBigModelTTSTimbresCommonRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*SPEECHSAASPROD) ListBigModelTTSTimbresCommonWithContext

func (c *SPEECHSAASPROD) ListBigModelTTSTimbresCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)

ListBigModelTTSTimbresCommonWithContext is the same as ListBigModelTTSTimbresCommon with the addition of the ability to pass a context and additional request options.

See ListBigModelTTSTimbresCommon for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*SPEECHSAASPROD) ListBigModelTTSTimbresRequest

func (c *SPEECHSAASPROD) ListBigModelTTSTimbresRequest(input *ListBigModelTTSTimbresInput) (req *request.Request, output *ListBigModelTTSTimbresOutput)

ListBigModelTTSTimbresRequest generates a "volcengine/request.Request" representing the client's request for the ListBigModelTTSTimbres operation. The "output" return value will be populated with the ListBigModelTTSTimbresCommon request's response once the request completes successfully.

Use "Send" method on the returned ListBigModelTTSTimbresCommon Request to send the API call to the service. the "output" return value is not valid until after ListBigModelTTSTimbresCommon Send returns without error.

See ListBigModelTTSTimbres for more information on using the ListBigModelTTSTimbres API call, and error handling.

// Example sending a request using the ListBigModelTTSTimbresRequest method.
req, resp := client.ListBigModelTTSTimbresRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*SPEECHSAASPROD) ListBigModelTTSTimbresWithContext

func (c *SPEECHSAASPROD) ListBigModelTTSTimbresWithContext(ctx volcengine.Context, input *ListBigModelTTSTimbresInput, opts ...request.Option) (*ListBigModelTTSTimbresOutput, error)

ListBigModelTTSTimbresWithContext is the same as ListBigModelTTSTimbres with the addition of the ability to pass a context and additional request options.

See ListBigModelTTSTimbres for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. Ifthe context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

type SPEECHSAASPRODAPI

type SPEECHSAASPRODAPI interface {
	ListBigModelTTSTimbresCommon(*map[string]interface{}) (*map[string]interface{}, error)
	ListBigModelTTSTimbresCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	ListBigModelTTSTimbresCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	ListBigModelTTSTimbres(*ListBigModelTTSTimbresInput) (*ListBigModelTTSTimbresOutput, error)
	ListBigModelTTSTimbresWithContext(volcengine.Context, *ListBigModelTTSTimbresInput, ...request.Option) (*ListBigModelTTSTimbresOutput, error)
	ListBigModelTTSTimbresRequest(*ListBigModelTTSTimbresInput) (*request.Request, *ListBigModelTTSTimbresOutput)
}

SPEECHSAASPRODAPI provides an interface to enable mocking the speechsaasprod.SPEECHSAASPROD service client's API operation,

// volcengine sdk func uses an SDK service client to make a request to
// SPEECH_SAAS_PROD.
func myFunc(svc SPEECHSAASPRODAPI) bool {
    // Make svc.ListBigModelTTSTimbres request
}

func main() {
    sess := session.New()
    svc := speechsaasprod.New(sess)

    myFunc(svc)
}

type TimbreForListBigModelTTSTimbresOutput

type TimbreForListBigModelTTSTimbresOutput struct {
	SpeakerID *string `type:"string" json:",omitempty"`

	TimbreInfos []*TimbreInfoForListBigModelTTSTimbresOutput `type:"list" json:",omitempty"`
	// contains filtered or unexported fields
}

func (TimbreForListBigModelTTSTimbresOutput) GoString

GoString returns the string representation

func (*TimbreForListBigModelTTSTimbresOutput) SetSpeakerID

SetSpeakerID sets the SpeakerID field's value.

func (*TimbreForListBigModelTTSTimbresOutput) SetTimbreInfos

SetTimbreInfos sets the TimbreInfos field's value.

func (TimbreForListBigModelTTSTimbresOutput) String

String returns the string representation

type TimbreInfoForListBigModelTTSTimbresOutput

type TimbreInfoForListBigModelTTSTimbresOutput struct {
	Age *string `type:"string" json:",omitempty"`

	Categories []*CategoryForListBigModelTTSTimbresOutput `type:"list" json:",omitempty"`

	Emotions []*EmotionForListBigModelTTSTimbresOutput `type:"list" json:",omitempty"`

	Gender *string `type:"string" json:",omitempty"`

	SpeakerName *string `type:"string" json:",omitempty"`
	// contains filtered or unexported fields
}

func (TimbreInfoForListBigModelTTSTimbresOutput) GoString

GoString returns the string representation

func (*TimbreInfoForListBigModelTTSTimbresOutput) SetAge

SetAge sets the Age field's value.

func (*TimbreInfoForListBigModelTTSTimbresOutput) SetCategories

SetCategories sets the Categories field's value.

func (*TimbreInfoForListBigModelTTSTimbresOutput) SetEmotions

SetEmotions sets the Emotions field's value.

func (*TimbreInfoForListBigModelTTSTimbresOutput) SetGender

SetGender sets the Gender field's value.

func (*TimbreInfoForListBigModelTTSTimbresOutput) SetSpeakerName

SetSpeakerName sets the SpeakerName field's value.

func (TimbreInfoForListBigModelTTSTimbresOutput) String

String returns the string representation

Jump to

Keyboard shortcuts

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